Skip to content

ontop/ontoprox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ontoprox

Ontoprox is a system for OBDA with expressive ontologies. It rewrites OBDA specifications with an expressive ontology to “equivalent” ones with a DL-LiteR ontology, if possible, and to approximate them otherwise.

How to build

Git clone the code base

$ git clone [email protected]:ontop/ontoprox.git
$ cd ontoprox

Configure SWI-prolog

We rely on SWI-prolog for Datalog expansions and we use the java interface JPL.

OS X

  • Install swipl-prolog via homebrew:
$ brew  install swi-prolog --with-jpl
  • install the library to the local maven repository
$ cd /usr/local/opt/swi-prolog/libexec/lib/swipl-7.2.2/lib
$ mvn install:install-file -Dfile=jpl.jar  -DgroupId=org.jpl7 -DartifactId=jpl -Dversion=7.0.1 -Dpackaging=jar

Ubuntu Linux

  • install swi-prolog via apt-get:
$ sudo apt-get install software-properties-common
$ sudo apt-add-repository ppa:swi-prolog/stable
$ sudo apt-get update
$ sudo apt-get install swi-prolog
$ sudo apt-get install swi-prolog-java
  • install the library to the local maven repository
$ cd /usr/lib/swi-prolog/lib
$ mvn install:install-file -Dfile=jpl.jar  -DgroupId=org.jpl7 -DartifactId=jpl -Dversion=7.0.1 -Dpackaging=jar

VW args

  • OS X

-Djava.library.path=/usr/local/Cellar/swi-prolog/7.2.2/libexec/lib/swipl-7.2.2/lib/x86_64-darwin14.4.0

  • Ubuntu

-Djava.library.path=/usr/lib/swi-prolog/lib/amd64

Generating an all-in-one jar for testing:

$ mvn clean compile package -DskipTests

Then you can find the generated jar file in the target directory

Usage

  • OS X
$ java -Djava.library.path=/usr/local/Cellar/swi-prolog/7.2.2/libexec/lib/swipl-7.2.2/lib/x86_64-darwin14.4.0 \
 -Djava.ext.dirs=/Users/xiao/.m2/repository/mysql/mysql-connector-java/5.1.35/ -jar ontoprox-1.0-jar-with-dependencies.jar \
  ../src/test/resources/uobm/univ-bench-dl.owl ../src/test/resources/uobm/univ-bench-dl.obda newUOBM.obda
  • Linux
$ java -Djava.library.path=/usr/lib/swi-prolog/lib/amd64 \
 -Djava.ext.dirs=/home/gxiao/.m2/repository/mysql/mysql-connector-java/5.1.35/ -jar ontoprox-1.0-jar-with-dependencies.jar \
  ../src/test/resources/uobm/univ-bench-dl.owl ../src/test/resources/uobm/univ-bench-dl.obda newUOBM.obda

About

Ontoprox is a system for OBDA with expressive ontologies.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •