com.hp.hpl.jena.rdf.model
Interface ModelSpec

All Known Subinterfaces:
ModelMaker
All Known Implementing Classes:
com.hp.hpl.jena.rdf.model.impl.ModelSpecImpl, OntModelSpec

public interface ModelSpec

A ModelSpec allows Models to be created.

Author:
kers

Method Summary
 Model addDescription(Model m, Resource self)
          Add this ModelSpec's description to a given model, under the given resource
 Model createModel()
          Answer a new Model which fits the specification of this ModelSpec.
 Model createModelOver(java.lang.String name)
          Answer a Model that fits the specification of this ModelSpec and is built over some underlying model with the given name.
 Model getDescription()
          Answer an RDF description of this ModelSpec using the JMS vocabulary.
 Model getDescription(Resource root)
          Answer an RDF description of this ModelSpec using the JMS vocabulary, with the given Resource as root.
 

Method Detail

createModel

public Model createModel()
Answer a new Model which fits the specification of this ModelSpec.


createModelOver

public Model createModelOver(java.lang.String name)
Answer a Model that fits the specification of this ModelSpec and is built over some underlying model with the given name. [It is not necessary for the resulting model to be known by that name.]


getDescription

public Model getDescription()
Answer an RDF description of this ModelSpec using the JMS vocabulary. The description root will be a freshly-created bnode.


getDescription

public Model getDescription(Resource root)
Answer an RDF description of this ModelSpec using the JMS vocabulary, with the given Resource as root.

Parameters:
root - the resource to be used for all the top-level properties
Returns:
a description of this ModelSpec

addDescription

public Model addDescription(Model m,
                            Resource self)
Add this ModelSpec's description to a given model, under the given resource

Parameters:
m - the model to which the description is to be added
self - the resource to which the properties are to be added
Returns:
the model m (for cascading and convenience)


Copyright © 2000-2003 Hewlett-Packard. All Rights Reserved.