This is a prototype implementation of a Linked Data Fragments client for the Jena stack. The recommended client is the JavaScript implementation.
Efficient execution of SPARQL queries against Triple Pattern Fragment interfaces relies on parallelization, which Jena does not seem suited for. As such, consider this code as an example, not as a recommended implementation.
This adapter lets you use Triple Pattern Fragments in Jena.
For example, use as a Jena Model:
LinkedDataFragmentGraph ldfg = new LinkedDataFragmentGraph("http://data.linkeddatafragments.org/dbpedia");
Model model = ModelFactory.createModelForGraph(ldfg);
Example queries:
SELECT ?p ?o WHERE { <http://dbpedia.org/resource/Barack_Obama> ?p ?o }
SELECT ?o ?n WHERE { <http://dbpedia.org/resource/Barack_Obama> <http://dbpedia.org/ontology/almaMater> ?o . ?o <http://dbpedia.org/ontology/state> ?n }
Technical preview only. In production, use the JavaScript client.