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             [email protected]
| Bodenlehenstraße 11                             ++43-699-11108907
| A-5500 Bischofshofen

Reply via email to