owlim-discussion  

Re: [Owlim-discussion] how to use context in sparql?

Barry Bishop
Mon, 02 Aug 2010 01:46:35 -0700

Hi Yonghong,

If you have not done this before, probably the best place to start is to
read here:

    http://www.w3.org/TR/rdf-sparql-query/#namedGraphs

You will need to use FROM or FROM NAMED or a combination of the two. I
won't explain further, as the above URL explains it better than I could.

Best of luck,
barry

--
Barry Bishop
OWLIM Product Manager
Ontotext AD
Tel: +43 650 2000 237
email: barry.bis...@ontotext.com
www.ontotext.com

On 02/08/2010 10:31, yonghong ke wrote:
> Hi, all:
>   I create a context like follow:
> 
>       String location = "http://example.org/example/example.rdf";;
>     
>       URI context = f.createURI(location);
> 
> 
>       con.add(sub, predicate, obj, context);
> 
> 
> i want to query  in the ‘context’ use sparql,  how should i do ?
> 
> Thanks!
> 
> 
> 
> _______________________________________________
> OWLIM-discussion mailing list
> OWLIM-discussion@ontotext.com
> http://ontotext.com/mailman/listinfo/owlim-discussion
_______________________________________________
OWLIM-discussion mailing list
OWLIM-discussion@ontotext.com
http://ontotext.com/mailman/listinfo/owlim-discussion