How to get a collection or iterator of instances from a SPARQL query

13 views
Skip to first unread message

Mathos

unread,
Nov 11, 2010, 1:38:16 PM11/11/10
to RDF2Go and RDFReactor (part of semweb4j)
I see in the RDFReactor FAQ you can use getAllInstances to return
instances of all the objects in your model. Is it possible to do
something similar from a SPARQL query? Or maybe a way to instantiate
a model object from a QueryResultTable in RDF2Go or something?

Thanks.

Mathos

Max Voelkel

unread,
Nov 12, 2010, 12:38:40 PM11/12/10
to RDF2Go and RDFReactor (part of semweb4j)
---------- Forwarded message ----------
From: Max Voelkel <d...@xam.de>
Date: Fri, Nov 12, 2010 at 18:38
Subject: Re: [semweb4j] How to get a collection or iterator of instances from a SPARQL query
To: Mathos <mathos...@gmail.com>



Hi Mathos,

yes, you can use

        Bridge.getSparqlSelectSingleVariable(model, returnTypeClass, sparqlSelectQueryString);

       which gives you an iterator over RDFReactor-generated objects, you just need to cast them as such.

Cheers,
Max

 

Thanks.

Mathos

--
You received this message because you are subscribed to the Google Groups "RDF2Go and RDFReactor (part of semweb4j)" group.
To post to this group, send email to semw...@googlegroups.com.
To unsubscribe from this group, send email to semweb4j+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/semweb4j?hl=en.




--
d...@xam.de | http://Xam.de



--
d...@xam.de | http://Xam.de
Reply all
Reply to author
Forward
0 new messages