Skip to content

freme-project/ldf-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linked Data Fragments Client

This is a copy of the repository https://github.com/LinkedDataFragments/Client.Java In order to release the repository on Maven Central because we need a release version.

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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages