RDF model-to-TriX DOM serialization, TriX XML-to-RDF model deserialization,
using SAX, where the serialized XML conforms to TriX syntax.
Classes
- class Serializer
-
Serialize or deserialize a model based on the TriX serialization.
Methods
- __init__(self, reify=1)
- deserialize(self, model, source)
-
Generate RDF statements from a TriX serialization and insert these
into a Model.
- makeTriXComponent(self, doc, name, content)
- serialize(self, model, nsMap=None, selectUri=None, localResources=[], implementation=None, stmts=None)
-
Construct a DOM representing statements in the model.
- class TriXHandler(Ft.Xml.Sax.ContentHandler)
-
Methods
- __init__(self, model)
- characters(self, content)
- Overrides: characters from class ContentHandler
- endElementNS(self, (uri, localName), qualifiedName)
- Overrides: endElementNS from class ContentHandler
- startElementNS(self, (uri, localName), qualifiedName, atts)
- Overrides: startElementNS from class ContentHandler
- startTriple(self)
- useGraph(self)
- useId(self)
- usePlainLiteral(self)
- useTriple(self)
- useTypedLiteral(self)
- useUri(self)
Methods inherited from class Ft.Xml.Sax.ContentHandler
endDocument, endPrefixMapping, setDocumentLocator, startDocument, startPrefixMapping