com.clarkparsia.stardog.jena
Class StardogModelAssembler

java.lang.Object
  extended by com.hp.hpl.jena.assembler.assemblers.AssemblerBase
      extended by com.hp.hpl.jena.assembler.assemblers.ModelAssembler
          extended by com.clarkparsia.stardog.jena.StardogModelAssembler
All Implemented Interfaces:
Assembler

public class StardogModelAssembler
extends com.hp.hpl.jena.assembler.assemblers.ModelAssembler

An assembler implementation to build a Stardog model from an assembler description in RDF. The assmebler 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: <http://jena.hpl.hp.com/2005/11/Assembler#> .
  @prefix stardog: <http://stardog.com/#> .
  @prefix profile: <http://www.w3.org/ns/owl-profile/> .
  @prefix : <http://example.com/#> .
 
  stardog:Database 
       ja:assembler "com.clarkparsia.stardog.jena.StardogModelAssembler" .
              
   [] a stardog:Database ;
      stardog:url <snarl://localhost:5820/> ;
      stardog:name "myDB" ;
      stardog:username "user" ;
      stardog:password "pass" ;
      stardog:reasoningType profile:QL .
 

The reasoning type is optional as in the ConnectionConfiguration. If omitted the connection will be a plain Stardog connection without any reasoning. If exists, the reasoning type should be one of profile:DL, profile:EL, profile:QL, or profile:RL.

Author:
Evren Sirin

Nested Class Summary
static class StardogModelAssembler.OWL2Profile
          URIs for OWL 2 profiles as defined by W3C.
static class StardogModelAssembler.Vocabulary
          Stardog assembler vocabulary.
 
Field Summary
static Logger log
           
 
Fields inherited from interface com.hp.hpl.jena.assembler.Assembler
content, defaultModel, documentManager, fileManager, fileModel, general, infModel, locationMapper, memoryModel, modelSource, ontModel, ontModelSpec, prefixMapping, reasonerFactory, ruleSet, unionModel
 
Constructor Summary
StardogModelAssembler()
           
 
Method Summary
 
Methods inherited from class com.hp.hpl.jena.assembler.assemblers.ModelAssembler
open, openModel
 
Methods inherited from class com.hp.hpl.jena.assembler.assemblers.AssemblerBase
getOptionalClassName, getRequiredResource, open, open, openModel
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.jena.assembler.Assembler
open, open, openModel
 

Field Detail

log

public static final Logger log
Constructor Detail

StardogModelAssembler

public StardogModelAssembler()


Copyright © 2010-2013 Clark & Parsia. All Rights Reserved.