com.hp.hpl.jena.vocabulary
Class JenaModelSpec

java.lang.Object
  extended by com.hp.hpl.jena.vocabulary.JenaModelSpec
Direct Known Subclasses:
JMS

public class JenaModelSpec
extends java.lang.Object

The Jena Model Specification vocabulary, schema, and some conversion methods. See the modelspec and modelspec-details HOWTOs for discussion on how these fit into the ModelSpec design and implementation. TODO ensure these have explicit tests [they were developed implicitly from the ModelSpec tests].

Author:
kers

Field Summary
static java.lang.String baseURI
          The base URI for all the JenaModelSpec vocabulary items.
static Property dbClass
          The property of an RDBMakerSpec that gives the string to use for class to load [if any] when making the connection.
static Property dbPassword
          The property of an RDBMakerSpec that gives the string to use for the password when making the connection.
static Property dbType
          The property of an RDBMakerSpec that gives the string to use for the database type when making the connection.
static Property dbURL
          The property of an RDBMakerSpec that gives the string to use for the database URL when making the connection.
static Property dbUser
          The property of an RDBMakerSpec that gives the string to use for the user name when making the connection.
static Resource DefaultModelSpec
          DefaultModelSpec, a dynamic default ModelSpec
static Property docManager
          The property of an OntModelSpec that gives the document manager resource.
static Property fileBase
          The property of a FileMakerSpec that gives the fileBase [root directory] of the FileModelMaker.
static Resource FileMakerSpec
          The class of FileMakerSpec resources [subclass of MakerSpec].
static Resource FileModelSpec
          The class of FileModel specifications.
static Property hasConnection
          The property of an RDBModelSpec that describes the connection
static Property hasRule
          The property of a RuleSet that specifies a rule.
static Property importMaker
          The property of an OntModelSpec that gives the MakerSpec used when manufacturing models for imports.
static Resource InfModelSpec
          The class of InfModelSpec resources [subclass of ModelSpec].
static Property loadWith
          The property of a ModelSpec that specifies the URI(s) from which it is to be loaded when it has been created.
static Property maker
          The property of a ModelSpec that specifies the resource which describes the maker.
static Resource MakerSpec
          The class of MakerSpec resources.
static Resource MemMakerSpec
          The class of MemMakerSpec resources [subclass of MakerSpec].
static Property modelName
          The property of a ModelSpec that specifies the model name.
static Resource ModelSpec
          The class of ModelSpec resources.
static Property ontLanguage
          The property of an OntModelSpec that gives the language URI string.
static Resource OntModelSpec
          The class of OntModelSpec resources [subclass of InfModelSpec].
static Resource PlainModelSpec
          The class of PlainModelSpec resources [subclass of ModelSpec].
static Property policyPath
          The property of a document manager that gives its policy path string.
static Resource RDBMakerSpec
          The class of RDBMakerSpec resources [subclass of MakerSpec].
static Resource RDBModelSpec
          The class of RDBModelSpec resources [subclass of PlainModelSpec]
static Property reasoner
          The property of a ReasonerSpec that gives the resource who's URI is that of the reasoner to use.
static Property reasonsWith
          The property of an InfModelSpec that specifies the ReasonerSpec to use.
static Property reificationMode
          The property of a MakerSpec that gives the reification mode for all its models.
static Resource rsConvenient
          The resource representing reification mode Convenient.
static Resource rsMinimal
          The resource representing reification mode Minimal.
static Resource rsStandard
          The resource representing reification mode Standard.
static Property ruleSet
          The property of a reasoner spec that specifies in-line rule-sets.
static Property ruleSetURL
          The property of a reasoner spec that specifies a rule-set URL.
static Property schemaURL
          The property of a reasoner spec that specifies a schema to load
static Property typeCreatedBy
          The property of some subclass of jms:ModelSpec that specifies the name of the Java class that implements that ModelSpec.
 
Constructor Summary
JenaModelSpec()
           
 
Method Summary
static ReificationStyle findStyle(Node style)
          Answer the Reifier.ReificationStyle value named by the argument, which should be a JenaModelSpec.rs[something] Node
static ReificationStyle findStyle(RDFNode style)
          Answer the Reifier.ReificationStyle value named by the argument, which should be a JenaModelSpec.rs[something] value
static Model getSchema()
          Answer the JenaModelSpec schema encoded into a model.
static java.lang.String getURI()
          Answer the base URI for the JenaModelSpec vocabulary items.
static Node styleAsJMS(ReificationStyle style)
          Answer the Node which corresponds to the supplied reification style.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

baseURI

public static final java.lang.String baseURI
The base URI for all the JenaModelSpec vocabulary items.

See Also:
Constant Field Values

loadWith

public static final Property loadWith
The property of a ModelSpec that specifies the URI(s) from which it is to be loaded when it has been created.


ontLanguage

public static final Property ontLanguage
The property of an OntModelSpec that gives the language URI string.


docManager

public static final Property docManager
The property of an OntModelSpec that gives the document manager resource.


hasConnection

public static final Property hasConnection
The property of an RDBModelSpec that describes the connection


