Package PyCIM :: Module RDFXMLWriter
[hide private]
[frames] | no frames]

Module RDFXMLWriter

Functions [hide private]
bool
cimwrite(d, source, encoding='utf-8')
CIM RDF/XML serializer.
Variables [hide private]
  nsPrefixRDF = 'rdf'
  nsRDF = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'
  logger = logging.getLogger(__name__)
  __package__ = 'PyCIM'
Function Details [hide private]

cimwrite(d, source, encoding='utf-8')

 

CIM RDF/XML serializer.

Parameters:
  • d (dict) - Map of URIs to CIM objects.
  • source (File or file-like object.) - This object must implement a write method that takes an 8-bit string.
  • encoding (string) - Character encoding defaults to "utf-8", but can also be set to "us-ascii".
Returns: bool
Write success.