Jelajahi Sumber

Finished first working version of drawio vocabulary and added generated description for test diagram

Joeri Exelmans 2 tahun lalu
induk
melakukan
9467566d8c

+ 1 - 0
examples/oml/CDF/src/oml/flandersmake.be/cdf/description/bundle.oml

@@ -1,4 +1,5 @@
 description bundle <http://flandersmake.be/cdf/description/bundle#> as ^bundle {
+	includes <http://flandersmake.be/cdf/description/my_drawio#>
 	includes <http://flandersmake.be/cdf/description/my_ftg#>
 	includes <http://flandersmake.be/cdf/description/my_statechart#>
 	includes <http://flandersmake.be/cdf/description/my_pm#>

+ 3 - 0
examples/oml/CDF/src/oml/flandersmake.be/cdf/description/my_drawio.oml

@@ -101,6 +101,7 @@ description <http://flandersmake.be/cdf/description/my_drawio#> as my_drawio {
   ci p0_c0 : drawio:Cell [
     
     drawio:hasDrawioId "0"
+    drawio:isRootOf p0
   ]
 
   
@@ -533,6 +534,7 @@ description <http://flandersmake.be/cdf/description/my_drawio#> as my_drawio {
   ci p1_c0 : drawio:Cell [
     
     drawio:hasDrawioId "_IFlCEMzqyghwUpFznzk-0"
+    drawio:isRootOf p1
   ]
 
   
@@ -669,6 +671,7 @@ description <http://flandersmake.be/cdf/description/my_drawio#> as my_drawio {
   ci p2_c0 : drawio:Cell [
     
     drawio:hasDrawioId "L65KC59BLx3UTkoxjAN6-0"
+    drawio:isRootOf p2
   ]
 
   

+ 1 - 0
examples/oml/CDF/src/oml/flandersmake.be/cdf/vocabulary/bundle.oml

@@ -1,6 +1,7 @@
 vocabulary bundle <http://flandersmake.be/cdf/vocabulary/bundle#> as ^bundle {
 	includes <http://flandersmake.be/cdf/vocabulary/acyclic#>
 	includes <http://flandersmake.be/cdf/vocabulary/class_diagram#>	
+	includes <http://flandersmake.be/cdf/vocabulary/drawio#>
 	includes <http://flandersmake.be/cdf/vocabulary/ftg#>
 	includes <http://flandersmake.be/cdf/vocabulary/immutable#>
 	includes <http://flandersmake.be/cdf/vocabulary/object_diagram#>

+ 2 - 4
examples/oml/CDF/src/oml/flandersmake.be/cdf/vocabulary/drawio.oml

@@ -22,10 +22,8 @@ vocabulary <http://flandersmake.be/cdf/vocabulary/drawio#> as drawio {
 	// All cells are vertices or edges, except for:
 	//   (1) The root cell of a page
 	//   (2) The cells that represent layers (direct children of the root cell)
-	aspect AbstractCell :> elementWithDrawioId [
-		restricts scalar property hasValue to exactly 1
-	]
-	
+	aspect AbstractCell :> elementWithDrawioId []
+
 	scalar property hasValue [
 		domain Cell
 		range xsd:string