-
Notifications
You must be signed in to change notification settings - Fork 6
Java API
For the Java API, you'll need sparqlGraphLibrary.
The snapshots will have the latest improvements, and may be slightly less stable.
Find snapshots on sonatype Nexus Repo Manager.
Copy the latest snapshot dependency from the Maven tab into your pom.xml.
Your pom.xml will also need this snapshot repository entry:
<repositories>
<repository>
<id>oss.sonatype.org-snapshot</id>
<url>http://oss.sonatype.org/content/repositories/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
Releases are hosted at Maven Central
A pre-build version of SemTk including (prebuilt docker containers) will contain standaloneExecutables/target/standaloneExecutables-jar-with-dependencies.jar
This jar can be extracted and added to your new project's CLASS_PATH.
The module sparqlGraphLibrary contains java clients which perform SemTk operations via REST calls.
The most commonly used features of SemTk are demonstrated in JavaApiDemo.java
This demo can be run with the command:
java -cp PATH_TO_SEMTK/standaloneExecutables/target/standaloneExecutables-jar-with-dependencies.jar: com.ge.research.semtk.demo.JavaApiDemo fuseki http://localhost:3030/DATASET
See the SemTk API javadocs