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/03/05 14:50:40 UTC
svn commit: r807430 - in /websites/staging/stanbol/trunk/content: ./
stanbol/docs/trunk/enhancer/engines/tikaengine.html
Author: buildbot
Date: Mon Mar 5 13:50:40 2012
New Revision: 807430
Log:
Staging update by buildbot for stanbol
Modified:
websites/staging/stanbol/trunk/content/ (props changed)
websites/staging/stanbol/trunk/content/stanbol/docs/trunk/enhancer/engines/tikaengine.html
Propchange: websites/staging/stanbol/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon Mar 5 13:50:40 2012
@@ -1 +1 @@
-1297053
+1297055
Modified: websites/staging/stanbol/trunk/content/stanbol/docs/trunk/enhancer/engines/tikaengine.html
==============================================================================
--- websites/staging/stanbol/trunk/content/stanbol/docs/trunk/enhancer/engines/tikaengine.html (original)
+++ websites/staging/stanbol/trunk/content/stanbol/docs/trunk/enhancer/engines/tikaengine.html Mon Mar 5 13:50:40 2012
@@ -102,15 +102,16 @@
<li>the "text/plain" or "application/xhtml+xml" version of parsed content</li>
<li>the extracted metadata as RDF aligned to the activated Ontologies</li>
</ol>
-<p>The first example requests the plain text version of a PDF file with the name "test.pdf". Note the </p>
+<p>The first example requests the plain text version of a PDF file with the name "test.pdf". </p>
+<div class="codehilite"><pre>curl -v -X POST -H <span class="s2">"Accept: text/plain"</span> -T test.pdf <span class="se">\</span>
+ <span class="s2">"http://localhost:8080/enhancer/engine/tika?omitMetadata=true"</span>
+</pre></div>
+
+
+<p>Note the </p>
<ul>
<li>'Accept' header is set to the contentType of the requested content and the </li>
-<li>
-<p>'omitMetadata=true' telling the Enhancer to not return the RDF metadata.</p>
-<p>:::bash
-curl -v -X POST -H "Accept: text/plain" -T mag_internes_protokoll_20100721_rw.doc \
- "http://localhost:8080/enhancer/engine/tika?omitMetadata=true"</p>
-</li>
+<li>'omitMetadata=true' telling the Enhancer to not return the RDF metadata.</li>
</ul>
<p>This second example returns the metadata as extracted from the parsed "song.mp3"</p>
<div class="codehilite"><pre>curl -v -X POST -H <span class="s2">"Accept: application/rdf+xml"</span> -T song.mp3 <span class="se">\</span>