2005-03-23 07:08:35

RDF model-to-DOM serialization, DOM-to-RDF model deserialization where the serialized DOM conforms to RDF/XML syntax (1999 Recommendation)

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

Serialize or deserialize a model based on the XML serialization in the RDF Model and Syntax recommendation.

Generate RDF statements from an XML serialization and insert these into a Model.

#6.9

#2.16

#6.4

#6.3

#6.5, 6.6

#6.6

#6.31

#6.2

# 6.32, 6.33

#6.14

#6.10

#6.12

Returns None if the attribute is not on the element in null or RDF namespace, otherwise returns the attribute value Note that RDF M&S technically doesn't allow the qualified form, But user/implementor consensu allows this under the XML NS concept of global attrs

#6.3

#6.18

#6.24

#6.11

#6.17

Construct a DOM representing statements in the model.

If there's a fragment, returns (base+'#', fragment); otherwise returns ('', uri)

From RDF-MS, part 6:

'...the expansion of the namespace-qualified tag name (Generic Identifier) of E. This expansion is generated by concatenating the namespace name given in the namespace declaration with the LocalPart of the qualified name.' ... 'URI-References are resolved to resource identifiers by first resolving the URI-reference to absolute form as specified by [RFC 2396] using the base URI of the document in which the RDF statements appear.'

['Bag', 'Seq', 'Alt']
'http://www.w3.org/2001/10/daml+oil#'
None
None
'L'
'R'
'http://www.daml.org/2001/03/daml+oil#'
'http://www.w3.org/2002/07/owl#'
'http://www.w3.org/1999/02/22-rdf-syntax-ns#'
'http://www.w3.org/1999/02/22-rdf-syntax-ns#object'
['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']
'http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate'
'http://www.w3.org/2000/01/rdf-schema#'
'http://www.w3.org/1999/02/22-rdf-syntax-ns#subject'
'http://www.w3.org/1999/02/22-rdf-syntax-ns#type'
'http://www.w3.org/1999/02/22-rdf-syntax-ns#value'
[(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')]
u'http://www.w3.org/2000/xmlns/'
u'http://www.w3.org/XML/1998/namespace'