4Suite API Documentation

Module Ft.Rdf.Util

Some useful utilities for RDF processing
Copyright 2005 Fourthought, Inc. (USA).
Detailed license and copyright information: http://4suite.org/COPYRIGHT
Project home, documentation, distributions: http://4suite.org/
Functions:

Functions

DeserializeFromNode(node, driver=<module 'Ft.Rdf.Drivers.Memory' from 'build/lib.linux-i686-2.3/Ft/Rdf/Drivers/Memory.py'>, dbName='', create=False, scope=None, modelName='default')
DeserializeFromString(st, driver=<module 'Ft.Rdf.Drivers.Memory' from 'build/lib.linux-i686-2.3/Ft/Rdf/Drivers/Memory.py'>, dbName='', create=False, scope=None)
DeserializeFromUri(uri, driver=<module 'Ft.Rdf.Drivers.Memory' from 'build/lib.linux-i686-2.3/Ft/Rdf/Drivers/Memory.py'>, dbName='', create=False, scope=None)
GetObject(model, subject, predicate, statementUri=None, scope=None, **flags)
Performs a complete on the given model, using the given subject and predicate, None for the object, with any given optional parameters passed through. The first resulting statement is returned, and the object extracted therefrom. If no statements result, None is returned
GetObjects(model, subject, predicate, statementUri=None, scope=None, **flags)
Performs a complete on the given model, using the given subject and predicate, None for the object, with any given optional parameters passed through. The list of objects of the resulting statement is returned. If no statements result, the empty list is returned
GetPredicate(model, subject, object, statementUri=None, scope=None, **flags)
Performs a complete on the given model, using the given subject and object, None for the predicate, with any given optional parameters passed through. The first resulting statement is returned, and the predicate extracted therefrom. If no statements result, None is returned
GetPredicates(model, subject, object, statementUri=None, scope=None, **flags)
Performs a complete on the given model, using the given subject and predicate, None for the object, with any given optional parameters passed through. The list of predicates of the resulting statement is returned. If no statements result, the empty list is returned
GetSubject(model, predicate, object, statementUri=None, scope=None, **flags)
Performs a complete on the given model, using the given object and predicate, None for the subject, with any given optional parameters passed through. The first resulting statement is returned, and the subject extracted therefrom. If no statements result, None is returned
GetSubjects(model, predicate, object, statementUri=None, scope=None, **flags)
Performs a complete on the given model, using the given object and predicate, None for the subject, with any given optional parameters passed through. The list of subjects of the resulting statement is returned. If no statements result, the empty list is returned
SerializeModel(m)
SerializeStatementList(slist)
VersaDataToXml(data)
VersaQuery(query, model, nsMap=None, scope=None)