Jelajahi Sumber

Fixing the relation relatesTo, which should be asymmetric instead of
symmetric. Also adding an initial attempt of a sparql query.

Lucas Albertins 2 tahun lalu
induk
melakukan
0c059098ab

+ 6 - 6
examples/oml/SystemDesignOntology2Layers/src/oml/ua.com.be/sdo2l/description/traces.oml

@@ -18,12 +18,12 @@ description <http://ua.com.be/sdo2l/description/traces#> as traces {
 		from requirements:reqlist-car-system
 		to wf:reqList-usage
 	]
-//	
-//	ri carStructuralModel-relatesTo-car-structural-model-usage : traces:RelatesTo [
-//		from components:car-structural-model
-//		to wf:car-structural-model-usage
-//	]
-//	
+	
+	ri carStructuralModel-relatesTo-car-structural-model-usage : traces:RelatesTo [
+		from components:car-structural-model
+		to wf:car-structural-model-usage
+	]
+	
 	
 	ci staev-req-elicitation : traces:StartingEvent [
 		traces:isFollowedBy endev-req-elicitation

+ 2 - 3
examples/oml/SystemDesignOntology2Layers/src/oml/ua.com.be/sdo2l/vocabulary/processtraces.oml

@@ -90,10 +90,9 @@ vocabulary <http://ua.com.be/sdo2l/vocabulary/processtraces#> as traces {
 		from Artifact
 		to base:WorkflowArtifact
 		forward relatesTo
-		//reverse relatedTo
-		symmetric 
+		reverse isRelatedTo
+		asymmetric 
 		irreflexive
-		//functional
 	]
 	
 	relation entity UpdatesVersion [

+ 7 - 0
examples/oml/SystemDesignOntology2Layers/src/sparql/query.sparql

@@ -0,0 +1,7 @@
+PREFIX base:   <http://ua.com.be/sdo2l/vocabulary/base#>
+
+SELECT ?x ?y
+
+WHERE {
+	?x base:contains ?y
+}