4Suite™ API Documentation

# ► Module Ft.Rdf.Drivers.Memory

A non-persistent RDF model driver
Copyright 2005 Fourthought, Inc. (USA).
Detailed license and copyright information: http://4suite.org/COPYRIGHT
Project home, documentation, distributions: http://4suite.org/

Classes: DbAdapter |  |  |  | Functions: CreateDb, DestroyDb, ExistsDb, ForceUnicode, GetDb, InitializeModule |  |  |  | Fields: OBJECT_TYPE_RESOURCE, OBJECT_TYPE_UNKNOWN, bits, body, g_completes, g_contains, g_operators, g_removes, key, parts

## Classes

class DbAdapter

### Methods

__init__(self, name, modelName='default')
add(self, statements)
begin(self)
Does nothing in this driver (transactions are not supported)
bind(self, object_, name, scope)
commit(self)
Does nothing in this driver (transactions are not supported)
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 objects with the given predicates and subject
properties(self, scope)
remove(self, statements)
removePattern(self, subject, predicate, object_, statementUri, scope, flags)
resources(self, scope)
rollback(self)
Does nothing in this driver (transactions are not supported)
size(self, scope)
subjectsFromPredAndObjs(self, predicate, objects, scope)
Get a list of subjects with the given predicate and objects
subjectsFromPredsAndObj(self, predicates, object_, scope)
Get a list of subjects with the given predicates and object
unbind(self, name, scope)

## Functions

CreateDb(dbName, modelName='default')
DestroyDb(dbName, modelName='default')
Does nothing in this driver (there is no persistent data store)
ExistsDb(dbName, modelName='default')
Returns False in this driver (there is no persistent data store)
ForceUnicode(*args)
GetDb = CreateDb(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.

## Fields

OBJECT_TYPE_RESOURCE = 'R'
OBJECT_TYPE_UNKNOWN = '?'
bits = 31
body = 'f[0](s[0]) and f[1](s[1]) and f[2](s[2]) and f[3](s[3]) and f[4](s[4])'
g_completes = {(False, False, False, False, 0): <function <lambda>>, (False, False, False, False, 1): <function <lambda>>, (False, False, False, True, 0): <function <lambda>>, (False, False, False, True, 1): <function <lambda>>, (False, False, True, False, 0): <function <lambda>>, (False, False, True, False, 1): <function <lambda>>, (False, False, True, True, 0): <function <lambda>>, (False, False, True, True, 1): <function <lambda>>, (False, True, False, False, 0): <function <lambda>>, (False, True, False, False, 1): <function <lambda>>, ...}
g_contains = {(False, False, False, False, 0): <function <lambda>>, (False, False, False, False, 1): <function <lambda>>, (False, False, False, True, 0): <function <lambda>>, (False, False, False, True, 1): <function <lambda>>, (False, False, True, False, 0): <function <lambda>>, (False, False, True, False, 1): <function <lambda>>, (False, False, True, True, 0): <function <lambda>>, (False, False, True, True, 1): <function <lambda>>, (False, True, False, False, 0): <function <lambda>>, (False, True, False, False, 1): <function <lambda>>, ...}
g_operators = {None: <function <lambda>>, 0: <function <lambda>>, 1: <function <lambda>>, 2: <function _regexCompile>, 3: <function _regexICCompile>}
g_removes = {(False, False, False, False, 0): <function <lambda>>, (False, False, False, False, 1): <function <lambda>>, (False, False, False, True, 0): <function <lambda>>, (False, False, False, True, 1): <function <lambda>>, (False, False, True, False, 0): <function <lambda>>, (False, False, True, False, 1): <function <lambda>>, (False, False, True, True, 0): <function <lambda>>, (False, False, True, True, 1): <function <lambda>>, (False, True, False, False, 0): <function <lambda>>, (False, True, False, False, 1): <function <lambda>>, ...}
key = (True, True, True, True, 1)
parts = ['f[0](s[0])', 'f[1](s[1])', 'f[2](s[2])', 'f[3](s[3])', 'f[4](s[4])']