Package oort :: Module rdfview
[hide private]
[frames] | no frames]

Module rdfview

source code

This module contains a system for creating rdf query classes in a mainly declarative manner. These are built by subclassing RdfQuery and creating class attributes by using Selector:s. There are several selectors provided in this module to cover all regular cases of data acquisition.

Classes [hide private]
  Selector
  PreparedSelect
  _rdf_query_meta
  RdfQuery
  ExecCache
This is a query execution cache which reuses results for the same query, subject and language, avoiding multiple instances of the same query when given the same subject and lang.
  Filter
  Sorter
  UnarySelector
  EachSelector
  one
  each
  one_where_self_is
  each_where_self_is
  collection
  TypeLocalized
  localized
  localized_xml
This selector removes any elements with an xml:lang other than the current language.
  i18n_dict
  each_localized
  selector
Use as decorator for methods of an RdfQuery subclass to convert them to selectors.
  QueryContext
A query context, used to provide a managed context for query execution.
Functions [hide private]
 
query_or_cached(rdfQuery, execCache) source code
 
run_queries(queries, graph, lang, subject) source code
 
back_from_value(graph, subject, predicate, value) source code
Variables [hide private]
  THIS_QUERY = object()
  MODULE_SEP = ':'