Package ccrdf :: Module rdfextract :: Class RdfExtractor
[show private | hide private]
[frames | no frames]

Class RdfExtractor


A pluggable class for extracting RDF from blocks of text.
Method Summary
  __init__(self, default_extractors)
default_extractors contains the list of extractors to use; this list can be mutated after instantiation through the extractors property.
  extractRdf(self, textblock, url)
Pass textblock through each extractor in sequence and return a list of rdfDict objects.
  extractRdfText(self, textblock, url)
Pass textblock through each extractor in sequence and return a list of RDF blocks extracted.

Method Details

__init__(self, default_extractors=[<function regex_extractor at 0xb79d1924>, <function stri...)
(Constructor)

default_extractors contains the list of extractors to use; this list can be mutated after instantiation through the extractors property.

extractRdf(self, textblock, url=None)

Pass textblock through each extractor in sequence and return a list of rdfDict objects.

extractRdfText(self, textblock, url=None)

Pass textblock through each extractor in sequence and return a list of RDF blocks extracted.

Generated by Epydoc 2.1 on Mon Jul 10 17:08:26 2006 http://epydoc.sf.net