org.topbraid.core.registry
Class OntModelFactory
java.lang.Object
org.topbraid.core.registry.OntModelFactory
public class OntModelFactory
- extends java.lang.Object
A singleton able to create OntModels from base Models.
- Author:
- Holger Knublauch
|
Method Summary |
com.hp.hpl.jena.ontology.OntModel |
createOntModel(com.hp.hpl.jena.rdf.model.Model baseModel,
com.hp.hpl.jena.rdf.model.Model systemModel,
com.hp.hpl.jena.rdf.model.Model infModel)
Creates a new OntModel from a given base model and its imports. |
com.hp.hpl.jena.ontology.OntModel |
createOntModel(java.lang.String baseURI)
|
com.hp.hpl.jena.ontology.OntModel |
createOntModel(java.lang.String baseURI,
java.lang.String comment)
|
static OntModelFactory |
get()
Gets the global singleton OntModelFactory. |
static com.hp.hpl.jena.ontology.OntModelSpec |
getOntModelSpec()
|
boolean |
isIgnoredImport(java.net.URI uri)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OntModelFactory
public OntModelFactory()
createOntModel
public com.hp.hpl.jena.ontology.OntModel createOntModel(java.lang.String baseURI)
createOntModel
public com.hp.hpl.jena.ontology.OntModel createOntModel(java.lang.String baseURI,
java.lang.String comment)
createOntModel
public com.hp.hpl.jena.ontology.OntModel createOntModel(com.hp.hpl.jena.rdf.model.Model baseModel,
com.hp.hpl.jena.rdf.model.Model systemModel,
com.hp.hpl.jena.rdf.model.Model infModel)
- Creates a new OntModel from a given base model and its imports.
This method assumes that all imported models are currently loaded -
otherwise they will not be included in the new OntModel.
- Parameters:
baseModel - the base model of the new OntModelsystemModel - an optional system model to addinfModel - an optional infModel to add
- Returns:
- an OntModel consisting of baseModel and all imports
getOntModelSpec
public static com.hp.hpl.jena.ontology.OntModelSpec getOntModelSpec()
get
public static OntModelFactory get()
- Gets the global singleton OntModelFactory.
- Returns:
- the OntModelFactory
isIgnoredImport
public boolean isIgnoredImport(java.net.URI uri)