Hi Arthi

The FROM clause in sparql is to use another graph than the default
graph (i.e. the one you select in the drop-down menu in the form) it
does not allow to access RDF data on a remote host. You can just
access the different graphs stored within the clerezza graphstore.

Unfortunately the contenthub uses an invalid name for the graph (it
should be an IRI) and this breaks the query capabilities
(STANBOL-1066). In the fusepool project we found the separation of
indexed data data RDF data too limiting and thus replaced the
contenthub component with fusepool-ecs
(https://github.com/fusepool/fusepool-ecs/). Too see it in action see
here: http://beta.fusepool.com/firstswim.

Cheers,
Reto

On Thu, Jul 18, 2013 at 1:48 PM,  <arthi.ven...@wipro.com> wrote:
> Thanks a lot Rafa.
> I now understood the role of Contenthub and how to use same.
> The issue with my previous approach was that I was trying to upload
> the enhancement rather than the plain text and as a result nothing
> was getting uploaded.
>
> I had one more question from SPARQL endpoint of Stanbol can I query
> an external RDF graph which is not part of Stanbol.
> RDF is visible through an ipaddress:port interface.
> Can I make the SPARQL query to this along with the local enhanced graph.
> If yes what will be the syntax.
>
> Tried below call
> SELECT *
>  FROM Ipaddress:8080
> { ?s ?p ?o }
> LIMIT 10
>
> Call was returning something but did not seem relevant.
> How to make this query?
>
> Thanks and Rgds,
> Arthi
>
> 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
>>
>
>
> --
>
>
> From: arthi venkataraman (WT01 - CTO Office)
> Sent: Wednesday, July 17, 2013 7:47 PM
> To: dev@stanbol.apache.org
> Subject: RE: Simple example for querying across multiple RDF graphs
>
> Hi ,
> Adding I have used the WHERE clause in the SPARQL to point to both the graphs 
> in the SPARQL query.
> However I do not get results.
>
> Is there a way I can directly access any graph from the SPARQL endpoint using 
> WHERE clause or is there a need to first upload to the ContentHub before the 
> query
> can be run.
> Is there any simple Jave code which can be referred for running same.
>
> Thanks and Rgds,
> Arthi
>
>
>
>
>
> From: arthi venkataraman (WT01 - CTO Office)
> Sent: Wednesday, July 17, 2013 7:07 PM
> To: dev@stanbol.apache.org<mailto:dev@stanbol.apache.org>
> Subject: Simple example for querying across multiple RDF graphs
>
> 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

Reply via email to