You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by si...@apache.org on 2012/03/07 09:34:34 UTC
svn commit: r1297879 -
/incubator/stanbol/site/trunk/content/stanbol/docs/trunk/contenthub/index.mdtext
Author: sinaci
Date: Wed Mar 7 08:34:33 2012
New Revision: 1297879
URL: http://svn.apache.org/viewvc?rev=1297879&view=rev
Log:
Refactoring example commands
Modified:
incubator/stanbol/site/trunk/content/stanbol/docs/trunk/contenthub/index.mdtext
Modified: incubator/stanbol/site/trunk/content/stanbol/docs/trunk/contenthub/index.mdtext
URL: http://svn.apache.org/viewvc/incubator/stanbol/site/trunk/content/stanbol/docs/trunk/contenthub/index.mdtext?rev=1297879&r1=1297878&r2=1297879&view=diff
==============================================================================
--- incubator/stanbol/site/trunk/content/stanbol/docs/trunk/contenthub/index.mdtext (original)
+++ incubator/stanbol/site/trunk/content/stanbol/docs/trunk/contenthub/index.mdtext Wed Mar 7 08:34:33 2012
@@ -29,7 +29,9 @@ Contenthub is divided into Store and Sea
You can submit text content (sending in the payload of an HTTP POST request) with the following command
- curl -i -X POST -H "Content-Type:text/plain" --data "I live in Istanbul." http://localhost:8080/contenthub/contenthub/store
+ curl -i -X POST -H "Content-Type:text/plain" \
+ --data "I live in Istanbul." \
+ http://localhost:8080/contenthub/contenthub/store
Contenthub provides different search interfaces. You can directly query the Solr backend as follows
@@ -39,7 +41,9 @@ Contenthub provides different search int
You can obtain a Contenthub specific search result from the featured search service based on a keyword search. The results can be retrieved in JSON format as in the following command
- curl -i -X GET -H "Accept: application/json" -H "Content-Type:text/plain" http://localhost:8080/contenthub/contenthub/search/featured?queryTerm=turkey
+ curl -i -X GET -H "Accept: application/json" \
+ -H "Content-Type:text/plain" \
+ http://localhost:8080/contenthub/contenthub/search/featured?queryTerm=turkey
Featured search not only returns resulting documents, but also related keywords retrieved from various resources (if the resources are available within the running Stanbol instance)