You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stanbol.apache.org by Rupert Westenthaler <ru...@gmail.com> on 2012/02/08 15:19:59 UTC

Request for feedback on STANBOL-481

Hi all,

In the last days I have implemented the MessageBodyReader/Writer for
ContentItems needed for implementing STANBOL-481.

Now that this work is completed I am about to start the actual
implementation of the RESTful interface for Multi ContentPart
ContentItems. (STANBOL-481).

In this comment [1] I have written up an updated proposal for that API
and would appreciate some feedback.

To provide some additional context: The optional query parameters
discussed in the comment will be available on any Enhancer Endpoint.

Here are two examples:

(1) this would return the enhancement results AND the plain text
version of the text

    curl -X POST -H "Accept: multipart/from-data" -H "Content-type: text/html" \
         --data "<html><body>John Smith was born in London.</body></html>" \
        http://localhost:8080/enhancer?outputContent=text/*&omitParsed=true


(2) ask Stanbol to return the text version of an content (this works
best with a Chain that only contains the MetaxaEngine). NOTE the
"Accept: text/plain" AND omitMetadata=true!

    curl -X POST -H "Accept: text/plain" -H "Content-type: text/html" \
         --data "<html><body>John Smith was born in London.</body></html>" \
        http://localhost:8080/enhancer/chain/metaxa?omitMetadata=true

best
Rupert

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

-- 
| Rupert Westenthaler             rupert.westenthaler@gmail.com
| Bodenlehenstraße 11                             ++43-699-11108907
| A-5500 Bischofshofen

Re: Request for feedback on STANBOL-481

Posted by Rupert Westenthaler <ru...@gmail.com>.
Hi

Please also note STANBOL-488 suggesting the addition of EnhancementProperties

best
Rupert

On Wed, Feb 8, 2012 at 3:19 PM, Rupert Westenthaler
<ru...@gmail.com> wrote:
> Hi all,
>
> In the last days I have implemented the MessageBodyReader/Writer for
> ContentItems needed for implementing STANBOL-481.
>
> Now that this work is completed I am about to start the actual
> implementation of the RESTful interface for Multi ContentPart
> ContentItems. (STANBOL-481).
>
> In this comment [1] I have written up an updated proposal for that API
> and would appreciate some feedback.
>
> To provide some additional context: The optional query parameters
> discussed in the comment will be available on any Enhancer Endpoint.
>
> Here are two examples:
>
> (1) this would return the enhancement results AND the plain text
> version of the text
>
>    curl -X POST -H "Accept: multipart/from-data" -H "Content-type: text/html" \
>         --data "<html><body>John Smith was born in London.</body></html>" \
>        http://localhost:8080/enhancer?outputContent=text/*&omitParsed=true
>
>
> (2) ask Stanbol to return the text version of an content (this works
> best with a Chain that only contains the MetaxaEngine). NOTE the
> "Accept: text/plain" AND omitMetadata=true!
>
>    curl -X POST -H "Accept: text/plain" -H "Content-type: text/html" \
>         --data "<html><body>John Smith was born in London.</body></html>" \
>        http://localhost:8080/enhancer/chain/metaxa?omitMetadata=true
>
> best
> Rupert
>
> [1] https://issues.apache.org/jira/browse/STANBOL-481?focusedCommentId=13203610&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13203610
>
> --
> | Rupert Westenthaler             rupert.westenthaler@gmail.com
> | Bodenlehenstraße 11                             ++43-699-11108907
> | A-5500 Bischofshofen



-- 
| Rupert Westenthaler             rupert.westenthaler@gmail.com
| Bodenlehenstraße 11                             ++43-699-11108907
| A-5500 Bischofshofen