Revision b6cd8492d117638f2c2fcbff79a5a546bda67e53 authored by Tassilo Horn on 14 August 2014, 14:24:23 UTC, committed by Tassilo Horn on 14 August 2014, 14:24:23 UTC
1 parent fc284e8
xml-schema.tg
TGraph 2;
Schema de.uni_koblenz.xmltg.XMLSchema;
GraphClass XMLGraph;
abstract VertexClass Node;
abstract VertexClass NamespacedElement {nsURI: String, nsPrefix: String};
abstract VertexClass Referent;
VertexClass Element: Node, NamespacedElement {name: String, declaredNamespaces: Map<String, String>};
VertexClass RootElement: Element;
VertexClass CharContent: Node, Referent {content: String};
VertexClass Attribute: NamespacedElement, Referent {name: String, value: String};
EdgeClass HasAttribute from Element (1,1) role element to Attribute (0,*) role attributes aggregation composite;
EdgeClass References from Referent (0,*) role referents to Element (0,*) role targets;
abstract EdgeClass HasContent from Element (0,1) role parent to Node (0,*) role contents aggregation composite;
EdgeClass HasChild: HasContent from Element (0,1) to Element (0,*) role children aggregation composite;
EdgeClass HasCharContent: HasContent from Element (0,1) to CharContent (0,*) role charContents aggregation composite;
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...