public final class SDJenaFactory extends Object
Factory for obtaining instances of the Jena framework core, specifically Models
and Datasets
, which are backed by Stardog.
Modifier and Type | Method and Description |
---|---|
static org.apache.jena.query.Dataset |
createDataset(Connection theConn)
Create a Jena Dataset backed by Stardog
|
static org.apache.jena.query.Dataset |
createDatasetWithNamespaces(Connection theConn)
Create a Jena Dataset backed by Stardog and exposes the namespaces stored in the database
|
static org.apache.jena.rdf.model.Model |
createModel(Connection theConn)
Create a Jena Model backed by Stardog
|
static org.apache.jena.rdf.model.Model |
createModelWithNamespaces(Connection theConn)
Create a Jena Model backed by Stardog and exposes the namespaces stored in the database
|
public static org.apache.jena.query.Dataset createDataset(Connection theConn) throws StardogException
theConn
- the stardog connectionStardogException
- if there is an error establishing the connectionpublic static org.apache.jena.rdf.model.Model createModel(Connection theConn) throws StardogException
theConn
- the stardog connectionStardogException
- if there is an error establishing the connectionpublic static org.apache.jena.query.Dataset createDatasetWithNamespaces(Connection theConn) throws StardogException
theConn
- the stardog connectionStardogException
- if there is an error establishing the connectionpublic static org.apache.jena.rdf.model.Model createModelWithNamespaces(Connection theConn) throws StardogException
theConn
- the stardog connectionStardogException
- if there is an error establishing the connectionCopyright © 2010-2016 Stardog Union. All Rights Reserved.