-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add examples for subcomponent description
Signed-off-by: marcel <wagmarcel@web.de>
- Loading branch information
1 parent
708cf62
commit 1e7df0c
Showing
2 changed files
with
236 additions
and
0 deletions.
There are no files selected for viewing
74 changes: 74 additions & 0 deletions
74
semantic-model/datamodel/examples/filter_and_cartridge_subcomponent_data.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,74 @@ | ||
[ | ||
{ | ||
"@context": "https://industryfusion.github.io/contexts/tutorial/v0.1/context.jsonld", | ||
"id": "urn:iff:cartridge1", | ||
"type": "eclass:0173-1#01-AKE795#017", | ||
"hasFilter": { | ||
"type": "Relationship", | ||
"object": "urn:iff:filter1" | ||
}, | ||
"waste_class": { | ||
"type": "Property", | ||
"value": "WC0" | ||
}, | ||
"hasIdentification": { | ||
"type": "Relationship", | ||
"object": "urn:iff:identification1" | ||
} | ||
}, | ||
{ | ||
"@context": "https://industryfusion.github.io/contexts/tutorial/v0.1/context.jsonld", | ||
"id": "urn:iff:filter1", | ||
"type": "eclass:0173-1#01-ACK991#016", | ||
"machine_state": { | ||
"type": "Property", | ||
"value": "Testing" | ||
}, | ||
"hasCartridge": { | ||
"type": "Relationship", | ||
"object": "urn:iff:cartridge1" | ||
}, | ||
"hasIdentification": { | ||
"type": "Relationship", | ||
"object": "urn:iff:identification2" | ||
} | ||
}, | ||
{ | ||
"@context": "https://industryfusion.github.io/contexts/tutorial/v0.1/context.jsonld", | ||
"id": "urn:iff:identification1", | ||
"type": "eclass:0173-1#01-ACK991#016", | ||
"eclass:0173-1#01-ADN199#011": { | ||
"type": "Property", | ||
"value": { | ||
"@value": {"test": "123"}, | ||
"@type": "@json" | ||
} | ||
}, | ||
"eclass:0173-1#01-ADN198#012": { | ||
"type": "Property", | ||
"value": { | ||
"@value": {"test2": "1234"}, | ||
"@type": "@json" | ||
} | ||
} | ||
}, | ||
{ | ||
"@context": "https://industryfusion.github.io/contexts/tutorial/v0.1/context.jsonld", | ||
"id": "urn:iff:identification2", | ||
"type": "eclass:0173-1#01-ACK991#016", | ||
"eclass:0173-1#01-ADN199#011": { | ||
"type": "Property", | ||
"value": { | ||
"@value": {"test3": "x123"}, | ||
"@type": "@json" | ||
} | ||
}, | ||
"eclass:0173-1#01-ADN198#012": { | ||
"type": "Property", | ||
"value": { | ||
"@value": {"test3": "y1234"}, | ||
"@type": "@json" | ||
} | ||
} | ||
} | ||
] |
162 changes: 162 additions & 0 deletions
162
semantic-model/datamodel/examples/filter_and_cartridge_subcomponent_schema.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,162 @@ | ||
[ | ||
{ | ||
"$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": "Filter 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" | ||
}, | ||
"hasIdentification": { | ||
"relationship": "eclass:0173-1#01-ADN228#012", | ||
"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/attributes" | ||
} | ||
] | ||
}, | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://industry-fusion.org/base-objects/v0.1/cartridge/attributes", | ||
"title": "Cartridge attributes", | ||
"description": "Attributes 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" | ||
] | ||
}, | ||
"hasIdentification": { | ||
"relationship": "eclass:0173-1#01-ADN228#012", | ||
"relationship_type": "subcomponent", | ||
"$ref": "https://industry-fusion.org/base-objects/v0.1/link" | ||
} | ||
}, | ||
"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 relationships", | ||
"description": "Relationship 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"] | ||
}, | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://industry-fusion.org/eclass%230173-1%2301-ADN228%23012", | ||
"title": "Filter", | ||
"description": "Identifikation", | ||
"type": "object", | ||
"properties": { | ||
"type": { | ||
"const": "eclass:0173-1#01-ADN228#012" | ||
}, | ||
"id": { | ||
"type": "string", | ||
"pattern": "^urn:[a-zA-Z0-9][a-zA-Z0-9-]{1,31}:([a-zA-Z0-9()+,.:=@;$_!*'-]|%[0-9a-fA-F]{2})*$" | ||
}, | ||
"eclass:0173-1#01-ADN199#011": { | ||
"type": "object", | ||
"description": "eclass JSON object for Supplier", | ||
"title": "Lieferant" | ||
}, | ||
"eclass:0173-1#01-ADN198#012": { | ||
"type": "object", | ||
"description": "eclass JSON object for Manufacturer", | ||
"title": "Hersteller" | ||
} | ||
}, | ||
"required": ["type", "id"] | ||
} | ||
] |