Skip to content

cognizone/semanticz-connectors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RDF Store Connectors

This repository contains connectors to RDF stores. Its goal is to provide unified API for accessing various back-end implementations and to optimize them in future with implementations more optimized towards individual stores.

The project structure is as follows:

  • semanticz-connectors-common - common utilities and interfaces used by the individual connectors
  • semanticz-connectors-spring - integration to Spring, allowing to fetch a connector as a Spring bean
  • individual connectors in semanticz-connector- modules:
    • semanticz-connector-fuseki - SparqlService-based implementation
    • semanticz-connector-graphdb - SparqlService-based implementation
    • semanticz-connector-stardog - SparqlService-based implementation
    • semanticz-connector-jenamemory - SparqlService-based implementation, RdfStoreService implementations
    • semanticz-connector-virtuoso - SparqlService implementation, RdfStoreService implementations
  • examples - project exemplifying the usage.

Building

./gradlew clean build

Running tests

  1. Unit tests
./gradlew test
  1. Integration tests with local triple stores
  • Virtuoso (set the properties accordingly)
./gradlew semanticz-connector-virtuoso:test -Dsemanticz.connector.virtuoso.tests.enabled=true -Dsemanticz.connector.virtuoso.tests.url=http://localhost:8890/sparql-auth -Dsemanticz.connector.virtuoso.tests.username=dba -Dsemanticz.connector.virtuoso.tests.password=dba 
  • GraphDB (set the properties accordingly - note that the repository must not use any inference and needs to be configured in GraphDB upfront and the user needs to have R/W rights to it)
./gradlew semanticz-connector-graphdb:test -Dsemanticz.connector.graphdb.tests.enabled=true -Dsemanticz.connector.graphdb.tests.url=http://localhost:7200 -Dsemanticz.connector.graphdb.tests.repository=test -Dsemanticz.connector.graphdb.tests.username=test -Dsemanticz.connector.graphdb.tests.password=test 

Usage

semanticz-connectors Java Jena
1.x 11 4
2.x 17 5

Full list of versions of the given branch is in gradle/libs.versions.toml.

Two usage scenarios are anticipated:

  1. Dedicated connector usage, e.g. for gradle:
implementation("zone.cogni.semanticz:semanticz-connector-fuseki:1.0.0")
implementation("zone.cogni.semanticz:semanticz-connectors-common:1.0.0")
  1. Spring usage, e.g. for gradle:
implementation("zone.cogni.semanticz:semanticz-connectors-spring:1.0.0")
implementation("zone.cogni.semanticz:semanticz-connectors-common:1.0.0")

For details refer to the example project example-spring-with-fuseki.

About

Connectors to SPARQL services

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages