You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by bu...@apache.org on 2012/02/20 19:01:32 UTC

svn commit: r805543 - in /websites/staging/stanbol/trunk: ./ content/stanbol/docs/trunk/enhancer/enhancerrest.html content/stanbol/docs/trunk/enhancer/index.html

Author: buildbot
Date: Mon Feb 20 18:01:32 2012
New Revision: 805543

Log:
Staging update by buildbot for stanbol

Modified:
    websites/staging/stanbol/trunk/   (props changed)
    websites/staging/stanbol/trunk/content/stanbol/docs/trunk/enhancer/enhancerrest.html
    websites/staging/stanbol/trunk/content/stanbol/docs/trunk/enhancer/index.html

Propchange: websites/staging/stanbol/trunk/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon Feb 20 18:01:32 2012
@@ -1 +1 @@
-1291391
+1291393

Modified: websites/staging/stanbol/trunk/content/stanbol/docs/trunk/enhancer/enhancerrest.html
==============================================================================
--- websites/staging/stanbol/trunk/content/stanbol/docs/trunk/enhancer/enhancerrest.html (original)
+++ websites/staging/stanbol/trunk/content/stanbol/docs/trunk/enhancer/enhancerrest.html Mon Feb 20 18:01:32 2012
@@ -70,7 +70,8 @@
 <p>The content to analyze should be sent in a POST request with the mimetype specified in
 the <code>Content-type</code> header. The response will hold the RDF enhancement serialized in the format specified in the <code>Accept</code> header:</p>
 <div class="codehilite"><pre>curl -X POST -H <span class="s2">&quot;Accept: text/turtle&quot;</span> -H <span class="s2">&quot;Content-type: text/plain&quot;</span> <span class="se">\</span>
-    --data <span class="s2">&quot;The Stanbol enhancer can detect famous cities such as Paris and people such as Bob Marley.&quot;</span> <span class="se">\</span>
+    --data <span class="s2">&quot;The Stanbol enhancer can detect famous cities such as Paris \</span>
+<span class="s2">            and people such as Bob Marley.&quot;</span> <span class="se">\</span>
     http://localhost:8080/enhancer
 </pre></div>
 
@@ -93,7 +94,8 @@ text/rdf+nt (N-TRIPLES)
 <p>The following example shows how to send an enhancement request with a custom content item URI that will include the execution metadata in the response.
 In addition this request is directed to the <a href="chains">Enhancement Chain</a> with the name "dbpedia-keyword"</p>
 <div class="codehilite"><pre>curl -X POST -H <span class="s2">&quot;Accept: text/turtle&quot;</span> -H <span class="s2">&quot;Content-type: text/plain&quot;</span> <span class="se">\</span>
-    --data <span class="s2">&quot;The Stanbol enhancer can detect famous cities such as Paris and people such as Bob Marley.&quot;</span> <span class="se">\</span>
+    --data <span class="s2">&quot;The Stanbol enhancer can detect famous cities such as Paris \</span>
+<span class="s2">            and people such as Bob Marley.&quot;</span> <span class="se">\</span>
     <span class="s2">&quot;http://localhost:8080/enhancer/chain/dbpedia-keyword?uri=urn:fise-example-content-item&amp;executionmetadata=true&quot;</span>
 </pre></div>
 
