소스 검색

Merge branch 'actions'

Arkadiusz Ryś 2 년 전
부모
커밋
1caa46839c

+ 12 - 0
README.md

@@ -133,6 +133,18 @@ SPARQL queries such as this one which selects all the available classes can be u
     }
     LIMIT 25
 
+## Setting up the project
+
+You need a few things to get the project working.
+I am lazy so this is what I did:
+
+    curl -s "https://get.sdkman.io" | bash 
+    sdk install gradle 8.0.1
+    cd "examples/omlSystemDesignOntology2Layers" && gradle clean && gradle build && gradle publishToMavenLocal
+    cd "examples/Drivetrain" && gradle clean && gradle build && gradle publishToMavenLocal
+
+Your mileage may vary.
+
 [oml]: http://www.opencaesar.io/oml/
 [drawio]: https://app.diagrams.net/
 [sprotty]: https://projects.eclipse.org/projects/ecd.sprotty

+ 3 - 5
examples/oml/SystemDesignOntology2Layers/src/oml/ua.be/sdo2l/vocabulary/base.oml

@@ -87,11 +87,11 @@ vocabulary <http://ua.be/sdo2l/vocabulary/base#> as base {
 		asymmetric
 		irreflexive
 	]
-	
+
 	// Version
-	
+
 	aspect Versionable
-	
+
 	@rdfs:comment "The has canonical name property"
 	scalar property hasVersion [
 		domain Versionable
@@ -106,6 +106,4 @@ vocabulary <http://ua.be/sdo2l/vocabulary/base#> as base {
 		asymmetric
 		irreflexive
 	]
-
-
 }

+ 5 - 3
examples/oml/SystemDesignOntology2Layers/src/oml/ua.be/sdo2l/vocabulary/bundle.oml

@@ -1,11 +1,13 @@
 vocabulary bundle <http://ua.be/sdo2l/vocabulary/bundle#> as ^bundle {
 	includes <http://ua.be/sdo2l/vocabulary/base#>
 	includes <http://ua.be/sdo2l/vocabulary/ftg#>
-	includes <http://ua.be/sdo2l/vocabulary/base/component#>
+    includes <http://ua.be/sdo2l/vocabulary/workflow#>
 	includes <http://ua.be/sdo2l/vocabulary/processtraces#>
+	includes <http://ua.be/sdo2l/vocabulary/federation#>
+
+	includes <http://ua.be/sdo2l/vocabulary/base/component#>
 	includes <http://ua.be/sdo2l/vocabulary/base/requirement#>
 	includes <http://ua.be/sdo2l/vocabulary/base/system#>
-	includes <http://ua.be/sdo2l/vocabulary/workflow#>
 	includes <http://ua.be/sdo2l/vocabulary/base/shaclproperty#>
 	includes <http://ua.be/sdo2l/vocabulary/base/violation#>
 	includes <http://ua.be/sdo2l/vocabulary/base/code#>
@@ -15,4 +17,4 @@ vocabulary bundle <http://ua.be/sdo2l/vocabulary/bundle#> as ^bundle {
 	includes <http://ua.be/sdo2l/vocabulary/base/script#>
 	includes <http://ua.be/sdo2l/vocabulary/base/tabular#>
 	includes <http://ua.be/sdo2l/vocabulary/base/text#>
-}
+}

+ 25 - 0
examples/oml/SystemDesignOntology2Layers/src/oml/ua.be/sdo2l/vocabulary/federation.oml

@@ -0,0 +1,25 @@
+vocabulary <http://ua.be/sdo2l/vocabulary/federation#> as federation {
+	extends <http://www.w3.org/2000/01/rdf-schema#> as rdfs
+	extends <http://www.w3.org/2001/XMLSchema#> as xsd
+
+    // Virtual data access (service and storage)
+    @rdfs:comment "A Callable specifies one possible call (or operation) that can be made. For example 'translate' for a Point class."
+    aspect Callable [key hasEndPoint]
+	scalar property hasEndPoint [
+		domain Callable
+		range xsd:string
+	]
+    scalar property hasSideEffect [
+		domain Callable
+		range xsd:boolean
+	]
+
+    @rdfs:comment "An Actionable specifies an element which has one or more Callables (aka a service)."
+    aspect Actionable
+    relation entity Callables [
+		from Actionable
+		to Callable
+		forward hasCallable
+		reverse isCallableFrom
+	]
+}