]> gerrit.simantics Code Review - simantics/interop.git/blob - org.simantics.xml.sax.ontology/graph/XML.pgraph
Inverse relation for hasReference
[simantics/interop.git] / org.simantics.xml.sax.ontology / graph / XML.pgraph
1 L0 = <http://www.simantics.org/Layer0-1.1>
2
3 XML = <http://www.simantics.org/XML-1.0> : L0.Ontology
4    @L0.new
5    L0.HasResourceClass "org.simantics.xml.sax.ontology.XMLResource"
6
7
8 // Built-in types
9 XML.Entity <T L0.Entity
10 XML.hasAttribute <R L0.HasProperty
11 XML.hasID <R XML.hasAttribute : L0.FunctionalRelation
12   --> L0.String
13 XML.ComplexType <T XML.Entity
14 XML.hasComplexType <R L0.IsComposedOf
15 XML.AttributeGroup  <T XML.Entity
16 XML.Element <T XML.Entity
17 XML.hasElement <R L0.IsComposedOf
18 XML.ElementList <T L0.List
19 XML.hasElementList <R L0.IsComposedOf
20 XML.hasOriginalElementList <R XML.hasElementList
21 XML.hasReference <R L0.IsRelatedTo
22  L0.InverseOf XML.referredBy <R L0.IsWeaklyRelatedTo
23 XML.hasExternalReference <R L0.IsRelatedTo
24    L0.InverseOf XML.externalReferenceOf <R L0.IsRelatedTo
25    
26    
27 XML.DateTime <T L0.Literal
28     @L0.assert L0.HasValueType "(Integer,Byte,Byte,Byte,Byte,Byte,Integer)"
29     @L0.assert L0.HasDataType ${ year : Integer, month : Byte, date : Byte, hours : Byte, minutes : Byte, seconds : Byte, offset : Integer }
30     
31 XML.Date <T L0.Literal
32     @L0.assert L0.HasValueType "(Integer,Byte,Byte,Integer)"
33     @L0.assert L0.HasDataType ${ year : Integer, month : Byte, date : Byte, offset : Integer }
34
35 XML.Time <T L0.Literal
36     @L0.assert L0.HasValueType "(Byte,Byte,Byte,Integer,)"
37     @L0.assert L0.HasDataType ${ hours : Byte, minutes : Byte, seconds : Byte, offset : Integer }
38