pub struct Statement {
pub subject: Mrid,
pub class: Option<QualifiedName>,
pub defines_subject: bool,
pub predicate_ns: String,
pub predicate: String,
pub value: StatementValue,
}Expand description
One statement inside a difference model: a subject, a predicate and a value.
Statements are kept in unresolved form (IRIs, raw text) because a difference model may legitimately reference objects and properties that are not in the dataset yet.
Fields§
§subject: MridmRID of the object the statement is about.
class: Option<QualifiedName>Class named on the statement group’s element.
A difference names its subject either with a bare rdf:Description — in which
case this is None — or with the class element itself. The latter carries real
information: a difference may reclassify an object, and the published CGMES
conformity tests do exactly that, replacing a LinearShuntCompensator with a
NonlinearShuntCompensator under the same identifier.
defines_subject: boolWhether the statement group introduced its subject (rdf:ID) rather than updating
one defined elsewhere (rdf:about).
Both forms occur in the published change sets: an Equipment difference that adds
breakers writes rdf:ID, while one that edits a limit writes rdf:about. Keeping
the distinction is what lets a difference be written back as it was read.
predicate_ns: StringNamespace IRI of the predicate.
predicate: StringQualified predicate name, e.g. TapChangerTablePoint.x.
value: StatementValue