Package com.complexible.stardog.jena
Class SDJenaFactory
- java.lang.Object
-
- com.complexible.stardog.jena.SDJenaFactory
-
public final class SDJenaFactory extends java.lang.Object
Factory for obtaining instances of the Jena framework core, specifically
Models
andDatasets
, which are backed by Stardog.- Since:
- 0.3.3
- Version:
- 6.0
- Author:
- Michael Grove
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.jena.query.Dataset
createDataset(Connection theConn)
Create a Jena Dataset backed by Stardogstatic org.apache.jena.query.Dataset
createDatasetWithNamespaces(Connection theConn)
Create a Jena Dataset backed by Stardog and exposes the namespaces stored in the databasestatic org.apache.jena.rdf.model.Model
createModel(Connection theConn)
Create a Jena Model backed by Stardogstatic org.apache.jena.rdf.model.Model
createModelWithNamespaces(Connection theConn)
Create a Jena Model backed by Stardog and exposes the namespaces stored in the database
-
-
-
Method Detail
-
createDataset
public static org.apache.jena.query.Dataset createDataset(Connection theConn) throws StardogException
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
public static org.apache.jena.rdf.model.Model createModel(Connection theConn) throws StardogException
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
public static org.apache.jena.query.Dataset createDatasetWithNamespaces(Connection theConn) throws StardogException
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
public static org.apache.jena.rdf.model.Model createModelWithNamespaces(Connection theConn) throws StardogException
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
-
-