4Suite API Documentation

Module Ft.Rdf.Serializers.Dom

######################################################################## # $Header: /var/local/cvsroot/4Suite/Ft/Rdf/Serializers/Dom.py,v 1.45 2005/03/23 07:08:35 mbrown Exp $
Classes:
Fields:

Classes

class Serializer

Methods

__init__(self, reify=1)
deserialize(self, model, node, scope=None)
#6.1
exportContainer(self, doc, parent, nsMap, type, stmts, id)
exportDescription(self, doc, nsMap, stmts, subject='', id='')
exportInlineResource(self, doc, nsMap, subject, origStmts)
exportSimpleStatements(self, doc, parent, nsMap, stmts)
isResource(self, res)
readBagIdAttr(self, node)
#6.9
readCollection(self, model, nodeList, scope, xmlBase, forceType=None)
#2.16
readContainer(self, model, node, scope)
#6.4
readDamlCollection(self, model, nodeList, scope, xmlBase, forceType=None)
readDescription(self, model, node, scope)
#6.3
readIdAboutAttr(self, scope, node)
#6.5, 6.6
readIdAttr(self, node)
#6.6
readMemberAttrs(self, node)
#6.31
readObject(self, model, node, scope)
#6.2
readParseType(self, node)
# 6.32, 6.33
readPropName(self, node)
#6.14
readPropertyAttrs(self, node)
#6.10
readPropertyElt(self, model, node, subjects, scope)
#6.12
readRdfKeyAttribute(self, node, local, defaultNsAllowed=1)
readResource(self, model, nodeList, scope, subjects=None)
#6.3
readResourceAttr(self, scope, node)
#6.18
readString(self, st)
#6.24
readTypeAttr(self, scope, node)
#6.11
readValue(self, model, node, scope, parseType, predicate, forceType=None)
#6.17
serialize(self, model, nsMap=None, selectUri=None, localResources=[], implementation=None, stmts=None)
splitUri(self, uri)
uriFromParts(self, baseUri, part1, part2)
validateIdSymbol(self, idSym)
validateString(self, st)

Fields

CONTAINERS = ['Bag', 'Seq', 'Alt']
DAML_OIL_NS = 'http://www.w3.org/2001/10/daml+oil#'
OLD_DAML_OIL_NS = 'http://www.daml.org/2001/03/daml+oil#'
OWL_NS = 'http://www.w3.org/2002/07/owl#'
RDF_MS_BASE = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'
RDF_OBJ_PREDICATE = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#object'
RDF_PREDICATES = ['http://www.w3.org/1999/02/22-rdf-syntax-ns#subject', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#object', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#value']
RDF_PRED_PREDICATE = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate'
RDF_SCHEMA_BASE = 'http://www.w3.org/2000/01/rdf-schema#'
RDF_SUBJ_PREDICATE = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#subject'
RDF_TYPE_PREDICATE = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type'
RDF_VALUE_PREDICATE = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#value'
VALID_PARSETYPES = [(None, u'Literal'), (None, u'Resource'), ('http://www.w3.org/2001/10/daml+oil#', u'collection'), ('http://www.daml.org/2001/03/daml+oil#', u'collection'), (None, u'Collection')]
XMLNS_NAMESPACE = u'http://www.w3.org/2000/xmlns/'
XML_NAMESPACE = u'http://www.w3.org/XML/1998/namespace'