This library integrates MarkLogic Semantics into the Jena RDF Framework as a persistence and query layer.
Ensure MarkLogic (8.0-6 or later) is installed and running.
1) clone or download marklogic-jena develop branch.
https://github.com/marklogic/marklogic-jena/tree/develop
2) Run the gradle target that provisions a testing database for this project. The command and tests use values recorded in ./gradle.properties
.
./gradlew :marklogic-jena:mlDeploy
3) Build MarkLogic Jena.
./gradlew :marklogic-jena:test
To use marklogic-jena
in your own projects, deploy into local maven repo or copy snapshot jars from /build directory.
./gradlew publishToMavenLocal
For gradle-based projects include this dependency in build.gradle
:
dependencies {
implementation 'com.marklogic:marklogic-jena:4.1.0'
}
Maven-based projects use this block in pom.xml
:
<dependency>
<groupId>com.marklogic</groupId>
<artifactId>marklogic-jena</artifactId>
<version>4.1.0</version>
</dependency>
http://marklogic.github.io/marklogic-jena/marklogic-jena/build/docs/javadoc/
The project at marklogic-jena-examples contains some Java applications that exercise the functionality of MarkLogic using this library.