Hello everyone, I would like to know how I can use Jena API to dereference a 
URI for example: http://xmlns.com/foaf/0.1/Person and get the collection of 
RDF-triples that describe that entity, without having to retrieve the entire 
FOAF document. I would like to know whether this is possible?

At the moment I have been using the following Jana code:
     Model model = ModelFactory.createDefaultModel();
     model.read("http://xmlns.com/foaf/0.1/Person/";;);

to load the entire RDF document in memory and then ask a SPARQL query to get 
the triples that have the entity's URI as the subject. Is there any other way 
to do it because some RDF documents are expected to have large numbers of 
triples and eventually I will be running out of memory at some point. I am 
trying to build a follow-your-nose application and I do not find it convenience 
to load everything in memory. Apologies in advance for this newbie question, 
but I have recently started working with Jena. Thank you

Reply via email to