Explorar o código

Add additional NAC to `getOutgoingLink`

Joeri Exelmans %!s(int64=2) %!d(string=hai) anos
pai
achega
87563aa78b
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      src/main/webapp/myPlugins/dtdesign.js

+ 5 - 0
src/main/webapp/myPlugins/dtdesign.js

@@ -21,6 +21,11 @@ WHERE {
     ?element a ?more_concrete_type .
     FILTER(?more_concrete_type != ?type)
   }
+  NOT EXISTS {
+    ?more_concrete_link_type rdfs:subClassOf <${link_type}> .
+    <${iri}> a ?more_concrete_link_type .
+    FILTER(?more_concrete_link_type != <${link_type}>)
+  }
 }`;
 
 // Query that gets the IRI and most-concrete-type of a given drawio cell.