Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » SeMantic Information Logistics Architecture (SMILA) » Validate adding a new attribute works
Validate adding a new attribute works [message #755670] Wed, 09 November 2011 09:13 Go to next message
Stephan Mehlhase is currently offline Stephan MehlhaseFriend
Messages: 8
Registered: July 2009
Junior Member
Hi,

I'm writing a pipelet for SMILA and adding a new Attribute using

blackboard.getMetadata(id).put(attrName, value);

in the process() method. With the search website activated in the 5
minutes to success I can't see the new attribute. How can I verify the
attribute is indeed added to the record? Is there a REST API which I can
use?

Best,
Stephan

--
Stephan Mehlhase
Phone: +49-6221-533213
Email: stephan.mehlhase@eml-d.villa-bosch.de

European Media Laboratory GmbH
Schloss-Wolfsbrunnenweg 35
69118 Heidelberg

Amtsgericht Mannheim / HRB 335719
Managing Partner: Dr. h. c. Dr.-Ing. E. h. Klaus Tschira, Scientific and
Managing
Director: Prof. Dr.-Ing. Andreas Reuter

http://www.eml-development.de

Testen Sie auch unsere neue Android Applikation zur Mediensteuerung:
http://market.android.com/search?q=pname:org.eml.upnp
Re: Validate adding a new attribute works [message #755703 is a reply to message #755670] Wed, 09 November 2011 10:43 Go to previous messageGo to next message
Juergen Schumacher is currently offline Juergen SchumacherFriend
Messages: 35
Registered: July 2009
Member
Hi,

Am 09.11.2011, 10:13 Uhr, schrieb Stephan Mehlhase
<stephan.mehlhase@eml.org>:
> I'm writing a pipelet for SMILA and adding a new Attribute using
>
> blackboard.getMetadata(id).put(attrName, value);
>
> in the process() method. With the search website activated in the 5
> minutes to success I can't see the new attribute. How can I verify the
> attribute is indeed added to the record? Is there a REST API which I can
> use?

To see a new attribute in the result list, you must add it to the index
configuration:
* configuration/org.eclipse.smila.search.datadictionary/DataDictionary.xml
* configuration/org.eclipse.smila.lucene/Mappings.xml
and to the list of "resultAttributes" in the XSL stylesheet producing the
result page:
* configuration/org.eclipse.smila.search.servlet/SMILASearchDefault.xsl
(or SMILASearchAdvanced.xsl, if you use this one)
Then after rebuilding in the index you should see the new attribute.

Depending on what you are doing exactly you may be able to test your
pipeline using the
REST API by POSTing an appropriate record to
/smila/pipeline/<pipelinename>/process, then
you should see in the result if the attribute was set. However, this will
currently not help
if you are using attachments, because you can't add them to the request.
We are working on this (;

Cheers,
Jürgen.
Re: Validate adding a new attribute works [message #755903 is a reply to message #755703] Thu, 10 November 2011 06:39 Go to previous message
Stephan Mehlhase is currently offline Stephan MehlhaseFriend
Messages: 8
Registered: July 2009
Junior Member
Hi,

thanks. It worked :)

Best,
Stephan

On 11/09/2011 11:43 AM, Juergen Schumacher wrote:
> Hi,
>
> Am 09.11.2011, 10:13 Uhr, schrieb Stephan Mehlhase
> <stephan.mehlhase@eml.org>:
>> I'm writing a pipelet for SMILA and adding a new Attribute using
>>
>> blackboard.getMetadata(id).put(attrName, value);
>>
>> in the process() method. With the search website activated in the 5
>> minutes to success I can't see the new attribute. How can I verify the
>> attribute is indeed added to the record? Is there a REST API which I
>> can use?
>
> To see a new attribute in the result list, you must add it to the index
> configuration:
> * configuration/org.eclipse.smila.search.datadictionary/DataDictionary.xml
> * configuration/org.eclipse.smila.lucene/Mappings.xml
> and to the list of "resultAttributes" in the XSL stylesheet producing
> the result page:
> * configuration/org.eclipse.smila.search.servlet/SMILASearchDefault.xsl
> (or SMILASearchAdvanced.xsl, if you use this one)
> Then after rebuilding in the index you should see the new attribute.
>
> Depending on what you are doing exactly you may be able to test your
> pipeline using the
> REST API by POSTing an appropriate record to
> /smila/pipeline/<pipelinename>/process, then
> you should see in the result if the attribute was set. However, this
> will currently not help
> if you are using attachments, because you can't add them to the request.
> We are working on this (;
>
> Cheers,
> Jürgen.


--
Stephan Mehlhase

European Media Laboratory GmbH
Schloss-Wolfsbrunnenweg 35
69118 Heidelberg

Amtsgericht Mannheim / HRB 335719
Managing Partner: Dr. h. c. Dr.-Ing. E. h. Klaus Tschira, Scientific and
Managing
Director: Prof. Dr.-Ing. Andreas Reuter

http://www.eml-development.de

Testen Sie auch unsere neue Android Applikation zur Mediensteuerung:
http://market.android.com/search?q=pname:org.eml.upnp
Previous Topic:Release 0.9 is out!
Next Topic:Attribute Max Size?
Goto Forum:
  


Current Time: Fri Apr 26 11:02:56 GMT 2024

Powered by FUDForum. Page generated in 0.02760 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top