2005-02-27 04:17:30

A persistent RDF model driver using the PygreSQL adapter to PostgreSQL

See http://www.postgresql.org/

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

# Statements for use in the SqlAdapter

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.

'\nCREATE TABLE ftrdf_%s_bound (\n name text,\n object varchar,\n domain text)\n'
'\nCREATE TABLE ftrdf_%s_statement (\n subject ...\n domain text,\n otype text)\n'
{'source': ('ftrdf_%s_statement', ['domain']), 'sp': ('ftrdf_%s_statement', ['subject', 'predicate'])}
'L'
'R'
'0.2'
31
"SELECT subject, predicate, object, statementUri,...(statementUri)s' AND domain%(scopeOp)s'%(scope)s'"
"SELECT COUNT(subject) FROM ftrdf_%(modelName)s_s...(statementUri)s' AND domain%(scopeOp)s'%(scope)s'"
(True, True, True, True, 1)
["subject%(subjectOp)s'%(subject)s'", "predicate%(predicateOp)s'%(predicate)s'", "object%(objectOp)s'%(object)s'", "statementUri%(statementUriOp)s'%(statementUri)s'", "domain%(scopeOp)s'%(scope)s'"]
"DELETE FROM ftrdf_%(modelName)s_statement WHERE...(statementUri)s' AND domain%(scopeOp)s'%(scope)s'"
"subject%(subjectOp)s'%(subject)s' AND predicate%...(statementUri)s' AND domain%(scopeOp)s'%(scope)s'"