A InfModel Model extends a MemModel , by adding the ability to infer statements from known statements and RDFS/OWL-Schematas.
It uses the same interface as MemModel, thus making the infererence process hidden.
Located in /infModel/InfModel.php (line 19)
Object | --Model | --MemModel | --InfModel
Array that holds the objects of the class Infrule, which were assigned by the _addToInference() function
Array of the infRule entailments and the matching infrules.
$this->infRulesEntailIndex['s'] for subject index, ['p'] for predicates, and ['o'] for objects.
Array of the infRule triggers and the matching infrules.
$this->infRulesTriggerIndex['s'] for subject index, ['p'] for predicates, and ['o'] for objects.
Array of the connection between the infrules and the statement that assigned those rules.
array[2][3]=true;array[2][5]=true means, that statement 2 assigned rule 3 & 5 to the model.
Array of URI-Strings that produces Infrules.
Inherited from MemModel
MemModel::$indexArr
MemModel::$indexed
MemModel::$parsedNamespaces
MemModel::$triples
Inherited from Model
Model::$baseURI
Model::$bNodeCount
Constructor You can supply a base_uri
Adds a new triple to the Model without checking if the statement is already in the Model.
So if you want a duplicate free MemModel use the addWithoutDuplicates() function (which is slower then add()) If the statement's predicate label is supported by the inference, the matching rules are added.
Method to search for triples using Perl-style regular expressions.
NULL input for any parameter will match anything. Example: $result = $m->find_regex( NULL, NULL, $regex ); Finds all triples where the label of the object node matches the regular expression. Returns an empty MemModel if nothing is found.
This function is disabled in the Inference Model
Returns all tripels of a certain vocabulary.
$vocabulary is the namespace of the vocabulary inluding a # : / char at the end. e.g. http://www.w3.org/2000/01/rdf-schema# Returns an empty MemModel if nothing is found.
This function is disabled in the Inference Model.
Returns a model, containing all Statements, having a Predicate, that is supported by the inference.
General method to replace nodes of a MemModel.
This function is disabled in the Inference Model.
Adds an InfRule to the InfModel.
$statementPosition states the positiion of the statement, that created this rule, in the model->triples array.
Adds the URI or NULL to the Infrule trigger or entailment index.
This function analyses the statement's predicate and adds the matching infrule to the model.
Searches the Entailment-index for a matching Entailment and returns an array of infRule positions.
Searches the trigger-index for a matching trigger and returns an array of infRule positions.
This function checks, which infrules were added by the statement and removes those.
Inherited From MemModel
MemModel::MemModel()
MemModel::add()
MemModel::addModel()
MemModel::addNamespace()
MemModel::addParsedNamespaces()
MemModel::addWithoutDuplicates()
MemModel::close()
MemModel::contains()
MemModel::containsAll()
MemModel::containsAny()
MemModel::equals()
MemModel::find()
MemModel::findAsIterator()
MemModel::findCount()
MemModel::findFirstMatchingStatement()
MemModel::findFirstMatchOff()
MemModel::findRegex()
MemModel::findVocabulary()
MemModel::getIndexType()
MemModel::getParsedNamespaces()
MemModel::getStatementIterator()
MemModel::index()
MemModel::intersect()
MemModel::isEmpty()
MemModel::isIndexed()
MemModel::iterFind()
MemModel::matchStatement()
MemModel::rdqlQuery()
MemModel::rdqlQueryAsIterator()
MemModel::reify()
MemModel::remove()
MemModel::removeNamespace()
MemModel::replace()
MemModel::saveAs()
MemModel::setBaseURI()
MemModel::size()
MemModel::subtract()
MemModel::toString()
MemModel::toStringIncludingTriples()
MemModel::unite()
MemModel::writeAsHtml()
MemModel::writeAsHtmlTable()
MemModel::writeRdfToString()
MemModel::_containsIndex()
MemModel::_findInIndex()
MemModel::_findMatchIndex()
MemModel::_indexOpr()
Inherited From Model
Model::Model()
Model::findForward()
Model::getBaseURI()
Model::getMemModelByRDQL()
Model::getOntModel()
Model::getResModel()
Model::getUniqueResourceURI()
Model::load()
Model::sparqlQuery()
Model::visualize()
Model::_addStatementFromAnotherModel()
Inherited From Object
Object::toString()
Documentation generated on Mon, 26 Jun 2006 14:25:29 +0200 by phpDocumentor 1.3.0RC6