2005-03-29 00:30:48

A persistent RDF model driver using MetaKit database files

MetaKit is an efficient embedded database library with a small footprint. See http://www.equi4.com/metakit/

This driver originally donated by Alexander Smishlajev: http://lists.fourthought.com/pipermail/4suite-dev/2002-August/000621.html with copyright transferred to Fourthought.

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

return the MetaKit view containing RDF bindings

return disctinct (object, otype) pairs from listed rows

Parameters: view - RDF Model (MetaKit view) indices - list of row indexes Return value: list of unique (object, otype) pairs

return disctinct subjects from listed rows

Parameters: view - RDF Model (MetaKit view) indices - list of row indexes Return value: list of unique subjects

complete the statement; return MetaKit view

parameters: statement - 5-element sequence (subject, predicate, object, statementUri, scope) flags - dictionary with following recognized keys: "subjectFlags", "predicateFlags", "objectFlags", "statementUriFlags", "scopeFlags". dictionary values are any combination of IGNORE_CASE and REGEX

return the MetaKit view containing RDF statements

Versa query utility: return rownums for all sel_col in sel_val

Parameters: view - MetaKit view used for lookups. sel_col - name of the filter column. Lookup is performed on this column for values in sel_val sel_val - sequence of the lookup values. When sel_col value matches any value in sel_val, value from val_sel column is returned. Return value: list of matching row numbers

Get a list of objects with the given predicates and subject

raise an exception if transaction was not opened

Get a list of subjects with the given predicate and objects

Get a list of subjects with the given predicates and object

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.

apply each function in filter to corresp. rowref attrs; return truth

parameters: rowref - parameter passed to the filtering function by MetaKit view: row refference filter - maps row attribute names to filters.

return True if all of attribute filtering functions returned True

'ftrdf_%s_bound[name:S,object:B,scope:S]'
1
('subject', 'predicate', 'object', 'statementUri', 'scope')
['subjectFlags', 'predicateFlags', 'objectFlags', 'statementUriFlags', 'scopeFlags']
'ftrdf_%s_statement[subject:S,predicate:S,object:S,statementUri:S,scope:S,otype:S]'
'0.1'
'ftrdf_version[version:S]'