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

Module RDFXMLReader

Functions [hide private]
dict
cimread(source, profile=None)
CIM RDF/XML parser.
 
xmlns(source)
Returns a map of prefix to namespace for the given XML file.
Variables [hide private]
  logger = logging.getLogger(__name__)
  PKG_MAP = {}
  NS_MAP = {}
  NS_RDF = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'
  __package__ = 'PyCIM'
Function Details [hide private]

cimread(source, profile=None)

 

CIM RDF/XML parser.

Parameters:
  • source (File-like object or a path to a file.) - CIM RDF/XML file.
  • profile (string) - CIM profile. If unspecified classes are imported from the full CIM package. Values are: CPSM, ENTSO-E, CDPSM, Dynamics.
Returns: dict
Map of uuid to CIM object.

Author: Richard Lincoln <r.w.lincoln@gmail.com>