1

I have written a query on DBpedia.

SELECT * WHERE {
    <http://dbpedia.org/resource/London> ?p ?o.
    FILTER (langMatches(lang(?x),"en"))
}

And I want to load the results in a Jena model so that I can make queries on them later. How can I do that?

I have checked this answer. But this is not working or maybe I am not getting it properly. Would someone explain it with proper examples?

  • 2
    Do you want to further queries on the data that the original query touched? If so, use a CONSTRUCT query to get the data. Or make queries on the structure of the result set? If so RDFOutput asModel or encodeAsRDF. – AndyS Jan 22 '21 at 10:23

0 Answers0