[ 
https://issues.apache.org/jira/browse/STANBOL-1280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13910358#comment-13910358
 ] 

Rupert Westenthaler commented on STANBOL-1280:
----------------------------------------------

Implementation Update:

As implementation of EnhancementProperties proofed to be relatively simple in 
0.12 - as no major API changes where required - a first working version was 
first introduced in 0.12.1-SNAPSHOT rather as 1.0.0.

With r1571150 [1] it is now possible to parse EnhancementProperties with 
Enhancement Requests. This revision also includes an implementation of 
EnhancementProperties for the EntityhubDereferenceEngine.

E.g. the following request would dereference French and German labels even if 
filterContentLanguages=true and an English text is parsed to the enhancer

{code}
 curl -X POST -H "Accept: text/turtle" -H "Content-type: text/plain" \
        --data "The Eifeltower is located in Paris." 
        
http://localhost:8080/enhancer?enhancer.engines.dereference.languages=fr&\
        enhancer.engines.dereference.languages=de
{code}

In addition to the languages also the 'enhancer.engines.dereference.fields' and 
'enhancer.engines.dereference.ldpath' fields are supported.

Most of the pre-configured chains of the launchers do use the 
dbpedia-dereference engine and can therefore be used for testing.

[1] http://svn.apache.org/r1571150

> EnhancementProperties for 0.12
> ------------------------------
>
>                 Key: STANBOL-1280
>                 URL: https://issues.apache.org/jira/browse/STANBOL-1280
>             Project: Stanbol
>          Issue Type: Sub-task
>          Components: Enhancer
>            Reporter: Rupert Westenthaler
>            Assignee: Rupert Westenthaler
>             Fix For: 0.12.1
>
>
> This issue has the goal to provide (a possible feature reduced version) of 
> EnhancementProperties to 0.12.+ versions of Apache Stanbol.
> Basic Idea is:
> * support parsing EnhancementProperties as QueryParameters in 
> EnhancementRequests (as defined by STANBOL-488)
> * No support for defining EnhancementProperties for EnhancementChains
> * Instead of changing the API of EnhancementEngine parse 
> EnhancementProperties as ContentPart in the ContentItem
>     * provide a Utility method that retrieves EnhancementProperties from that 
> ContentPart to the EnhancementEngine.
> This will not only make this feature available to Stanbol 0.12.0 users but 
> also make it much easier to back port EnhancementEngines that do use that 
> feature.
> Required Code Changes are minimal
> * extend the ContentItemReader to parse Request Parameter
> * define a URI constant to be used for the ContentPart
> * add an Helper method ti the ContentItemHelper that retrieved the 
> EnhancementProperties from the ContentPart
> This will be introduced after 0.12.0 is released



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to