Author: buildbot
Date: Mon Feb 20 17:56:07 2012
New Revision: 805541

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 17:56:07 2012
@@ -1 +1 @@
-1291389
+1291391

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 17:56:07 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;John Smith was born in London.&quot;</span> 
http://localhost:8080/enhancer
+    --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>
+    http://localhost:8080/enhancer
 </pre></div>
 
 
@@ -92,7 +93,7 @@ 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;John Smith was born in London.&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>
     <span 
class="s2">&quot;http://localhost:8080/enhancer/chain/dbpedia-keyword?uri=urn:fise-example-content-item&amp;executionmetadata=true&quot;</span>
 </pre></div>
 
@@ -113,7 +114,7 @@ In addition this request is directed to 
 <p>Responses to requests with this parameter will be encoded as 
<code>multipart/from-data</code>. If the "Accept" header of the request is not 
compatible to <code>multipart/from-data</code> it is assumed as a <code>400 
BAD_REQUEST</code>. For details see the documentation of the <a 
href="contentitem.html#multipart_mime_serialization">Multipart MIME format for 
ContentItems</a>.</p>
 </li>
 <li>
-<p><strong>omitParsed=[true/false]:</strong> Makes only sense in combination 
with  the <code>outputContent</code> parameter. This allows to exclude all 
content included in the request from the response. A typical combination is 
<code>outputContent=<em>/</em>&amp;omitParsed=true</code>. The default value of 
this parameter is <code>false</code></p>
+<p><strong>omitParsed=[true/false]:</strong> Makes only sense in combination 
with  the <code>outputContent</code> parameter. This allows to exclude all 
content included in the request from the response. A typical combination is 
<code>outputContentPart=<em>/</em>&amp;omitParsed=true</code>. The default 
value of this parameter is <code>false</code></p>
 </li>
 <li>
 <p><strong>outputContentPart=[uri/'*']:</strong> This parameter allows to 
explicitly include content parts with a specific URI in the response. Currently 
this only supports <a href="contentitem.html#content_parts">ContentParts</a> 
that are stored as RDF graphs. </p>
@@ -138,7 +139,7 @@ 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;John Smith 
was born in London.&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 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>
 
@@ -164,7 +165,7 @@ Content-Disposition: form-data; name=&qu
 Content-Type: text/plain; charset=UTF-8
 Content-Transfer-Encoding: 8bit
 
-John Smith was born in London.
+The Stanbol enhancer can detect famous cities such as Paris and people such as 
Bob Marley.
 --contentParts--
 
 --contentItem--
@@ -176,13 +177,13 @@ John Smith was born in London.
 <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>John 
Smith was born in London.<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>
 
 
 <p>The response will use <code>Content-Type: text/plain</code> and contain the 
string</p>
-<div class="codehilite"><pre>John Smith was born in London.
+<div class="codehilite"><pre>The Stanbol enhancer can detect famous cities 
such as Paris and people such as Bob Marley.
 </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 17:56:07 2012
@@ -64,14 +64,15 @@
 <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;John Smith was born in London.&quot;</span> 
http://localhost:8080/enhancer
+    --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>
+    http://localhost:8080/enhancer
 </pre></div>
 
 
 <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;John Smith 
was born in London.&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 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>
 


Reply via email to