Enhanced view of the model that is known to contain ontology data, under a
given ontology vocabulary (such as RDFS). OntModel together with OntClass and OntResource provide ontology specific methods like addSubClass(), listSubClasses(), hasSuperProperty(), addDomain() and listInstances(). This class does not by itself compute the deductive extension of the graph under the semantic rules of the language. Instead, we wrap an underlying model with this ontology interface, that presents a convenience syntax for accessing the language elements. Depending on the inference capability of the underlying model, the OntModel will appear to contain more or less triples. For example, if this class is used to wrap a MemModel or DBModel, only the relationships asserted by the document will be reported through this convenience API. Alternatively, if the OntModel wraps an InfModel (InfModelF / InfModelB), the inferred triples from the extension will be reported as well.
Located in /ontModel/OntModel.php (line 32)
ResModel | --OntModel
Constructor.
You have to supply a memmodel/dbmodel/infmodel to save the statements and a vocabulary
Answer a resource that represents an Individual node in this model.
If a resource with the given uri exists in the model, it will be re-used. If not, a new one is created in the updateable sub-model of the ontology model.
Answer a resource that represents a class description node in this model.
If a resource with the given uri exists in the model, it will be re-used. If not, a new one is created in the updateable sub-model of the ontology model.
Answer a resource that represents an OntProperty node in this model.
If a resource with the given uri exists in the model, it will be re-used. If not, a new one is created in the updateable sub-model of the ontology model.
Answer an array that ranges over all of the various forms of class description resource in this model.
Class descriptions include domain/range definitions, named classes and subClass constructs.
Inherited From ResModel
ResModel::ResModel()
ResModel::add()
ResModel::addModel()
ResModel::addNamespace()
ResModel::addParsedNamespaces()
ResModel::addWithoutDuplicates()
ResModel::contains()
ResModel::containsAll()
ResModel::containsAny()
ResModel::containsResource()
ResModel::createAlt()
ResModel::createBag()
ResModel::createList()
ResModel::createLiteral()
ResModel::createProperty()
ResModel::createResource()
ResModel::createSeq()
ResModel::createTypedLiteral()
ResModel::equals()
ResModel::find()
ResModel::findFirstMatchingStatement()
ResModel::getBaseURI()
ResModel::getModel()
ResModel::getParsedNamespaces()
ResModel::getProperty()
ResModel::intersect()
ResModel::isEmpty()
ResModel::listObjects()
ResModel::listObjectsOfProperty()
ResModel::listSubjects()
ResModel::listSubjectsWithProperty()
ResModel::load()
ResModel::rdqlQuery()
ResModel::rdqlQueryAsIterator()
ResModel::remove()
ResModel::removeNamespace()
ResModel::saveAs()
ResModel::setBaseURI()
ResModel::size()
ResModel::subtract()
ResModel::unite()
ResModel::writeAsHTMLTable()
ResModel::writeRdfToString()
Documentation generated on Fri, 1 Jun 2007 16:50:08 +0200 by phpDocumentor 1.3.2