Class StardogModelAssembler

  • All Implemented Interfaces:

    public class StardogModelAssembler
    extends org.apache.jena.assembler.assemblers.ModelAssembler
    An assembler implementation to build a Stardog model from an assembler description in RDF. The assembler description provides the information about a Stardog connection that will be used to back the Jena model. The assembler vocabulary mimics the functions in ConnectionConfiguration to specify the details about the connection. An example assembler description looks like as follows: @prefix ja: <> . @prefix stardog: < . @prefix : < . stardog:Database ja:assembler "com.complexible.stardog.jena.StardogModelAssembler" . [] a stardog:Database ; stardog:url <http://localhost:5820/&gt ; stardog:name "myDB" ; stardog:username "user" ; stardog:password "pass" ; stardog:reasoning true .

    The reasoning flag is optional in the ConnectionConfiguration. If omitted the connection will be a plain Stardog connection without any reasoning.

    Evren Sirin
    • Field Summary

      • Fields inherited from interface org.apache.jena.assembler.Assembler

        content, defaultModel, documentManager, fileManager, general, infModel, locationMapper, memoryModel, modelSource, ontModel, ontModelSpec, prefixMapping, reasonerFactory, ruleSet, unionModel
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void addContent​(org.apache.jena.rdf.model.Resource root, org.apache.jena.rdf.model.Model m, org.apache.jena.assembler.Content c)  
      protected org.apache.jena.rdf.model.Model openEmptyModel​(org.apache.jena.assembler.Assembler a, org.apache.jena.rdf.model.Resource root, org.apache.jena.assembler.Mode mode)  
      • Methods inherited from class org.apache.jena.assembler.assemblers.ModelAssembler

        addPrefixes, getContent, getInitialContent, open, openModel, openModel
      • Methods inherited from class org.apache.jena.assembler.assemblers.AssemblerBase

        checkType, getOptionalClassName, getRequiredLiteral, getRequiredResource, getResource, getString, getUnique, getUniqueLiteral, getUniqueResource, getUniqueStatement, getUniqueString, loadClass, open, open, openModel
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.jena.assembler.Assembler

        open, open, openModel
    • Constructor Detail

      • StardogModelAssembler

        public StardogModelAssembler()
    • Method Detail

      • openEmptyModel

        protected org.apache.jena.rdf.model.Model openEmptyModel​(org.apache.jena.assembler.Assembler a,
                                                                 org.apache.jena.rdf.model.Resource root,
                                                                 org.apache.jena.assembler.Mode mode)
        Specified by:
        openEmptyModel in class org.apache.jena.assembler.assemblers.ModelAssembler
      • addContent

        protected void addContent​(org.apache.jena.rdf.model.Resource root,
                                  org.apache.jena.rdf.model.Model m,
                                  org.apache.jena.assembler.Content c)
        addContent in class org.apache.jena.assembler.assemblers.ModelAssembler