4Suite API Documentation

Module Ft.Rdf.Serializers.N3

N3 Deserializer which makes use of Sean B. Palmer's n3p <http://inamidst.com/n3p>
see: http://copia.ogbuji.net/blog/keyword/n3 and
     http://www.w3.org/DesignIssues/Notation3


The 4Suite project has secured licensing under the 4Suite license from Sean B. Palmer for the modules included within 4Suite. If you intend to use these modules separately from 4Suite, you must either conform to the GPL 2, or request an alternate license from Mr. Palmer.

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

Classes

class FtRDFSink
A n3proc sink that captures statements produced from processing an N3 document

Methods

__init__(self, scope, model)
flatten(self, s, p, o, f)
Adds a 'Reified' hypothetical statement (associated with the formula f)
quantify(self, formula, var)
start(self, root)
statement(self, s, p, o, f)
class Serializer
Serialize or deserialize a model using N3.

Methods

__init__(self, reify=1)
deserialize(self, model, stream, scope=None)
serialize(self, model, nsMap=None)

Globals

OBJECT_TYPE_LITERAL = 'L'
OBJECT_TYPE_RESOURCE = 'R'
OBJECT_TYPE_UNKNOWN = '?'
RDF_MS_BASE = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'
RDF_SCHEMA_BASE = 'http://www.w3.org/2000/01/rdf-schema#'