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

Module RDFXMLReader

Functions [hide private]
dict
cimread(source, packageMap={'ACLineSegment': 'CIM15.IEC61970.Wires', 'AcceptanceTest': 'C..., nsURI='http://iec.ch/TC57/2010/CIM-schema-cim15')
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__)
  NS_RDF = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'
  __package__ = 'PyCIM'
Function Details [hide private]

cimread(source, packageMap={'ACLineSegment': 'CIM15.IEC61970.Wires', 'AcceptanceTest': 'C..., nsURI='http://iec.ch/TC57/2010/CIM-schema-cim15')

 

CIM RDF/XML parser.

Parameters:
  • source (File-like object or a path to a file.) - CIM RDF/XML file.
  • packageMap - Map of class name to PyCIM package name. All CIM classes are under the one namespace, but are arranged into sub-packages so a map from class name to package name is required. Defaults to the latest CIM version, but may be set to a map from a profile to return a profile model.
  • nsURI - CIM namespace URI used in the RDF/XML file. For example: http://iec.ch/TC57/2010/CIM-schema-cim15
  • profile (dict)
Returns: dict
Map of UUID to CIM object.

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