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 21)
Object | --Model
SparqlParser so we can re-use it
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).
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.
Prepares a sparql query and returns a prepared statement that can be executed with data later on.
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. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Parses an query and returns the parsed form.
If the query is not a string but a Query object, it will just be returned.
Prepares everything for SparqlEngine-usage Loads the files, creates instances for SparqlEngine and Dataset...
Inherited From Object
Object::toString()
Documentation generated on Fri, 1 Jun 2007 16:49:52 +0200 by phpDocumentor 1.3.2