|
|
@@ -2,7 +2,9 @@ vocabulary <http://ua.be/sdo2l/vocabulary/formalisms/object_diagram#> as object_
|
|
|
|
|
|
extends <http://www.w3.org/2000/01/rdf-schema#> as rdfs
|
|
|
|
|
|
- aspect Object []
|
|
|
+ aspect element []
|
|
|
+
|
|
|
+ concept Object :> element []
|
|
|
|
|
|
// Compromise:
|
|
|
// - use attributes only for scalar properties
|
|
|
@@ -11,23 +13,23 @@ vocabulary <http://ua.be/sdo2l/vocabulary/formalisms/object_diagram#> as object_
|
|
|
// Supertype of all scalar properties that we consider to be a 'field' of an object
|
|
|
// An object can have any number of fields, hence this property is not functional
|
|
|
scalar property hasField [
|
|
|
- domain Object
|
|
|
+ domain element
|
|
|
range rdfs:Literal // e.g., string, float, boolean, ...
|
|
|
]
|
|
|
|
|
|
// A link is also an object, meaning:
|
|
|
// - it can have attributes
|
|
|
// - it can be the source/target of another link
|
|
|
- relation entity Link :> Object [
|
|
|
- from Object
|
|
|
- to Object
|
|
|
+ relation entity Link :> element [
|
|
|
+ from element
|
|
|
+ to element
|
|
|
]
|
|
|
|
|
|
aspect Model []
|
|
|
|
|
|
relation entity HasObject [
|
|
|
from Model
|
|
|
- to Object
|
|
|
+ to element
|
|
|
forward hasObject
|
|
|
reverse inModel
|
|
|
inverse functional // every Object can be part of at most one model
|