]> gerrit.simantics Code Review - simantics/interop.git/blobdiff - org.simantics.xml.sax.ontology/src/org/simantics/xml/sax/ontology/XMLResource.java
Inverse relation for hasReference
[simantics/interop.git] / org.simantics.xml.sax.ontology / src / org / simantics / xml / sax / ontology / XMLResource.java
index 1bb9dbb8270da8695fc82852cabcb67b4ea6a8e5..f32417ce29c2f88648b67fcff8b7bd9012ccf678 100644 (file)
@@ -33,6 +33,7 @@ public class XMLResource {
     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";
@@ -58,6 +59,7 @@ public class XMLResource {
         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) {
@@ -93,6 +95,7 @@ public class XMLResource {
         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) {