openRDF.org Welcome Guest   | Login   
  Search  
  Index  | Recent Threads  | Who's Online  | User List  | Search  | Help  | RSS feeds

Forum has been closed down
This forum has been closed down due to extensive spamming activities. Please use the mailing list instead.


Quick Go »
Thread Status: Normal
Total posts in this thread: 2
[Add To My Favorites] [Watch this Thread]
Author
Previous Thread This topic has been viewed 4446 times and has 1 reply Next Thread
Jan 18, 2009 6:47:38 AM

jhodges
Member



Joined: Nov 6, 2008
Posts: 9
Status: Offline

SPARQL equivalent of evaluateGraphQuery in sesame API

I saw an example of evaluateGraphQuery in the system docs folder of the system docs but it doesn't appear to exist in the Connection class for sesame 2.1.3.

I am trying to achieve a similar result to:

con.export(rdfWriter, context);

but using a SPARQL query to narrow the results.

I tried using con.prepareGraphQuery and then evaluating the graph query using my rdfWriter but that is apparently unsupported for SPARQL queries.

con.evaluateGraphQuery looked like a solution to my problem but it isn't supported.

Is there a recommended method to use a query to retrieve RDF content from a repository? Thanks for any help.

Jack
----------------------------------------
[Edit 1 times, last edit by jhodges at Jan 18, 2009 6:53:46 AM]
Show Printable Version of Post        Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Jan 23, 2009 2:31:48 PM

james
OpenRDF.org Consultant
Member's Avatar

Canada
Joined: Jul 21, 2005
Posts: 650
Status: Offline
Re: SPARQL equivalent of evaluateGraphQuery in sesame API

You will want to use prepareGraphQuery with a SPARQL CONSTRUCT query.
----------------------------------------
Sesame Consultant
http://leighnet.ca
http://jamesrdf.blogspot.com
Show Printable Version of Post        Hidden to Guest    http://leighnet.ca [Link] Report threatening or abusive post: please login first  Go to top 
[Show Printable Version of Thread]