Skip to content

Expand SPARQL queries to perform inference on multiple endpoints and relational databases.

Notifications You must be signed in to change notification settings

djogopatrao/SPARQLFederator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SPARQLFederator

Expand SPARQL queries to perform inference on multiple endpoints.

Main documentation

Find more information on our wiki page:

https://github.com/djogopatrao/SPARQLFederator/wiki

Example

java -jar target/SPARQLFederator-1.1-SNAPSHOT-jar-with-dependencies.jar -domain_ontology examples/domain.owl -federation_ontology examples/federation.owl -exec print -query 'http://www.cipe.accamargo.org.br/ontologias/domain.owl#A'

"-exec print" will print the expanded query; "-exec run" would execute it and yield results (that is, if there are working endpoints as defined on example/federation.owl)

"http://www.cipe.accamargo.org.br/ontologias/domain.owl#A" is the full IRI of the class you're querying for (see -domain_ns for saving space); try it with other classes (like B, or C). Add axioms and your own classes to domain.owl, but keep in mind SPARQLFederator implemented semantics (see the wiki).

Arguments

It is mandatory to specify at least the domain ontology file, the federation ontology file, and one or more classes for querying.

usage: SPARQLFederator [options] <DOMAIN_CLASS> [...]

-query The query to be expanded (or run) in the syntax specified by -query_type

-domain_ns The domain namespace (if specified, will be appended before each of the queryied DOMAIN_CLASSes)

-domain_ontology The domain ontology file

-federation_ontology The federation ontology file

-help Shows the help message

-ontocloud_ns The federation namespace (default value: http://www.cipe.accamargo.org.br/ontologias/ontocloud2.owl)

-optimizer Execute a query optimizer: 'simple' (default) or 'none'

-planner Execute a query planner: 'simple' (default) or 'none'

-query_type The accepted query type: 'simple' (default) or 'sparql' (not implemented)

-stats Display statistics for queries

DEBUG compiling and running:

mvn clean package

mvn exec:java -Dexec.mainClass="br.org.accamargo.cipe.gqe.SPARQLFederatorRun" -Dexec.args="-federation_ontology federation_ontology.owl -domain_ontology domain_ontology.owl -domain_ns domainNamespace# class1 [,classn]"

Production Compiling

mvn clean compile assembly:single

About

Expand SPARQL queries to perform inference on multiple endpoints and relational databases.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages