Package com.complexible.stardog.jena
Class SDJenaFactory
java.lang.Object
com.complexible.stardog.jena.SDJenaFactory
Factory for obtaining instances of the Jena framework core, specifically Models
and Datasets, which are backed by Stardog.
- Since:
- 0.3.3
- Version:
- 6.0
- Author:
- Michael Grove
-
Method Summary
Modifier and TypeMethodDescriptionstatic DatasetcreateDataset(Connection theConn) Create a Jena Dataset backed by Stardogstatic DatasetcreateDatasetWithNamespaces(Connection theConn) Create a Jena Dataset backed by Stardog and exposes the namespaces stored in the databasestatic ModelcreateModel(Connection theConn) Create a Jena Model backed by Stardogstatic ModelcreateModelWithNamespaces(Connection theConn) Create a Jena Model backed by Stardog and exposes the namespaces stored in the database
-
Method Details
-
createDataset
Create a Jena Dataset backed by Stardog- Parameters:
theConn- the stardog connection- Returns:
- a Jena Dataset backed by stardog
- Throws:
StardogException- if there is an error establishing the connection
-
createModel
Create a Jena Model backed by Stardog- Parameters:
theConn- the stardog connection- Returns:
- a Jena Model backed by Stardog
- Throws:
StardogException- if there is an error establishing the connection
-
createDatasetWithNamespaces
Create a Jena Dataset backed by Stardog and exposes the namespaces stored in the database- Parameters:
theConn- the stardog connection- Returns:
- a Jena Dataset backed by stardog
- Throws:
StardogException- if there is an error establishing the connection
-
createModelWithNamespaces
Create a Jena Model backed by Stardog and exposes the namespaces stored in the database- Parameters:
theConn- the stardog connection- Returns:
- a Jena Model backed by Stardog
- Throws:
StardogException- if there is an error establishing the connection
-