Abstract superclass of MemModel and DbModel. A model is a programming interface to an RDF graph.
An RDF graph is a directed labeled graph, as described in http://www.w3.org/TR/rdf-mt/. It can be defined as a set of <S, P, O> triples, where P is a uriref, S is either a uriref or a blank node, and O is either a uriref, a blank node, or a literal.
Located in /model/Model.php (line 22)
Object | --Model
Notice for people who are used to work with older versions of RAP.
Searches for triples using find() and tracks forward blank nodes until the final objects in the retrieved subgraphs are all named resources.
The method calls itself recursivly until the result is complete. NULL input for subject, predicate or object will match anything. Inputparameters are ignored for recursivly found statements. Returns a new MemModel or adds (without checking for duplicates) the found statements to a given MemModel. Returns an empty MemModel, if nothing is found. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! WARNING: This method can be slow with large models. NOTE: Blank nodes are not renamed, they keep the same nodeIDs as in the queried model! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Perform an RDQL query on this Model. Should work with all types of models.
This method returns a MemModel containing the result statements. If $closure is set to TRUE, the result will additionally contain statements found by the findForward-method for blank nodes. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! WARNING: If called with $closure = TRUE this method can be slow with large models. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Returns an OntModel with this model as baseModel.
$vocabulary has to be one of the following constants (currently only one is supported): RDFS_VOCABULARY to select a RDFS Vocabulary.
This is the same as ModelFactory::getOntModelForBaseModel($this, $vocabulary).
Returns a ResModel with this model as baseModel. This is the same as ModelFactory::getResModelForBaseModel($this).
Internal method, that returns a resource URI that is unique for the Model.
URIs are generated using the base_uri of the DbModel, the prefix and a unique number. If no prefix is defined, the bNode prefix, defined in constants.php, is used.
Load a model from a file containing RDF, N3, N-Triples or a xhtml document containing RDF.
This function recognizes the suffix of the filename (.n3 or .rdf) and calls a suitable parser, if no $type is given as string ("rdf" "n3" "nt"); If the model is not empty, the contents of the file is added to this DbModel.
Performs a SPARQL query against a model. The model is converted to an RDF Dataset. The result can be retrived in SPARQL Query Results XML Format or as an array containing the variables an their bindings.
Alias for RDFUtil::visualiseGraph(&$model, $format, $short_prefix)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Note: See RDFUtil for further Information. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Adds a statement from another model to this model.
If the statement to be added contains a blankNode with an identifier already existing in this model, a new blankNode is generated.
Inherited From Object
Object::toString()
Documentation generated on Mon, 26 Jun 2006 14:25:38 +0200 by phpDocumentor 1.3.0RC6