Author: rwesten
Date: Wed Feb 15 16:55:54 2012
New Revision: 1244590

URL: http://svn.apache.org/viewvc?rev=1244590&view=rev
Log:
css: Updated the Footer to be in line with the Content; Enhancer Docu: created 
smaller version of the overview diagram + some minor corrections

Added:
    
incubator/stanbol/site/trunk/content/stanbol/docs/trunk/enhancer/enhanceroverview-s.png
   (with props)
Modified:
    incubator/stanbol/site/trunk/content/stanbol/css/stanbol.css
    
incubator/stanbol/site/trunk/content/stanbol/docs/trunk/enhancer/index.mdtext

Modified: incubator/stanbol/site/trunk/content/stanbol/css/stanbol.css
URL: 
http://svn.apache.org/viewvc/incubator/stanbol/site/trunk/content/stanbol/css/stanbol.css?rev=1244590&r1=1244589&r2=1244590&view=diff
==============================================================================
--- incubator/stanbol/site/trunk/content/stanbol/css/stanbol.css (original)
+++ incubator/stanbol/site/trunk/content/stanbol/css/stanbol.css Wed Feb 15 
16:55:54 2012
@@ -20,7 +20,7 @@ h1,h2,h3,h4,h5,h6 {
 @media screen
 {
   #content {
-     margin: 30px 50px 100px 250px;
+     margin: 30px 50px 10px 250px;
      padding: 0 30px 40px;
      background-color: #fff;
   }
@@ -41,6 +41,9 @@ h1,h2,h3,h4,h5,h6 {
   #navigation {
     display: none;
   }
+  #footer {
+    background-color: #fff;
+  }
 }
 #content h1,h2,h3,h4,h5,h6 {
   color: #6f3f00;
@@ -111,7 +114,7 @@ h1,h2,h3,h4,h5,h6 {
   background-color:#404040;
   color:#717171;
   font-size: 80%;
-  margin: 0 100px 0 300px;
+  margin: 0 50px 0 250px;
   padding: 10px 30px;
 }
 

Added: 
incubator/stanbol/site/trunk/content/stanbol/docs/trunk/enhancer/enhanceroverview-s.png
URL: 
http://svn.apache.org/viewvc/incubator/stanbol/site/trunk/content/stanbol/docs/trunk/enhancer/enhanceroverview-s.png?rev=1244590&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
incubator/stanbol/site/trunk/content/stanbol/docs/trunk/enhancer/enhanceroverview-s.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

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=1244590&r1=1244589&r2=1244590&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 
Wed Feb 15 16:55:54 2012
@@ -6,16 +6,23 @@ The Apache Stanbol Enhancer provides bot
 
 The following figure provides an overview about the RESTful as well as the 
Java API provided by the Stanbol Enhancer
 
-![Stanbol Enhancer Overview](enhanceroverview.png "Overview about the RESTful 
Services and Java API provided by the Stanbol Enhancer")
+![Stanbol Enhancer Overview](enhanceroverview-s.png "Overview about the 
RESTful Services and Java API provided by the Stanbol Enhancer")
 
 ### RESTful service:
 
 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:
 
     curl -X POST -H "Accept: text/turtle" -H "Content-type: text/plain" \
-    --data "John Smith was born in London." http://localhost:8080/enhancer
+        --data "John Smith was born in London." http://localhost:8080/enhancer
 
-See the documentation provided by the Stanbol Web UI (e.g. 
"http://localhost:8080/enhancer"; assuming that Apache Stanbol runs on 
localhost:8080)
+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
+
+    curl -v -X POST -H "Accept: text/plain" \
+        -H "Content-type: text/html; charset=UTF-8" \
+        --data "<html><body><p>John Smith was born in 
London.</p></body></html>" \
+        "http://localhost:8080/enhancer/chain/language?omitMetadata=true";
+
+For detailed information please see the documentation provided by the Stanbol 
Web UI (e.g. [http://localhost:8080/enhancer](http://localhost:8080/enhancer) 
assuming that Apache Stanbol runs on localhost:8080).
 
 ### Java API: 
 
@@ -26,7 +33,7 @@ The usage of the Java API requires the f
     @Reference
     EnhancementChainManager
 
-Provided this service are available the following code snippet shows how to 
enhance a Content
+This code snipped shows how to enhance a HTML document
 
     InputStream content; //the content (assuming an HTML document)
     String chainName; //the name of the chain or null to use the default
@@ -46,7 +53,7 @@ Provided this service are available the 
     //Get the enhancement Results
     MGraph enhancements = contentItem.getMetadata();
     
-However the ContentIem may - depending on the executed [Enhancement 
Engines](engines) also provide additional information. This shows how to 
retrieve the text version of the parsed HTML content.
+After the enhancement process finishes ContentIems do not only contain the 
metadata but also other informations such as converted versions of the parsed 
content. The following code snippet shows how to retrieve the text version of 
the parsed HTML content such as created by the [Metaxa 
Engine](engines/metaxaengine.html).
 
     Entry<UriRef,Blob> textContentPart = 
             ContentItemHelper.getBlob(contentItem, 


Reply via email to