-
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 opcua placeholder management in arrays
In OPCUA Object-arrays are manage by so called placeholders. For instance, placeholder Pump-<No> means that all BroseNames like Pump-1, Pump-02, ..., etc are part of the same array. Another way to express placeholders is to embrace the whole expression by <>, e.g. <pump>. This maps all names references from the same Object which have the same types to the same array. Signed-off-by: marcel <[email protected]>
- Loading branch information
1 parent
b22db16
commit cf974f6
Showing
11 changed files
with
3,107 additions
and
1,219 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
30 changes: 30 additions & 0 deletions
30
semantic-model/opcua/tests/extractType/test_object_example.NodeSet2.instances
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,30 @@ | ||
[ | ||
{ | ||
"type": "http://my.test/BSubType", | ||
"id": "urn:test:AlphaInstance:sub:i2012", | ||
"@context": [ | ||
"http://localhost:8099/context.jsonld" | ||
], | ||
"uaentity:hasMyVariable": { | ||
"type": "Property", | ||
"value": false | ||
} | ||
}, | ||
{ | ||
"type": "http://my.test/AlphaType", | ||
"id": "urn:test:AlphaInstance", | ||
"@context": [ | ||
"http://localhost:8099/context.jsonld" | ||
], | ||
"uaentity:hasC": { | ||
"type": "Property", | ||
"value": 0.0 | ||
}, | ||
"uaentity:hasB": [ | ||
{ | ||
"type": "Relationship", | ||
"object": "urn:test:AlphaInstance:sub:i2012" | ||
} | ||
] | ||
} | ||
] |
41 changes: 41 additions & 0 deletions
41
semantic-model/opcua/tests/extractType/test_object_example.NodeSet2.shacl
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,41 @@ | ||
@prefix base: <https://industryfusion.github.io/contexts/ontology/v0/base/> . | ||
@prefix ngsi-ld: <https://uri.etsi.org/ngsi-ld/> . | ||
@prefix sh: <http://www.w3.org/ns/shacl#> . | ||
@prefix shacl: <http://my.test/shacl/> . | ||
@prefix test: <http://my.test/> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
|
||
shacl:AlphaTypeShape a sh:NodeShape ; | ||
sh:property [ a base:SubComponentRelationship ; | ||
sh:maxCount 1 ; | ||
sh:minCount 0 ; | ||
sh:nodeKind sh:BlankNode ; | ||
sh:path <http://my.test/entity/hasB> ; | ||
sh:property [ sh:class test:BType ; | ||
sh:maxCount 1 ; | ||
sh:minCount 1 ; | ||
sh:nodeKind sh:IRI ; | ||
sh:path ngsi-ld:hasObject ] ], | ||
[ sh:maxCount 1 ; | ||
sh:minCount 0 ; | ||
sh:nodeKind sh:BlankNode ; | ||
sh:path <http://my.test/entity/hasC> ; | ||
sh:property [ sh:datatype xsd:double ; | ||
sh:maxCount 1 ; | ||
sh:minCount 1 ; | ||
sh:nodeKind sh:Literal ; | ||
sh:path ngsi-ld:hasValue ] ] ; | ||
sh:targetClass test:AlphaType . | ||
|
||
shacl:BTypeShape a sh:NodeShape ; | ||
sh:property [ sh:maxCount 1 ; | ||
sh:minCount 0 ; | ||
sh:nodeKind sh:BlankNode ; | ||
sh:path <http://my.test/entity/hasMyVariable> ; | ||
sh:property [ sh:datatype xsd:boolean ; | ||
sh:maxCount 1 ; | ||
sh:minCount 1 ; | ||
sh:nodeKind sh:Literal ; | ||
sh:path ngsi-ld:hasValue ] ] ; | ||
sh:targetClass test:BType . | ||
|
Oops, something went wrong.