importMaker

public static final Property importMaker
The property of an OntModelSpec that gives the MakerSpec used when manufacturing models for imports.


reasonsWith

public static final Property reasonsWith
The property of an InfModelSpec that specifies the ReasonerSpec to use.


ruleSetURL

public static final Property ruleSetURL
The property of a reasoner spec that specifies a rule-set URL.


ruleSet

public static final Property ruleSet
The property of a reasoner spec that specifies in-line rule-sets.


modelName

public static final Property modelName
The property of a ModelSpec that specifies the model name.


schemaURL

public static final Property schemaURL
The property of a reasoner spec that specifies a schema to load


hasRule

public static final Property hasRule
The property of a RuleSet that specifies a rule.


policyPath

public static final Property policyPath
The property of a document manager that gives its policy path string.


dbUser

public static final Property dbUser
The property of an RDBMakerSpec that gives the string to use for the user name when making the connection.


dbPassword

public static final Property dbPassword
The property of an RDBMakerSpec that gives the string to use for the password when making the connection.


dbURL

public static final Property dbURL
The property of an RDBMakerSpec that gives the string to use for the database URL when making the connection.


dbType

public static final Property dbType
The property of an RDBMakerSpec that gives the string to use for the database type when making the connection.


dbClass

public static final Property dbClass
The property of an RDBMakerSpec that gives the string to use for class to load [if any] when making the connection.


maker

public static final Property maker
The property of a ModelSpec that specifies the resource which describes the maker.


reificationMode

public static final Property reificationMode
The property of a MakerSpec that gives the reification mode for all its models.


reasoner

public static final Property reasoner
The property of a ReasonerSpec that gives the resource who's URI is that of the reasoner to use.


fileBase

public static final Property fileBase
The property of a FileMakerSpec that gives the fileBase [root directory] of the FileModelMaker.


typeCreatedBy

public static final Property typeCreatedBy
The property of some subclass of jms:ModelSpec that specifies the name of the Java class that implements that ModelSpec.


MakerSpec

public static final Resource MakerSpec
The class of MakerSpec resources.


FileMakerSpec

public static final Resource FileMakerSpec
The class of FileMakerSpec resources [subclass of MakerSpec].


MemMakerSpec

public static final Resource MemMakerSpec
The class of MemMakerSpec resources [subclass of MakerSpec].


RDBMakerSpec

public static final Resource RDBMakerSpec
The class of RDBMakerSpec resources [subclass of MakerSpec].


ModelSpec

public static final Resource ModelSpec
The class of ModelSpec resources.


DefaultModelSpec

public static final Resource DefaultModelSpec
DefaultModelSpec, a dynamic default ModelSpec


PlainModelSpec

public static final Resource PlainModelSpec
The class of PlainModelSpec resources [subclass of ModelSpec].


FileModelSpec

public static Resource FileModelSpec
The class of FileModel specifications.


InfModelSpec

public static final Resource InfModelSpec
The class of InfModelSpec resources [subclass of ModelSpec].


OntModelSpec

public static final Resource OntModelSpec
The class of OntModelSpec resources [subclass of InfModelSpec].


RDBModelSpec

public static final Resource RDBModelSpec
The class of RDBModelSpec resources [subclass of PlainModelSpec]


rsStandard

public static final Resource rsStandard
The resource representing reification mode Standard.


rsMinimal

public static final Resource rsMinimal
The resource representing reification mode Minimal.


rsConvenient

public static final Resource rsConvenient
The resource representing reification mode Convenient.

Constructor Detail

JenaModelSpec

public JenaModelSpec()
Method Detail

getURI

public static java.lang.String getURI()
Answer the base URI for the JenaModelSpec vocabulary items.


getSchema

public static Model getSchema()
Answer the JenaModelSpec schema encoded into a model. This defines the subclass hierarchy and the essential domains of the properties. ["Essential" means "relied on by the ModelSpec engines".] The schema is not loaded until its first use. TODO make this model immutable once created.


styleAsJMS

public static Node styleAsJMS(ReificationStyle style)
Answer the Node which corresponds to the supplied reification style. [Node, not resource, purely because the use happens in BaseGraphMaker, ie at the Graph level.]

Parameters:
style - the reification style for which the JenaModelSpec representation is required
Returns:
the Node version of the appropriate JenaModelSpec.rs[name] vocabulary item

findStyle

public static ReificationStyle findStyle(RDFNode style)
Answer the Reifier.ReificationStyle value named by the argument, which should be a JenaModelSpec.rs[something] value

Parameters:
style - the JenaModelSpec name of the reifier style
Returns:
the actual Reifier.ReificationStyle value

findStyle

public static ReificationStyle findStyle(Node style)
Answer the Reifier.ReificationStyle value named by the argument, which should be a JenaModelSpec.rs[something] Node

Parameters:
style - the JenaModelSpec name of the reifier style
Returns:
the actual Reifier.ReificationStyle value


Copyright © 2000, 2001, 2002, 2003, 2004, 2005 Hewlett-Packard Development Company, LP