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/20 19:01:27 UTC

svn commit: r1291393 - in /incubator/stanbol/site/trunk/content/stanbol/docs/trunk/enhancer: enhancerrest.mdtext index.mdtext

Author: rwesten
Date: Mon Feb 20 18:01:26 2012
New Revision: 1291393

URL: http://svn.apache.org/viewvc?rev=1291393&view=rev
Log:
minor corrections

Modified:
    incubator/stanbol/site/trunk/content/stanbol/docs/trunk/enhancer/enhancerrest.mdtext
    incubator/stanbol/site/trunk/content/stanbol/docs/trunk/enhancer/index.mdtext

Modified: incubator/stanbol/site/trunk/content/stanbol/docs/trunk/enhancer/enhancerrest.mdtext
URL: http://svn.apache.org/viewvc/incubator/stanbol/site/trunk/content/stanbol/docs/trunk/enhancer/enhancerrest.mdtext?rev=1291393&r1=1291392&r2=1291393&view=diff
==============================================================================
--- incubator/stanbol/site/trunk/content/stanbol/docs/trunk/enhancer/enhancerrest.mdtext (original)
+++ incubator/stanbol/site/trunk/content/stanbol/docs/trunk/enhancer/enhancerrest.mdtext Mon Feb 20 18:01:26 2012
@@ -18,7 +18,8 @@ the <code>Content-type</code> header. Th
    
     :::bash
     curl -X POST -H "Accept: text/turtle" -H "Content-type: text/plain" \
-        --data "The Stanbol enhancer can detect famous cities such as Paris and people such as Bob Marley." \
+        --data "The Stanbol enhancer can detect famous cities such as Paris \
+                and people such as Bob Marley." \
         http://localhost:8080/enhancer
 
 The list of mimetypes accepted as inputs depends on the deployed engines. By default most Enhancement Engines can only process plain text content. However EnhancementEngines like [Metaxa](engines/metaxaengine.html) can be used to create 'text/plain' versions of parsed content. This allows also to enhance contents with mime types such as html, pdf and MS office documents (see the Metaxa documentation for details)
@@ -42,7 +43,8 @@ In addition this request is directed to 
     
     :::bash
     curl -X POST -H "Accept: text/turtle" -H "Content-type: text/plain" \
-        --data "The Stanbol enhancer can detect famous cities such as Paris and people such as Bob Marley." \
+        --data "The Stanbol enhancer can detect famous cities such as Paris \
+                and people such as Bob Marley." \
         "http://localhost:8080/enhancer/chain/dbpedia-keyword?uri=urn:fise-example-content-item&executionmetadata=true"
 
 
@@ -96,7 +98,8 @@ This can be achieved relatively easy by 
     :::bash
     curl -v -X POST -H "Accept: multipart/from-data" \
         -H "Content-type: text/html; charset=UTF-8"  \
-        --data "<html><body><p>The Stanbol enhancer can detect famous cities such as Paris and people such as Bob Marley.</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}?outputContent=*/*&omitParsed=true&rdfFormat=application/rdf+xml"
 
 
@@ -136,7 +139,8 @@ The using the '<code> omitMetadata=true<
 
     curl -v -X POST -H "Accept: text/plain" \
         -H "Content-type: text/html; charset=UTF-8" \
-        --data "<html><body><p>The Stanbol enhancer can detect famous cities such as Paris and people such as Bob Marley.</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"
 
 The response will use <code>Content-Type: text/plain</code> and contain the string

Modified: incubator/stanbol/site/trunk/content/stanbol/docs/trunk/enhancer/index.mdtext
URL: http://svn.apache.org/viewvc/incubator/stanbol/site/trunk/content/stanbol/docs/trunk/enhancer/index.mdtext?rev=1291393&r1=1291392&r2=1291393&view=diff
==============================================================================
--- incubator/stanbol/site/trunk/content/stanbol/docs/trunk/enhancer/index.mdtext (original)
+++ incubator/stanbol/site/trunk/content/stanbol/docs/trunk/enhancer/index.mdtext Mon Feb 20 18:01:26 2012
@@ -14,7 +14,8 @@ The content to analyze should be sent in
 
     :::bash
     curl -X POST -H "Accept: text/turtle" -H "Content-type: text/plain" \
-        --data "The Stanbol enhancer can detect famous cities such as Paris and people such as Bob Marley." \
+        --data "The Stanbol enhancer can detect famous cities such as \
+                Paris and people such as Bob Marley." \
         http://localhost:8080/enhancer
 
 The RESTful interface also provides parameters that can be used to parse/request additional informations. The following Example shows a request that would answer with the plain/text version of the parsed HTML content
@@ -22,7 +23,8 @@ The RESTful interface also provides para
     :::bash
     curl -v -X POST -H "Accept: text/plain" \
         -H "Content-type: text/html; charset=UTF-8" \
-        --data "<html><body><p>The Stanbol enhancer can detect famous cities such as Paris and people such as Bob Marley.</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>" \
         "http://localhost:8080/enhancer/chain/language?omitMetadata=true"
 
 For detailed information please see the documentation of the [Stanbol Enhancer RESTful Services](enhancerrest.html). A short version is also provided by the Stanbol Web UI (e.g. [http://localhost:8080/enhancer](http://localhost:8080/enhancer) assuming that Apache Stanbol runs on localhost:8080).