@@ -139,7 +141,8 @@ Requests that use an <code>Accept: {mime
 This can be achieved relatively easy by using the "<code>outputContent=<em>/</em></code>" in combination with "<code>omitParsed=true</code>".</p>
 <div class="codehilite"><pre>curl -v -X POST -H <span class="s2">&quot;Accept: multipart/from-data&quot;</span> <span class="se">\</span>
     -H <span class="s2">&quot;Content-type: text/html; charset=UTF-8&quot;</span>  <span class="se">\</span>
-    --data <span class="s2">&quot;&lt;html&gt;&lt;body&gt;&lt;p&gt;The Stanbol enhancer can detect famous cities such as Paris and people such as Bob Marley.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;&quot;</span> <span class="se">\</span>
+    --data <span class="s2">&quot;&lt;html&gt;&lt;body&gt;&lt;p&gt;The Stanbol enhancer can detect famous cities \</span>
+<span class="s2">            such as Paris and people such as Bob Marley.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;&quot;</span> <span class="se">\</span>
     <span class="s2">&quot;${it.serviceUrl}?outputContent=*/*&amp;omitParsed=true&amp;rdfFormat=application/rdf+xml&quot;</span>
 </pre></div>
 
@@ -177,7 +180,8 @@ The Stanbol enhancer can detect famous c
 <p>The using the '<code> omitMetadata=true</code>' together with the "Accept: {requested-content-type}" the multi-part content API allows to directly request the transcoded version of the content with the format {requested-content-type}. </p>
 <div class="codehilite"><pre>curl -v -X POST -H &quot;Accept: text/plain&quot; \
     -H &quot;Content-type: text/html; charset=UTF-8&quot; \
-    --data &quot;<span class="nt">&lt;html&gt;&lt;body&gt;&lt;p&gt;</span>The Stanbol enhancer can detect famous cities such as Paris and people such as Bob Marley.<span class="nt">&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</span>&quot; \
+    --data &quot;<span class="nt">&lt;html&gt;&lt;body&gt;&lt;p&gt;</span>The Stanbol enhancer can detect famous cities \
+            such as Paris and people such as Bob Marley.<span class="nt">&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</span>&quot; \
     &quot;<span class="cp">${</span><span class="n">it</span><span class="o">.</span><span class="n">serviceUrl</span><span class="cp">}</span>?omitMetadata=true&quot;
 </pre></div>
 

Modified: websites/staging/stanbol/trunk/content/stanbol/docs/trunk/enhancer/index.html
==============================================================================
--- websites/staging/stanbol/trunk/content/stanbol/docs/trunk/enhancer/index.html (original)
+++ websites/staging/stanbol/trunk/content/stanbol/docs/trunk/enhancer/index.html Mon Feb 20 18:01:32 2012
@@ -64,7 +64,8 @@
 <h3 id="restful_service">RESTful service:</h3>
 <p>The content to analyze should be sent in a POST request with the mimetype specified in the Content-type header. The response will hold the RDF enhancement serialized in the format specified in the Accept header:</p>
 <div class="codehilite"><pre>curl -X POST -H <span class="s2">&quot;Accept: text/turtle&quot;</span> -H <span class="s2">&quot;Content-type: text/plain&quot;</span> <span class="se">\</span>
-    --data <span class="s2">&quot;The Stanbol enhancer can detect famous cities such as Paris and people such as Bob Marley.&quot;</span> <span class="se">\</span>
+    --data <span class="s2">&quot;The Stanbol enhancer can detect famous cities such as \</span>
+<span class="s2">            Paris and people such as Bob Marley.&quot;</span> <span class="se">\</span>
     http://localhost:8080/enhancer
 </pre></div>
 
@@ -72,7 +73,8 @@
 <p>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</p>
 <div class="codehilite"><pre>curl -v -X POST -H <span class="s2">&quot;Accept: text/plain&quot;</span> <span class="se">\</span>
     -H <span class="s2">&quot;Content-type: text/html; charset=UTF-8&quot;</span> <span class="se">\</span>
-    --data <span class="s2">&quot;&lt;html&gt;&lt;body&gt;&lt;p&gt;The Stanbol enhancer can detect famous cities such as Paris and people such as Bob Marley.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;&quot;</span> <span class="se">\</span>
+    --data <span class="s2">&quot;&lt;html&gt;&lt;body&gt;&lt;p&gt;The Stanbol enhancer can detect famous cities \</span>
+<span class="s2">            such as Paris and people such as Bob Marley.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;&quot;</span> <span class="se">\</span>
     <span class="s2">&quot;http://localhost:8080/enhancer/chain/language?omitMetadata=true&quot;</span>
 </pre></div>