4Suite API Documentation

Module Ft.Rdf.Drivers.SQL

Routines for RDF drivers that use ANSI SQL databases (MySQL, Postgres, maybe others)

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

Classes

class Commands

class SqlAdapter

Methods

__init__(self, sqlCommands, comparisons, modelName)
add(self, statements)
begin(self)
bind(self, object, name, scope)
commit(self)
complete(self, subject, predicate, object, statementUri, scope, flags)
contains(self, subject, predicate, object, statementUri, scope, flags)
has_key(self, name, scope)
isResource(self, res)
keys(self, scope)
lookup(self, name, scope)
objectsFromSubAndPreds(self, subject, predicates, scope)
Get a list of obejcts with the given predicates and subject
objectsFromSubsAndPred(self, subjects, predicate, scope)
Get a list of obejcts with the given predicate and subjects
objectsFromSubsAndPredNonDistinct(self, subjects, predicate, scope)
Get a list of *non-distinct* objects with the given predicate and subjects
remove(self, statements)
removePattern(self, subject, predicate, object, statementUri, scope, flags)
resources(self, scope)
rollback(self)
size(self, scope)
subjectsFromPredAndObjs(self, predicate, objects, scope)
Get a list of resources with the given predicate and object
subjectsFromPredsAndObj(self, predicates, object, scope)
unbind(self, name, scope)

Functions

EscapeQuotes = lambda(s)
# could be None
dec_utf8 = lambda(x)

Fields