Hi Arthi,

The Stanbol Contenthub component is an Apache Solr based document repository, it is not a triple store. It should be use to store documents with textual content along with RDF metadata. You can find proper documentation about its usage in [1]. Basically, by default, if you submit a file(document) to the ContentHub, it will try to enhance it using the enhancement chain passed by parameter (default chain if the parameter value is missing), extract the entities and store them along with the original content in a semantic index in Solr. Besides this, the resultant enhancement structure (enhancement graph) is stored in a graph registered in the system (org.apache.stanbol.contenthub.enhancements). You can then query this graph using the SPARQL endpoint provided by Stanbol.

I'm not completely sure about it, but I think that If you directly upload a RDF/XML file to the ContentHub, it is going to try to enhance it (as normal text) because currently the only format supported for the content is text/plain. If you need to put together the enhancement results and some custom metadata in RDF, you can use the metadata parameter of the REST services of the ContentHub. Take a look to the REST API at [2]. If you are using Java for your integration, you can see some examples about how to upload content and enhancements + custom metadata to the ContentHub in [3].

Hope this helps. Regards

[1] - http://stanbol.apache.org/docs/trunk/components/contenthub/contenthub5min
[2] - http://dev.iks-project.eu:8081/contenthub/contenthub/store
[3] - https://github.com/zaizi/apache-stanbol-client

El 17/07/13 15:36, arthi.ven...@wipro.com escribió:
Hi,
   I have a requirement to query the enhancement as done by Stanbol enhancer 
along  with another RDF data (  data store supports SPARQL endpoint)
I ran the custom enhancer chain from the curl command.  I piped the RDF/XML 
output to a local file.
I than uploaded this to the content hub.
When I ran the default SPARQL query from the SPARQL web page I got no results.
I assumed that once I upload an RDF file into content hub then the query will 
run on this.
Is this understanding correct?
What am I doing wrong here?

If I now need to query across both the data ( the RDF file as well as the other 
RDF endpoint )
In the ContentHub if I paste the other RDF URL in the Submit a public resource 
by URL will the query now happen across both these data.

is there any simple code from which I can run the above case.


Sorry for the newbee question. I have read multiple documents but could not 
find a resolution.

Thanks for your help and regards,
Arthi


Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.

www.wipro.com



--

------------------------------
This message should be regarded as confidential. If you have received this email in error please notify the sender and destroy it immediately. Statements of intent shall only become binding when confirmed in hard copy by an authorised signatory.

Zaizi Ltd is registered in England and Wales with the registration number 6440931. The Registered Office is Brook House, 229 Shepherds Bush Road, London W6 7AN.

Reply via email to