forked from IndustryFusion/DigitalTwin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add subComponentRelationship type to entity file
In the datamodel the entity.ttl file describes the "static" knowledge about attributes. For instance the domain and range of attributes. In this PR, the Relationships will be typed as subcomponents and peer relationships. Related Epics: IndustryFusion#514 Related User-stories: IndustryFusion#555 Signed-off-by: marcel <[email protected]>
- Loading branch information
Showing
10 changed files
with
229 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
semantic-model/datamodel/tools/tests/schema2owl/schema3_c0.json_result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
125 changes: 125 additions & 0 deletions
125
semantic-model/datamodel/tools/tests/schema2owl/schema4_c0.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
[ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://industry-fusion.org/eclass%230173-1%2301-ACK991%23016", | ||
"title": "Filter", | ||
"description": "Schweissrauchabsauger", | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"const": "eclass:0173-1#01-ACK991#016" | ||
}, | ||
"id": { | ||
"type": "string", | ||
"pattern": "^urn:[a-zA-Z0-9][a-zA-Z0-9-]{1,31}:([a-zA-Z0-9()+,.:=@;$_!*'-]|%[0-9a-fA-F]{2})*$" | ||
} | ||
}, | ||
"required": ["type", "id"], | ||
"allOf": [ | ||
{ | ||
"$ref": "https://industry-fusion.org/base-objects/v0.1/machine/properties" | ||
}, | ||
{ | ||
"$ref": "https://industry-fusion.org/base-objects/v0.1/filter/relationships" | ||
} | ||
] | ||
}, | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://industry-fusion.org/base-objects/v0.1/filter/relationships", | ||
"title": "IFF template for filter relationship", | ||
"description": "Cutter template for IFF", | ||
"type": "object", | ||
"properties": { | ||
"hasCartridge": { | ||
"relationship": "eclass:0173-1#01-AKE795#017", | ||
"relationship_type": "subcomponent", | ||
"$ref": "https://industry-fusion.org/base-objects/v0.1/link" | ||
} | ||
} | ||
}, | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://industry-fusion.org/base-objects/v0.1/machine/properties", | ||
"title": "Cutter properties", | ||
"description": "Properties for class cutter", | ||
"type": "object", | ||
"properties": { | ||
"machine_state": { | ||
"type": "string", | ||
"title": "Machine Status", | ||
"description": "Current status of the machine (Online_Idle, Run, Online_Error, Online_Maintenance, Setup, Testing)", | ||
"enum": [ | ||
"Online_Idle", | ||
"Run", | ||
"Online_Error", | ||
"Online_Maintenance", | ||
"Setup", | ||
"Testing" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"machine_state" | ||
] | ||
}, | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://industry-fusion.org/eclass%230173-1%2301-AKE795%23017", | ||
"title": "Filterpatrone", | ||
"description": "Filterpatrone", | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"const": "eclass:0173-1#01-AKE795#017" | ||
}, | ||
"id": { | ||
"type": "string", | ||
"pattern": "^urn:[a-zA-Z0-9][a-zA-Z0-9-]{1,31}:([a-zA-Z0-9()+,.:=@;$_!*'-]|%[0-9a-fA-F]{2})*$" | ||
} | ||
}, | ||
"required": ["type", "id"], | ||
"allOf": [ | ||
{ | ||
"$ref": "https://industry-fusion.org/base-objects/v0.1/cartridge/properties" | ||
} | ||
] | ||
}, | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://industry-fusion.org/base-objects/v0.1/cartridge/properties", | ||
"title": "Cartridge properties", | ||
"description": "Properties for class cutter", | ||
"type": "object", | ||
"properties": { | ||
"waste_class": { | ||
"type": "string", | ||
"title": "Waste Class", | ||
"description": "Current wasteclass of the cartridge (WC0, WC1, WC2, WC3)", | ||
"enum": [ | ||
"WC0", | ||
"WC1", | ||
"WC2", | ||
"WC3" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"waste_class" | ||
] | ||
}, | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://industry-fusion.org/base-objects/v0.1/link", | ||
"title": "IFF template for cutter relationship", | ||
"description": "Cutter template for IFF", | ||
"type": "object", | ||
"properties": { | ||
"object": { | ||
"type": "string", | ||
"pattern": "^urn:[a-zA-Z0-9][a-zA-Z0-9-]{0,31}:[a-zA-Z0-9()+,\\-.:=@;$_!*']*[a-zA-Z0-9()+,\\-.:=@;$_!*']$" | ||
} | ||
}, | ||
"required": ["object"] | ||
} | ||
] |
1 change: 1 addition & 0 deletions
1
semantic-model/datamodel/tools/tests/schema2owl/schema4_c0.json_id
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
https://industry-fusion.org/eclass#0173-1#01-ACK991#016 |
17 changes: 17 additions & 0 deletions
17
semantic-model/datamodel/tools/tests/schema2owl/schema4_c0.json_result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@prefix owl: <http://www.w3.org/2002/07/owl#>. | ||
@prefix iffb: <https://industry-fusion.org/base/v0.1/>. | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>. | ||
@prefix base: <https://industryfusion.github.io/contexts/ontology/v0/base/>. | ||
@prefix ngsi-ld: <https://uri.etsi.org/ngsi-ld/>. | ||
|
||
iffb:hasCartridge | ||
a owl:Property, base:SubComponentRelationship; | ||
rdfs:domain <https://industry-fusion.org/eclass%230173-1%2301-ACK991%23016>; | ||
rdfs:range ngsi-ld:Relationship. | ||
iffb:machine_state | ||
a owl:Property; | ||
rdfs:domain <https://industry-fusion.org/eclass%230173-1%2301-ACK991%23016>; | ||
rdfs:range ngsi-ld:Property. | ||
<https://industry-fusion.org/eclass#0173-1#01-ACK991#016> a owl:Class. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters