Package com.complexible.stardog.jena
Class StardogModelAssembler
- java.lang.Object
-
- org.apache.jena.assembler.assemblers.AssemblerBase
-
- org.apache.jena.assembler.assemblers.ModelAssembler
-
- com.complexible.stardog.jena.StardogModelAssembler
-
- All Implemented Interfaces:
org.apache.jena.assembler.Assembler
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 inConnectionConfiguration
to specify the details about the connection. An example assembler description looks like as follows:@prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> . @prefix stardog: <http://stardog.com/#> . @prefix : <http://example.com/#> . stardog:Database ja:assembler "com.complexible.stardog.jena.StardogModelAssembler" . [] a stardog:Database ; stardog:url <http://localhost:5820/> ; 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.- Version:
- 4.0
- Author:
- Evren Sirin
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StardogModelAssembler.Vocabulary
Stardog assembler vocabulary.
-
Constructor Summary
Constructors Constructor Description StardogModelAssembler()
-
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
-
-
-
-
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 classorg.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)
- Overrides:
addContent
in classorg.apache.jena.assembler.assemblers.ModelAssembler
-
-