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">"Accept:
text/turtle"</span> -H <span class="s2">"Content-type:
text/plain"</span> <span class="se">\</span>
- --data <span class="s2">"The Stanbol enhancer can detect famous
cities such as Paris and people such as Bob Marley."</span> <span
class="se">\</span>
+ --data <span class="s2">"The Stanbol enhancer can detect famous
cities such as Paris \</span>
+<span class="s2"> and people such as Bob Marley."</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">"Accept:
text/turtle"</span> -H <span class="s2">"Content-type:
text/plain"</span> <span class="se">\</span>
- --data <span class="s2">"The Stanbol enhancer can detect famous
cities such as Paris and people such as Bob Marley."</span> <span
class="se">\</span>
+ --data <span class="s2">"The Stanbol enhancer can detect famous
cities such as Paris \</span>
+<span class="s2"> and people such as Bob Marley."</span> <span
class="se">\</span>
<span
class="s2">"http://localhost:8080/enhancer/chain/dbpedia-keyword?uri=urn:fise-example-content-item&executionmetadata=true"</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">"Accept:
multipart/from-data"</span> <span class="se">\</span>
-H <span class="s2">"Content-type: text/html;
charset=UTF-8"</span> <span class="se">\</span>
- --data <span class="s2">"<html><body><p>The Stanbol
enhancer can detect famous cities such as Paris and people such as Bob
Marley.</p></body></html>"</span> <span
class="se">\</span>
+ --data <span class="s2">"<html><body><p>The Stanbol
enhancer can detect famous cities \</span>
+<span class="s2"> such as Paris and people such as Bob
Marley.</p></body></html>"</span> <span
class="se">\</span>
<span
class="s2">"${it.serviceUrl}?outputContent=*/*&omitParsed=true&rdfFormat=application/rdf+xml"</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 "Accept: text/plain"
\
-H "Content-type: text/html; charset=UTF-8" \
- --data "<span class="nt"><html><body><p></span>The
Stanbol enhancer can detect famous cities such as Paris and people such as Bob
Marley.<span class="nt"></p></body></html></span>" \
+ --data "<span class="nt"><html><body><p></span>The
Stanbol enhancer can detect famous cities \
+ such as Paris and people such as Bob Marley.<span
class="nt"></p></body></html></span>" \
"<span class="cp">${</span><span class="n">it</span><span
class="o">.</span><span class="n">serviceUrl</span><span
class="cp">}</span>?omitMetadata=true"
</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">"Accept:
text/turtle"</span> -H <span class="s2">"Content-type:
text/plain"</span> <span class="se">\</span>
- --data <span class="s2">"The Stanbol enhancer can detect famous
cities such as Paris and people such as Bob Marley."</span> <span
class="se">\</span>
+ --data <span class="s2">"The Stanbol enhancer can detect famous
cities such as \</span>
+<span class="s2"> Paris and people such as Bob Marley."</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">"Accept:
text/plain"</span> <span class="se">\</span>
-H <span class="s2">"Content-type: text/html;
charset=UTF-8"</span> <span class="se">\</span>
- --data <span class="s2">"<html><body><p>The Stanbol
enhancer can detect famous cities such as Paris and people such as Bob
Marley.</p></body></html>"</span> <span
class="se">\</span>
+ --data <span class="s2">"<html><body><p>The Stanbol
enhancer can detect famous cities \</span>
+<span class="s2"> such as Paris and people such as Bob
Marley.</p></body></html>"</span> <span
class="se">\</span>
<span
class="s2">"http://localhost:8080/enhancer/chain/language?omitMetadata=true"</span>
</pre></div>