-L0 = <http://www.simantics.org/Layer0-1.1>\r
-\r
-XML = <http://www.simantics.org/XML-1.0> : L0.Ontology\r
- @L0.new\r
- L0.HasResourceClass "org.simantics.xml.sax.ontology.XMLResource"\r
-\r
-\r
-// Built-in types\r
-XML.Entity <T L0.Entity\r
-XML.hasAttribute <R L0.HasProperty\r
-XML.hasID <R XML.hasAttribute : L0.FunctionalRelation\r
- --> L0.String\r
-XML.ComplexType <T XML.Entity\r
-XML.hasComplexType <R L0.IsComposedOf\r
-XML.AttributeGroup <T XML.Entity\r
-XML.Element <T XML.Entity\r
-XML.hasElement <R L0.IsComposedOf\r
-XML.ElementList <T L0.List\r
-XML.hasElementList <R L0.IsComposedOf\r
-XML.hasOriginalElementList <R XML.hasElementList\r
-XML.hasReference <R L0.IsRelatedTo\r
-XML.hasExternalReference <R L0.IsRelatedTo\r
- L0.InverseOf XML.externalReferenceOf <R L0.IsRelatedTo\r
- \r
- \r
-XML.DateTime <T L0.Literal\r
- @L0.assert L0.HasValueType "(Integer,Byte,Byte,Byte,Byte,Byte,Integer)"\r
- @L0.assert L0.HasDataType ${ year : Integer, month : Byte, date : Byte, hours : Byte, minutes : Byte, seconds : Byte, offset : Integer }\r
- \r
-XML.Date <T L0.Literal\r
- @L0.assert L0.HasValueType "(Integer,Byte,Byte,Integer)"\r
- @L0.assert L0.HasDataType ${ year : Integer, month : Byte, date : Byte, offset : Integer }\r
-\r
-XML.Time <T L0.Literal\r
- @L0.assert L0.HasValueType "(Byte,Byte,Byte,Integer,)"\r
- @L0.assert L0.HasDataType ${ hours : Byte, minutes : Byte, seconds : Byte, offset : Integer }\r
-\r
+L0 = <http://www.simantics.org/Layer0-1.1>
+
+XML = <http://www.simantics.org/XML-1.0> : L0.Ontology
+ @L0.new
+ L0.HasResourceClass "org.simantics.xml.sax.ontology.XMLResource"
+
+
+// Built-in types
+XML.Entity <T L0.Entity
+XML.hasAttribute <R L0.HasProperty
+XML.hasID <R XML.hasAttribute : L0.FunctionalRelation
+ --> L0.String
+XML.ComplexType <T XML.Entity
+XML.hasComplexType <R L0.IsComposedOf
+XML.AttributeGroup <T XML.Entity
+XML.Element <T XML.Entity
+XML.hasElement <R L0.IsComposedOf
+XML.ElementList <T L0.List
+XML.hasElementList <R L0.IsComposedOf
+XML.hasOriginalElementList <R XML.hasElementList
+XML.hasReference <R L0.IsRelatedTo
+ L0.InverseOf XML.referredBy <R L0.IsWeaklyRelatedTo
+XML.hasExternalReference <R L0.IsRelatedTo
+ L0.InverseOf XML.externalReferenceOf <R L0.IsRelatedTo
+
+
+XML.DateTime <T L0.Literal
+ @L0.assert L0.HasValueType "(Integer,Byte,Byte,Byte,Byte,Byte,Integer)"
+ @L0.assert L0.HasDataType ${ year : Integer, month : Byte, date : Byte, hours : Byte, minutes : Byte, seconds : Byte, offset : Integer }
+
+XML.Date <T L0.Literal
+ @L0.assert L0.HasValueType "(Integer,Byte,Byte,Integer)"
+ @L0.assert L0.HasDataType ${ year : Integer, month : Byte, date : Byte, offset : Integer }
+
+XML.Time <T L0.Literal
+ @L0.assert L0.HasValueType "(Byte,Byte,Byte,Integer,)"
+ @L0.assert L0.HasDataType ${ hours : Byte, minutes : Byte, seconds : Byte, offset : Integer }
+
public final Resource hasOriginalElementList;
public final Resource hasOriginalElementList_Inverse;
public final Resource hasReference;
+ public final Resource referredBy;
public static class URIs {
public static final String AttributeGroup = "http://www.simantics.org/XML-1.0/AttributeGroup";
public static final String hasOriginalElementList = "http://www.simantics.org/XML-1.0/hasOriginalElementList";
public static final String hasOriginalElementList_Inverse = "http://www.simantics.org/XML-1.0/hasOriginalElementList/Inverse";
public static final String hasReference = "http://www.simantics.org/XML-1.0/hasReference";
+ public static final String referredBy = "http://www.simantics.org/XML-1.0/referredBy";
}
public static Resource getResourceOrNull(ReadGraph graph, String uri) {
hasOriginalElementList = getResourceOrNull(graph, URIs.hasOriginalElementList);
hasOriginalElementList_Inverse = getResourceOrNull(graph, URIs.hasOriginalElementList_Inverse);
hasReference = getResourceOrNull(graph, URIs.hasReference);
+ referredBy = getResourceOrNull(graph, URIs.referredBy);
}
public static XMLResource getInstance(ReadGraph graph) {