Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated shacl for sensor #417

Merged
merged 1 commit into from
Aug 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions semantic-model/kms/SchweissenUndSchneiden/model-example.jsonld
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
{
"id": "urn:ngsi-ld:assetv5:2:44",
"type": "http://www.industry-fusion.org/schema#sensor",
"http://www.industry-fusion.org/fields#base-objects-v0.1-operation-conditions-runtime-ambient-operating-temperature": {
"http://www.industry-fusion.org/fields#sensor-v0.1-sensor-runtime-ambient-operating-temperature": {
"type": "Property",
"value": "14.137"
},
"http://www.industry-fusion.org/fields#base-objects-v0.1-operation-conditions-runtime-dustiness": {
"http://www.industry-fusion.org/fields#sensor-v0.1-sensor-runtime-relative-humidity": {
"type": "Property",
"value": "0.0"
},
"http://www.industry-fusion.org/fields#base-objects-v0.1-operation-conditions-runtime-machine-state": {
"http://www.industry-fusion.org/fields#sensor-v0.1-sensor-runtime-machine-state": {
"type": "Property",
"value": "2"
},
"http://www.industry-fusion.org/fields#base-objects-v0.1-operation-conditions-runtime-relative-humidity": {
"http://www.industry-fusion.org/fields#sensor-v0.1-sensor-runtime-ambient-noise": {
"type": "Property",
"value": "46.043"
},
"http://www.industry-fusion.org/fields#sensor-v0.1-sensor-runtime-dustiness": {
"type": "Property",
"value": "0.03"
},
"http://www.industry-fusion.org/schema#base-objects-v0.1-machine-identification-alias": {
"type": "Property",
"value": {
Expand Down
35 changes: 31 additions & 4 deletions semantic-model/kms/SchweissenUndSchneiden/shacl.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@
rdf:type owl:Ontology ;
owl:imports <http://www.industry-fusion.org/schema> ;
.
:ambient-operator-temperature

:ambient-operating-temperature
rdf:type sh:NodeShape ;
sh:property [
rdf:type sh:PropertyShape ;
sh:path <http://www.industry-fusion.org/fields#base-objects-v0.1-operation-conditions-runtime-ambient-operating-temperature> ;
sh:path <http://www.industry-fusion.org/fields#sensor-v0.1-sensor-runtime-ambient-operating-temperature> ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:name "base-objects-v0.1-operation-conditions-runtime-ambient-operating-temperature" ;
sh:name "sensor-v0.1-sensor-runtime-ambient-operating-temperature" ;
sh:nodeKind sh:BlankNode ;
sh:order "1" ;
sh:property [
Expand All @@ -35,6 +36,32 @@
] ;
sh:targetClass schema:sensor ;
.
<http://www.industry-fusion.org/fields#base-objects-v0.1-operation-conditions-runtime-ambient-operating-temperature>

:ambient-noise
rdf:type sh:NodeShape ;
sh:property [
rdf:type sh:PropertyShape ;
sh:path <http://www.industry-fusion.org/fields#sensor-v0.1-sensor-runtime-ambient-noise> ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:name "sensor-v0.1-sensor-runtime-ambient-noise" ;
sh:nodeKind sh:BlankNode ;
sh:order "1" ;
sh:property [
sh:path <https://uri.etsi.org/ngsi-ld/hasValue> ;
sh:maxCount 1 ;
sh:maxInclusive "44" ;
sh:minCount 1 ;
sh:nodeKind sh:Literal ;
] ;
] ;
sh:targetClass schema:sensor ;
.

<http://www.industry-fusion.org/fields#sensor-v0.1-sensor-runtime-ambient-operating-temperature>
rdf:type rdf:Property ;
.

<http://www.industry-fusion.org/fields#sensor-v0.1-sensor-runtime-ambient-noise>
rdf:type rdf:Property ;
.
Loading