Class SDJenaFactory


  • public final class SDJenaFactory
    extends java.lang.Object

    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

      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 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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