4Suite API Documentation

Module Ft.Rdf.Drivers.Odbc

A persistent RDF model driver using the pywin32 odbc driver
See http://starship.python.net/crew/mhammond/win32/
and https://sourceforge.net/projects/pywin32/

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

Classes

class DbAdapter(Ft.Rdf.Drivers.SQL.SqlAdapter)

Methods

__init__(self, dbiKeywords, model='default', db=None)
Overrides: __init__ from class SqlAdapter
begin(self)
Overrides: begin from class SqlAdapter
commit(self)
Overrides: commit from class SqlAdapter
rollback(self)
Overrides: rollback from class SqlAdapter

Methods inherited from class Ft.Rdf.Drivers.SQL.SqlAdapter

Functions

BuildObjectsFromSubAndPreds(subject, predicates, model)
BuildSubjectsFromPredAndObjs(predicate, objects, model)
BuildSubjectsFromPredsAndObj(predicates, object, model)
CreateDb(dbiKeywords, model='default')
DestroyDb(dbiKeywords, model='default')
ExistsDb(dbiKeywords, model='default')
GetDb(dbName, modelName='default')
InitializeModule()
Post-import hook to initialize module's runtime variables that are not required at import time, but will be needed before the module-level functions are called.
SplitConnectString(connString)

Globals

CREATE_BOUND_TABLE = '\nCREATE TABLE ftrdf_%s_bound (\n name varchar,\n object varchar,\n domain varchar)\n'
CREATE_STATEMENT_TABLE = '\nCREATE TABLE ftrdf_%s_statement (\n subject ... statementUri varchar,\n domain varchar)\n'
INDICES = {'binding': ('ftrdf_%s_bound', ['name']), 'po': ('ftrdf_%s_statement', ['predicate', 'object']), 'source': ('ftrdf_%s_statement', ['domain']), 'sp': ('ftrdf_%s_statement', ['subject', 'predicate'])}
bits = 31
complete = "SELECT * FROM ftrdf_%(modelName)s_statement WHE...tatementUri)s' AND domain%(domainOp)s'%(domain)s'"
contains = "SELECT COUNT(subject) FROM ftrdf_%(modelName)s_s...tatementUri)s' AND domain%(domainOp)s'%(domain)s'"
key = (True, True, True, True, 1)
parts = ["subject%(subjectOp)s'%(subject)s'", "predicate%(predicateOp)s'%(predicate)s'", "object%(objectOp)s'%(object)s'", "statementUri%(statementUriOp)s'%(statementUri)s'", "domain%(domainOp)s'%(domain)s'"]
remove = "DELETE FROM ftrdf_%(modelName)s_statement WHERE...tatementUri)s' AND domain%(domainOp)s'%(domain)s'"
where = "subject%(subjectOp)s'%(subject)s' AND predicate%...tatementUri)s' AND domain%(domainOp)s'%(domain)s'"