瀏覽代碼

Add additional NAC to `getOutgoingLink`

Joeri Exelmans 2 年之前
父節點
當前提交
87563aa78b
共有 1 個文件被更改,包括 5 次插入0 次删除
  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.