You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by rw...@apache.org on 2012/02/24 14:54:34 UTC
svn commit: r1293252 -
/incubator/stanbol/trunk/enhancer/jersey/src/main/resources/org/apache/stanbol/enhancer/jersey/templates/org/apache/stanbol/enhancer/jersey/resource/EnhancerRootResource/index.ftl
Author: rwesten
Date: Fri Feb 24 13:54:33 2012
New Revision: 1293252
URL: http://svn.apache.org/viewvc?rev=1293252&view=rev
Log:
STANBOL-505: Changed the test example used in the RESTful API documentation as suggested by this issue.
Modified:
incubator/stanbol/trunk/enhancer/jersey/src/main/resources/org/apache/stanbol/enhancer/jersey/templates/org/apache/stanbol/enhancer/jersey/resource/EnhancerRootResource/index.ftl
Modified: incubator/stanbol/trunk/enhancer/jersey/src/main/resources/org/apache/stanbol/enhancer/jersey/templates/org/apache/stanbol/enhancer/jersey/resource/EnhancerRootResource/index.ftl
URL: http://svn.apache.org/viewvc/incubator/stanbol/trunk/enhancer/jersey/src/main/resources/org/apache/stanbol/enhancer/jersey/templates/org/apache/stanbol/enhancer/jersey/resource/EnhancerRootResource/index.ftl?rev=1293252&r1=1293251&r2=1293252&view=diff
==============================================================================
--- incubator/stanbol/trunk/enhancer/jersey/src/main/resources/org/apache/stanbol/enhancer/jersey/templates/org/apache/stanbol/enhancer/jersey/resource/EnhancerRootResource/index.ftl (original)
+++ incubator/stanbol/trunk/enhancer/jersey/src/main/resources/org/apache/stanbol/enhancer/jersey/templates/org/apache/stanbol/enhancer/jersey/resource/EnhancerRootResource/index.ftl Fri Feb 24 13:54:33 2012
@@ -161,7 +161,8 @@ in the format specified in the <code>Acc
<pre>
curl -X POST -H "Accept: text/turtle" -H "Content-type: text/plain" \
- --data "John Smith was born in London." ${it.serviceUrl}
+ --data "The Stanbol enhancer can detect famous cities such as \
+ Paris and people such as Bob Marley." ${it.serviceUrl}
</pre>
<p>The list of mimetypes accepted as inputs depends on the deployed engines. By default only
@@ -199,7 +200,8 @@ response.</p>
<pre>
curl -X POST -H "Accept: text/turtle" -H "Content-type: text/plain" \
- --data "John Smith was born in London." \
+ --data "The Stanbol enhancer can detect famous cities such as \
+ Paris and people such as Bob Marley." \
"${it.serviceUrl}?uri=urn:fise-example-content-item&executionmetadata=true"
</pre>
@@ -272,8 +274,10 @@ not URLEncoded.</p>
<pre>
curl -v -X POST -H "Accept: multipart/from-data" \
-H "Content-type: text/html; charset=UTF-8" \
- --data "<html><body><p>John Smith was born in London.</p></body></html>" \
- "${it.serviceUrl}?outputContent=*/*&omitParsed=true&rdfFormat=application/rdf+xml"
+ --data "<html><body><p>The Stanbol enhancer \
+ can detect famous cities such as Paris and people such \
+ as Bob Marley..</p></body></html>" \
+ "${it.serviceUrl}?outputContent=*/*&omitParsed=true&rdfFormat=application/rdf%2Bxml"
</pre>
<p>This will result in an Response with the mime type
<code>"Content-Type: multipart/from-data; charset=UTF-8; boundary=contentItem"</code>
@@ -310,7 +314,9 @@ as content.</p>
<pre>
curl -v -X POST -H "Accept: text/plain" \
-H "Content-type: text/html; charset=UTF-8" \
- --data "<html><body><p>John Smith was born in London.</p></body></html>" \
+ --data "<html><body><p>The Stanbol enhancer \
+ can detect famous cities such as Paris and people such \
+ as Bob Marley.</p></body></html>" \
"${it.serviceUrl}?omitMetadata=true"
</pre>
<p>The response will be of type <code>text/plain</code> and return the string