Ft.Rdf.Serializers.Dom

Modules

Context  Set  cStringIO   
Domlette  Util  urlparse   

Classes

class Node

Data and other non-method functions defined here:

ATTRIBUTE_NODE = 2
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
CDATA_SECTION_NODE = 4
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
COMMENT_NODE = 8
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
DOCUMENT_FRAGMENT_NODE = 11
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
DOCUMENT_NODE = 9
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
DOCUMENT_TYPE_NODE = 10
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
ELEMENT_NODE = 1
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
ENTITY_NODE = 6
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
ENTITY_REFERENCE_NODE = 5
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
NOTATION_NODE = 12
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
PROCESSING_INSTRUCTION_NODE = 7
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
TEXT_NODE = 3
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
TREE_POSITION_ANCESTOR = 4
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
TREE_POSITION_DESCENDENT = 8
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
TREE_POSITION_DISCONNECTED = 0
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
TREE_POSITION_EQUIVALENT = 16
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
TREE_POSITION_FOLLOWING = 2
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
TREE_POSITION_PRECEDING = 1
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
TREE_POSITION_SAME_NODE = 32
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
__doc__ = None
__module__ = 'xml.dom'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
class ParseException(exceptions.Exception)
__init__(self, errorCode, *args)

Data and other non-method functions defined here:

FEATURE_NOT_SUPPORTED = 1
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
INVALID_CONTAINER_PROPERTY = 20
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
INVALID_CONTAINER_TYPE = 30
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
INVALID_PREDICATE = 10
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
MULTIPLE_VALUE_OBJECTS = 40
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
NONEMPTY_PROPELT_WITH_PROPATTRS = 50
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
NONEMPTY_PROPELT_WITH_RESATTR = 51
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
__doc__ = None
__module__ = 'Ft.Rdf'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
class RdfException(exceptions.Exception)
__init__(self, errorCode, *args)

Data and other non-method functions defined here:

ABOUT_EACH_OBJECT_NOT_CONTAINER = 100
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
FEATURE_NOT_SUPPORTED = 1
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
INTERNAL_ERROR = 0
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
INVALID_ARGUMENT = 5
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
INVALID_CONTAINER_TYPE = 3
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
INVALID_FLAG = 2
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
INVALID_REGEX_STATEMENT = 4
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
MISSING_DRIVER = 200
int(x[, base]) -> integer

Convert a string or number to an integer, if possible. A floating point
argument will be truncated towards zero (this does not include a string
representation of a floating point number!) When converting a string, use
the optional base. It is an error to supply a base when converting a
non-string.
__doc__ = None
__module__ = 'Ft.Rdf'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
class Resource
__init__(self, uri, label='')
__repr__(self)
isAnonymous(self)
isBnode = isAnonymous(self)

Data and other non-method functions defined here:

__doc__ = None
__module__ = 'Ft.Rdf.Resource'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
class Serializer
_Serializer__sortStatementsForDump = __sortStatementsForDump(self, statements)
__init__(self, reify=1)
deserialize(self, model, node, scope=None)
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)
readCollection(self, model, nodeList, scope, xmlBase, forceType=None)
readContainer(self, model, node, scope)
readDamlCollection(self, model, nodeList, scope, xmlBase, forceType=None)
readDescription(self, model, node, scope)
readIdAboutAttr(self, scope, node)
readIdAttr(self, node)
readMemberAttrs(self, node)
readObject(self, model, node, scope)
readParseType(self, node)
readPropName(self, node)
readPropertyAttrs(self, node)
readPropertyElt(self, model, node, subjects, scope)
readRdfKeyAttribute(self, node, local, defaultNsAllowed=1)
readResource(self, model, nodeList, scope, subjects=None)
readResourceAttr(self, scope, node)
readString(self, st)
readTypeAttr(self, scope, node)
readValue(self, model, node, scope, parseType, predicate, forceType=None)
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)
validateUriReference(self, ref)

Data and other non-method functions defined here:

__doc__ = None
__module__ = 'Ft.Rdf.Serializers.Dom'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
class Statement(Ft.Rdf.Resource.Resource)
__cmp__(self, other)
__init__(self, subject, predicate, object, statementUri='', scope='', objectType='?')
__repr__(self)
reify(self, model, uri=None)

Data and other non-method functions defined here:

__doc__ = None
__module__ = 'Ft.Rdf.Statement'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

Functions

Compile(expr)
Evaluate(expr, contextNode=None, context=None)
Language(node)
Print(root, stream=<open file '<stdout>', mode 'w' at 0x100fe970>, encoding='UTF-8', asHtml=None)

Data

CONTAINERS = ['Bag', 'Seq', 'Alt']
DAML_OIL_NS = 'http://www.w3.org/2001/10/daml+oil#'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
EMPTY_NAMESPACE = None
EMPTY_PREFIX = None
OBJECT_TYPE_LITERAL = 'L'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
OBJECT_TYPE_RESOURCE = 'R'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
OLD_DAML_OIL_NS = 'http://www.daml.org/2001/03/daml+oil#'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
OWL_NS = 'http://www.w3.org/2002/07/owl#'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
RDF_CONTAINER_EXPR = .//child::rdf:RDF
RDF_MS_BASE = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
RDF_OBJ_PREDICATE = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#object'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same 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'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
RDF_SCHEMA_BASE = 'http://www.w3.org/2000/01/rdf-schema#'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
RDF_SUBJ_PREDICATE = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#subject'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
RDF_TYPE_PREDICATE = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
RDF_VALUE_PREDICATE = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#value'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
VALID_PARSETYPES = [(None, 'Literal'), (None, 'Resource'), ('http://www.w3.org/2001/10/daml+oil#', 'collection'), ('http://www.daml.org/2001/03/daml+oil#', 'collection'), (None, 'Collection')]
XMLNS_NAMESPACE = u'http://www.w3.org/2000/xmlns/'
unicode(string [, encoding[, errors]]) -> object

Create a new Unicode object from the given encoded string.
encoding defaults to the current default string encoding and
errors, defining the error handling, to 'strict'.
XML_NAMESPACE = u'http://www.w3.org/XML/1998/namespace'
unicode(string [, encoding[, errors]]) -> object

Create a new Unicode object from the given encoded string.
encoding defaults to the current default string encoding and
errors, defining the error handling, to 'strict'.
__file__ = 'build/lib.linux-ppc-2.2/Ft/Rdf/Serializers/Dom.py'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
__name__ = 'Ft.Rdf.Serializers.Dom'
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.