Skip to content

LinkedDataFragments/Client.Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linked Data Fragments Client

Build Status

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.

Usage

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 }

Status

Technical preview only. In production, use the JavaScript client.

About

A Triple Pattern Fragments client for Java (Jena)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages