2005-03-05 06:31:05

The model container for RDF meta-data: represents a directed graph

Copyright 2005 Fourthought, Inc. (USA). Detailed license and copyright information: http://4suite.org/COPYRIGHT Project home, documentation, distributions: http://4suite.org/

Represents a universe of RDF statements, which at the abstract level represents a set of graphs that make up an RDF model

Initializer for an RDF model instance. driver is an intance of the driver used to store the statements. schemaHandler is a reference to an object that can be used to govern operations on the model, as typically formalized in a schema language such as RDFS or DAML. This object can be None, disabling all such specialized processing.

Add statement(s) to the model

Add a container to the model. This involves adding a statement for the container type, and a container statement for each item in the collection.

Bind a Compiled Inference Object to a specific name in the Model

Check the consistency of the entire model

Compile a Ril expression into a compiled object

Return all the statements in the model that match the given pattern.

Any combination of s, p and o can be None, and any None slot is treated as a wildcard that matches any value in the model. A list is returned comprising all the statement objects that match the arguments.

flags keyword arguments map to the listed arguments with 'Flags' append to the name. Where the value is any combination of IGNORE_CASE and REGEX.

http://www.w3.org/TR/rdf-mt/#RDFRules [7.3 RDFS Entailment Rules] An RDFS entailment rule (rdfs7) can be applied to 'enhance' and/or optimize this calculation

Check if a statement is in the model

Determine if any statement matching the given criteria is in the model. See complete() for a description of the flags keyword argument.

Return all the statements in the model that DO NOT match the given pattern.

See complete() for a description of the flags keyword argument.

Build a container object from the container item relationships in the model (_1, _2, etc.).

Generates blank nodes (bnodes), AKA anonymous resources

Generates URIs on the fly, e.g. for reified statements. Do *not* use this to generate anonymous resources. Use generateBnode instead The default method is to generate a UUID URN, but this can be easily overridden.

See if the specified name is bound to the model

Determines whether a label is a blank node

Get a list of bound names in the model

Retrieve a previously bound Inference Object from the model

Remove statement(s) from the model.

Remove all statements from the model that match the specified pattern. See complete() for a description of the flags keyword argument.

Returns the number of statements in the model

Returns all the statments in the model.

Remove a binding from the model

'http://4suite.org/rdf/anonymous/'
32
1
0
'L'
'R'
'http://www.w3.org/1999/02/22-rdf-syntax-ns#'
'http://www.w3.org/2000/01/rdf-schema#'
2
['NORMAL', 'IGNORE_CASE', 'REGEX', 'Model']