Method for transforming a data model for automation purposes into a target ontology

By converting the OPC UA data model into target ontology and using formal semantic representation tools, the complexity of verification, query and analysis of the OPC UA data model is solved, automatic verification and query of the OPC UA data model is realized, and skill matching is supported. tasks, improving the consistency and interpretability of data models.

CN112997170BActive Publication Date: 2024-10-01SIEMENS AG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201880099661.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-11-20
Publication Date
2024-10-01
Estimated Expiration
2038-11-20

AI Technical Summary

Technical Problem

The OPC UA data model lacks formal semantic representation, resulting in high complexity of verification, query, and analysis. The data model cannot be automatically verified, and there are inconsistent standard statements, which hinders the realization of tasks such as skill matching and data mining.

Method used

By converting a semantically rich graph-based data model into a target ontology, using formal semantic representation tools for verification, query and analysis, leveraging REST rule sets to express node identities, constructing the target ontology and outputting it to a triple store, using the SPARQL query language Query and verify with OWL.

Benefits of technology

It realizes automatic verification and query of OPC UA data model, simplifies the analysis process, supports skills matching, data mining and other tasks, and improves the consistency and interpretability of the data model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112997170B_ABST
    Figure CN112997170B_ABST
Patent Text Reader

Abstract

Embodiments for providing data as described herein generally involve transforming an OPC UA data model into an ontology. Such an ontology easily provides the desired capabilities for validating, querying, and analyzing OPC UA data models using sophisticated standard tools adapted to the ontology. In one embodiment, a method for transforming a semantically rich and graph-based data model, in particular an OPC UA data model, into a target ontology is proposed. By a first step, identifications of nodes of the data model are retrieved. Subsequently or simultaneously, semantic descriptions of one or more references interconnecting one or more nodes are retrieved. These semantic descriptions are expressed by at least one or more predicates and one or more concepts (e.g., classes) in the target ontology to be generated. Finally, the target ontology is constructed by a semantic ontology language and the target ontology is output to a triple store.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present embodiment relates to a method for transforming a data model for automation purposes into an ontology. More specifically, the present embodiment relates to a method for transforming a semantically rich and graph-based data model dedicated to automation purposes into a target ontology. Background Art

[0002] Industrial automation system components in the past have traditionally been interconnected over dedicated networks using standard industrial protocols for access and data exchange. The development of current and future automation systems has placed considerable emphasis on exchanging semantically rich information, aiming to enable flexible manufacturing scenarios.

[0003] In order to overcome the low-level signal communication that still exists in industrial manufacturing systems, a protocol called OPC UA has been proposed to enhance field-level communication to a semantic level. OPC UA (Open Platform Communications Unified Architecture) is an industrial standard protocol of the OPC Foundation for manufacturer-independent communication for the purpose of exchanging industrial data, especially in process automation.

[0004] The data model of OPC UA is characterized by a semantically rich and graph-based data structure that is dedicated to automation purposes. However, OPC UA instead defines concepts for expressing semantic descriptions within specification documents, which means a lack of formal semantic representation. Therefore, the use of OPC UA suffers from significant drawbacks due to its lack of formal semantic representation:

[0005] - As a first drawback, the OPC UA data model cannot be fully automatically validated with the aid of a computer system, since there is no set of rules for the semantic description that would allow automatic processing by validation tools. Another problem that cannot be solved without a formal definition is the verification of the core OPC UA standard itself, which may also contain inconsistent statements.

[0006] - As a second drawback, queries within the OPC UA data model are intricate. Although OPC UA defines a query language for accessing the data model, to date there has not been any framework for implementing query requests, especially due to the high complexity borne by the scattered semantic descriptions within the OPC UA data model.

[0007] - As a third drawback, the lack of formal semantics in OPC UA hinders analytical processes for tasks such as skill-matching, data mining, monitoring, etc.

[0008] Therefore, there is a need in the art to facilitate validation, analysis or querying within semantically rich graph-based data models, particularly OPC UA, while addressing the complexity of the semantic descriptions dispersed within such data models. Summary of the invention

[0009] According to the present invention, a preliminary consideration in solving the existing problem of the considered data model is that the decentralized nature of the semantics within the model must be modified in favor of a formal semantic representation.

[0010] Embodiments herein generally involve transforming a data model into an ontology, which is understood as a formal semantic representation of terms and concepts and the relationships between these concepts. An ontology readily provides the desired capabilities for validating, querying, and analyzing a data model using sophisticated standard tools adapted to the formal representation of the ontology.

[0011] In one embodiment, a computer-implemented method for transforming a semantically rich and graph-based data model into a target ontology is proposed, wherein at least one layer of the data model is provided by a first memory unit. The data model includes a plurality of nodes described by attributes and interconnected by references. By a first step, identifiers are retrieved from the nodes of the data model. Thus, each identifier is expressed (i.e., replaced or modified) by a URI or unique resource identifier that conforms to a REST (Representational State Transfer) rule set. Subsequently or simultaneously, a semantic description of one or more references interconnecting one or more nodes is retrieved. These semantic descriptions are expressed (i.e., replaced or modified) by at least one predicate and / or at least one class in the target ontology to be generated. Finally, the target ontology is constructed by a semantic ontology language and the target ontology is output to a triple store.

[0012] According to another embodiment, a transformation unit is provided, the transformation unit comprising a processor and a data storage device having a computer executable program code stored thereon. The data storage device may be implemented within the processor or outside the processor.

[0013] According to a further embodiment, a non-transitory computer readable storage medium having computer executable program code stored thereon is provided. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] The objects and further advantages of the present embodiment will become more apparent and easily understood from the following description of the preferred embodiment taken in conjunction with the accompanying drawings, in which a layered architecture framework according to the modular structure of OPC UA is shown. DETAILED DESCRIPTION

[0015] Now turn to the figure, which shows a layered architecture framework according to the modular structure of OPC UA. The OPC UA framework provides a layered structure as follows:

[0016] - At meta-layer 0, basic entities (e.g., node classes, attributes, references, etc.) are defined by the OPC UA meta-layer OML.

[0017] - The most general OPC UA Core Model or OPC UA Base OBM is provided by the OPC Foundation itself. The Core Model OBM includes specifications for basic variable types, server types, engineering units, etc. on Base 1.

[0018] - In the upper Companion Layer 2, at least one so-called OPC UA Companion Specification CS1, CS2 is used to define domain-specific models or schemas that extend the OPC UA model. The lower companion specification CS1 may include topology element type definitions; the upper companion specification CS2 may include flow type definitions or, more specifically, axis types for a CNC machine (Computer Numerical Control).

[0019] - The upper extension layer 3 hosts OEM-specific schema extensions created by OEMs (Original Equipment Manufacturers), including for example: the Device Vendor Information model DVI including device type descriptions, the Machine Vendor Information model MVI including machine type descriptions, and the Machine User Information model MUI including process types or plant element types.

[0020] - Finally, the instance layer 4 on top of the hierarchical model comprises the device / asset information model DIM, ie an instance model for describing the configuration and data items of individual devices based on the schema defined in the layers 0, 1, 2, 3 below.

[0021] - OPC UA Information Modeling perpendicular to layers 0, 1, 2, 3, 4 The OIM symbolizes the consistency in the OPC UA Data Model across all layers 0, 1, 2, 3, 4. The expressiveness of the information model generally increases from lower layers to higher layers.

[0022] In anticipation of the embodiments further described below, the transformation process TRF for transforming the information model or data model within the respective layers 0, 1, 2, 3, 4 into the respective ontology ONT may advantageously be performed in a similar modular manner, as shown in the accompanying drawings.

[0023] Embodiments advantageously support providing one or more layers of a data model to be transformed into corresponding ontology ONTs. The transformation process TRF transforms the OPC UA information model or data model by transforming each module on the corresponding layer into an ontology ONT that imports each other in the same way as the corresponding OPC UA modules. Once the transformation process TRF is executed, the resulting ontology ONT can be used for verification, query and analysis purposes.

[0024] For validation purposes, the OPC UA graph, which is a graph-based data model, is transformed into an RDF-based target ontology, which is then validated using standard ontology tools instead of the graph-based data model. After this validation step, it is possible to use a conventional reasoner to check the consistency of the target ontology without the need for additional efforts to implement the validation algorithm. This approach will also support automatic rule updates through the declarative nature of the semantic ontology language used to build the target ontology. Referring back to the figure, the validation can be performed on the base layer 1 to ensure the consistency of the core specification itself, on the companion layer 2 for validating the newly developed companion specification against the core specification, on the extension layer 3 for validating the vendor-specific extension against the scheme of the lower layer, and finally on the instance layer 4 for validating the instance model against a given pattern. In order to be able to fully cover all OPC UA rules, as well as all rules that may be added by the companion specification, it may be necessary to combine several different reasoning techniques, such as OWL (Web Ontology Language), SHACL (Shape Constraint Language), etc.

[0025] For query purposes, embodiments advantageously support the use of a common query language SPARQL (SPARQL Protocol and RDF Query Language) to provide simple access to the OPC UA data model. To this end, embodiments ensure RDF representation within the target ontology as a result, which captures the OPC UA semantics in a formal way. Queries typically occur on the instance layer in order to find necessary data points for other applications (e.g., monitoring, human-machine interface, maintenance, ...). However, queries can also be used on the extension layer 3 and the companion layer 2 for introspection purposes, and further on the base layer 1 for verification.

[0026] To support analysis, embodiments advantageously support obtaining access to the semantics of the OPC UA companion standard in a formal manner. Formal access enables use cases such as skill matching, onboarding, monitoring, etc. This is particularly useful for the instance layer 4 in combination with the companion layer 2, where the companion layer 2 provides standardized semantics for a given domain, and the instance layer 4 thereby provides concrete values ​​​​labeled by these semantics. Based on the companion layer 2, semantic interoperability can be achieved through a widely accepted standardized vocabulary for a given domain. The formal OWL representation can also be used to interconnect different OPC UA companion specifications to express the fact that two concepts from different domains have the same meaning (for example, temperature), which is currently not standardized in OPC UA itself. The extension layer can also be used for analysis and is particularly useful for easily importing ontologies into OPC UA without the formal standardization process of the OPC Foundation. This import of ontologies can be handled using existing ontologies (such as schema.org or semantic sensor network ontologies).

[0027] In the following, a transformation process TRF for transforming the data models within the respective layers 0, 1, 2, 3, 4 into the respective target ontology ONT is now disclosed in further detail.

[0028] According to a first step of an embodiment, the identities or node IDs of UPC UA nodes are retrieved and each identity is expressed by a URI (Unique Resource Identifier) ​​conforming to the REST (Representational State Transfer) rule set.

[0029] In the OPC UA data model, each entity in the address space is a node. In order to uniquely identify a node, each node has a node ID, which includes three elements, namely, the namespace index (NamespaceIndex), the identifier type, and the identifier.

[0030] A namespace index is an index (usually a numeric value) used by an OPC UA server in online operation instead of a namespace identifier in order to speed up the delivery and processing of data. The namespace identifier identifies the naming authority that defines the identifier for the node ID, such as the OPC Foundation, other standards bodies and alliances, the underlying system, or a local server. The namespace index is stored in a repository along with its corresponding namespace identifier or namespace URI (Uniform Resource Identifier). This repository within OPCUA is also called a namespace array. The identifier type defines the data type of the identifier, such as a numeric value, a string, etc. The identifier ultimately identifies a node in the address space of the OPC UA server.

[0031] Although the OPC UA specification recognizes system-wide and globally unique identifiers (NodeIds), there are cases where more than one node has a common identifier (e.g., DisplayName, Description). Therefore, the retrieval of the identifier can optionally be accompanied by the retrieval of the browse name or »BrowseName« of each OPC UA node in order to unambiguously map different semantics with a common name. However, in general, OPC UA allows multiple nodes to share the same browse name. Although the browse name according to OPC UA cannot be used to unambiguously identify a node in all cases - this is because different nodes may have the same browse name - a namespace for the browse name can be provided so that the browse name is unique in the context of the node (e.g., some properties of the node) in some cases.

[0032] An exemplary identification of a node (based on the NodeId) is constructed as follows:

[0033] NamespaceString / i=1:11111111111

[0034] Where »NamespaceString« is a string expressing a namespace identifier. The string is collected from the namespace array based on the namespace index, where the namespace index has a value of 1 (one) for the nodeId. The namespace string (NamespaceString) needs to end with a slash or » / «. The nodeId is composed as described further below. The namespace index i is set to 1 because it is the index for the local server which must be equal to the namespace string. The exception is a namespace index with a value of zero or »0«, which indicates that the node is part of the OPC UA Base Model OBM. However, omitting the corresponding namespace array is only allowed if the »NamespaceString« is equal to index 1 of the namespace array.

[0035] A further exemplary identification of a node including a qualified name is constructed as follows:

[0036] NamespaceString / QualifiedName.name

[0037] Where »QualifiedName« is a data structure with two parts: namespace index and name. The namespace string is based on the corresponding entry of the namespace array (e.g. http: / / opcfoundation.org / UA / ServerType)

[0038] A further exemplary identification of a node comprising a query is constructed as follows:

[0039] <host> / i=1:11111111111 / QualifiedNameString ns=NamespaceStringArray

[0040] Where the sequence » ns=NamespaceStringArray«Specifies a query against the namespaces in the namespace array. In this case, the namespace strings are based on the query parameters» ns=NamespaceStringArray«, where the first entry in the query parameter represents namespace index 1.

[0041] Such an OPC UA identity of a node as shown above will be expressed by a URI that complies with the REST or Representational State Transfer rule set. Representational State Transfer or REST is a software architectural style that defines a set of constraints for creating web services. One of the constraints of REST is the Uniform Resource Identifier of URIs, for example according to the Internet Engineering Task Force (IETF) recommendation RFC3986 (»Requests for Comments«).

[0042] An exemplary generic example of a URI according to RFC 3986 is constructed as follows:

[0043] https: / / example.com:8042 / over / there name=gear#shaft

[0044] The sequence »https« specifies the scheme, the sequence »example.com:8042« specifies the authority, the sequence » / over / there« specifies the path, and the sequence » name=gear« specifies the query, and the sequence »shaft« specifies the fragment.

[0045] An example of an OPC UA contest specific to a URI according to RFC 3986 is constructed as follows:

[0046] https: / / example.com:8042 / vendorSpecific / V1.04 / 11111 / i=111111111 qKey=qValue

[0047] Among them, the sequence »https« specifies the scheme, the sequence »example.com:8042« specifies the authority, the sequence » / vendorSpecific« specifies the path prefix, and the sequence » / V1.04« specifies the version of the API (Application Programming Interface) or apiVersion, which is usually set by the OPC Foundation. The optional sequence » / 11111« specifies the URI version or uriVersion that is a property value of the OPC UA server. The string including the last three sequences » / vendorSpecific / V1.04 / 11111 / i=111111111« is called a path. Finally, the sequence » qKey=qValue« specifies a query for the query value qValue within the key qKey.

[0048] To identify these sequences, a parser is applied using the following rules:

[0049] 1. Find the query delimiter (the first " ") and split the URI into path and query

[0050] 2. Split the path in path elements (separator " / ")

[0051] 3. Check if the first path element is a node ID (true if "=" exists)

[0052] a. If "=" exists:

[0053] i. Check the node ID type (the first character to the left of "=")

[0054] ii. Decode the server index on the left side of the NodeId type identifier (the first character to the left of "=")

[0055] iii. Split the node ID value (the right side of "=")

[0056] 1. Split the node ID value (left side) and the identifier (right side) in the namespace (separator = ":");

[0057] 2. Decode identifiers based on node ID type

[0058] b. If there is no "=":

[0059] i. Split the browse name (left side) and value (right side) in the namespace (delimiter = ":")

[0060] ii. Decode the value portion of the browse name

[0061] 4. Split the browse name (on the left) and the value (on the right) in the namespace (delimiter = ":")

[0062] a. Decode the value portion of the browse name

[0063] 5. Check if the last browse name is an attribute browse name

[0064] 6. Split query parameters (QueryArg)

[0065] a. Find the next "="; the left side is the key;

[0066] b. Find the next "&"; the left side is the value;

[0067] i. Split array elements (separator "")

[0068] 1. Decode each element.

[0069] Although it is desirable to infer not only machine-readable URIs, but also human-readable URIs (the latter can be used later for convenient addressing), this purpose is based on the assumption that the browse name of a type is unique. More specifically, it will not be allowed to define two types with the same browse name. However, such a constraint is generally not necessary within OPC UA and cannot be guaranteed in every case. At least this uniqueness is considered good modeling practice.

[0070] If this assumption does not hold, then NodeId should be used instead of BrowseName. Furthermore, StructureFieldName and InstanceDeclarationBrowseName should have similar restrictions. However, in this case, BrowseName can be reused several times, but the meaning should always be the same. For example, defining two instance declarations with BrowseName should be avoided:

[0071] http: / / myNamespace.org / sensorValue

[0072] In one case temperature is discussed and in another case pressure is discussed, whereas the difference between these sensor values ​​can only be explained by a human by reading the different descriptive properties declared by the different instances.

[0073] In both cases, it is more appropriate to use a more specific browse name, such as

[0074] http: / / myNamespace.org / temperature

[0075] and

[0076] http: / / myNamespace.org / pressure

[0077] A fallback solution is to use the node id declared by the instance instead of the browse name. In general, the following conditions for reused browse names should be considered:

[0078] - DescriptionName and DisplayName properties are the same. This is the default check of the generator tool anyway.

[0079] - The semantics of different instance declarations are the same. A human will assume that two instance declarations talk about the same thing, such as a temperature value, if the description name or display name attributes are different.

[0080] - Changes in DataType, ModellingRule, NodeClass, TypeDefinition and ReferenceType are allowed as long as the semantics of the browse name still applies. For example, in one case, temperature is exposed as a simple variable, where in another case a complex variable is used. However, if these concepts must change, then using a different browse name should generally be considered.

[0081] In summary, the first step of the embodiment for retrieving the node ID and optionally the browse name, and expressing these by a URI that conforms to the REST rule set simply provides accessibility by a web-client that conforms to the REST architectural style. In addition, the URI is provided in a literally human-readable form. This readability advantageously improves the user experience when applying ontology editors and knowledge management system tools such as SPARQL and Protégé.

[0082] Protégé is a free, open source ontology that features a graphical user interface for defining and modifying ontologies. Protégé includes deductive classifiers for verifying consistency and for inferring new information based on ontology-based analysis.

[0083] According to a second step of the embodiment, a semantic description of references between nodes is retrieved for expressing the semantic description by at least one predicate and / or at least one class of the target ontology.

[0084] Predicates are part of semantic triples, which are atomic data entries of an ontology organized by a data model in the Resource Description Framework (RDF) according to the World Wide Web Consortium (W3C) specification. A triple is a set of three entities that codifies a statement about semantic data in the form of a subject-predicate-object expression. Triples are typically organized and stored in a database called a triple store.

[0085] While the first step of this embodiment involves mapping of node identifications, the second step is intended to map the semantic descriptions to one or more predicates of the ontology. Mapping specifically means applying rules to retrieve or parse the semantic descriptions scattered within the OPC UA data model, classifying these semantic descriptions using common concepts, and subsume the classified concepts into formal data representations in the semantic ontology language.

[0086] The preferred semantic ontology language among other semantic ontology languages ​​like RDF, RDFS or RDF Schema is provided by the family of languages ​​known as OWL or Web Ontology Languages. The OWL family of languages ​​is constructed according to the W3C's XML standard for objects, based on the Resource Description Framework or RDF. OWL in combination with RDF has wide dissemination in implementing knowledge representation for creating ontologies.

[0087] In the following, compound names with one or more medial capitals - for example the compound name »TypeDefinitionNodes« - are used to refer to the authoritative names used in the OPC Foundation's specification »OPC Unified Architecture« or the OWL specification. These authoritative names are assumed to be known and are known to a person skilled in the art. Therefore, in the following, these authoritative names are introduced without explanation.

[0088] The following OPC UA Reference comprises a suitable semantic description to be expressed by or mapped to at least one predicate of the target ontology:

[0089] - Type definition nodes (VariableType, ObjectType)

[0090] - Instance declaration

[0091] - Browse name and other attributes

[0092] - Reference Type

[0093] - The structure of the address space (e.g., views)

[0094] - Data type (e.g. structure-data type)

[0095] The following sections define how to transform OPC UA semantics into ontology or OWL class concepts. The following ontology class concepts of OWL have appropriate counterparts within the semantics of OPC UA suitable for mapping:

[0096] - The class concept »Base« is derived from the OPC UA base node class (BaseNodeClass) and the super type of each concrete instance node class.

[0097] - The class concept »Data Type« is identical to the data type hierarchy, which can be found under Root / Type / Data Type.

[0098] - The class concept »InstanceDeclaration« is a helper concept that is used to add corresponding validation rules to this concept.

[0099] - Class concept »MethodType« is a helper class used to override and mark all method semantics. The semantics can be captured based on the method's browse name and object type.

[0100] - The class concept »ObjectType« is identical to the object type hierarchy, which can be found under Root / Type / ObjectType. However, object-related instance declarations can also be found in this hierarchy.

[0101] - Class concept »Class Rank Helper (ValueRankHelper)« is a helper concept used to add corresponding validation rules to this concept.

[0102] - The class concept »Variable Type« is identical to the variable type hierarchy, which can be found under Root / Type / Variable Type. However, variable instance declarations can also be found in this hierarchy.

[0103] The class concept »InstanceDeclaration« includes subclass method instance declarations (MethodInstanceDeclaration), object instance declarations (ObjectInstanceDeclaration) and variable instance declarations. The restrictions on instances of instance declarations in Part 3, Section 6.3.6 of the OPC UA Specification are modeled using the OWL class and subclass concepts in conjunction with OWL data property restrictions.

[0104] The class concept »Data Type« is constructed in conjunction with OPC UA Variables and OPC UA Variable Types or VariableTypes using restrictions on data types. The »Data Type« class concept is constructed in conjunction with OWL Object Property Restrictions and OWL Union concepts using OWL Class and OWL Subclass concepts to structure the data type field semantics, further including restrictions on the structure of the data type field constraints, such as data types. An exemplary data type is a 32-bit long unsigned integer or UInt32.

[0105] The class concept »method type« is the top-level concept for declaring methods for all instances. The semantics of methods are defined comparable to properties. A typical method is defined by an «owning object« and an assigned browse name. The following rules apply to the constructor method type concept:

[0106] - Try to map all method nodes with the same browse name to one concept, regardless of the owning object. This rule is similar to property browse names, however, if this mapping is not possible, a disjunctive concept must be introduced.

[0107] - For validation purposes, subtypes under the class concept «Method Type« were introduced, which are based on the Placeholder Modelingrule.

[0108] The class concept «Object Type« is used to capture the semantics of OPC UA concepts and assign restrictions to corresponding instance declarations and modeling rules. Object Types consist of Annotation Properties including labels, annotations, etc. The class concept in the ontology is modeled using the OWL Class and OWL Subclass concepts in combination with OWL Data Property Restrictions and OWL Annotation Properties. OWL Data Property Restrictions are modeled in part 3 of the OPC UA specification according to the rules formalized in the OPC UA specification.

[0109] By means of the class concept «ValueRankHelper«, constraints on the attribute "valuerank" of an OPC UA node are modeled according to OPC UA Part 3, sections 5.6.5 and 6.2.7 in combination with OWL Data Property Constraints, using OWL Class and OWL Subclass concepts. An exemplary constraint according to OPC UA Part 3, section 6.2.7 c) reads as follows:

[0110] The ArrayDimension property may be added if it is not provided, or when changing the value of an entry in the array from 0 to a different value. All other values ​​in the array should remain the same.

[0111] The constraints are mapped to regular expressions or RegEx patterns, such as for example:

[0112] arrayDimensions some xsd:string[pattern "\\[1,[0-9]{0,3},1\\]"]"

[0113] The class concept «variable type« is used to capture the semantics of OPC UA concepts and assign restrictions to corresponding instance declarations and modeling rules. Variable types consist of annotation properties including labels, comments, etc. The class concept in the ontology is modeled using the OWL class and OWL subclass concepts in combination with OWL data property restrictions, OWL object property restrictions and OWL annotation properties. OWL data property restrictions are modeled in part 3 of the OPC UA specification according to the rules formalized in the OPC UA specification.

[0114] Properties are modeled in the ontology by the following mapping rules. The definition of a property and its browse name (i.e., property browse name) is introduced as a sub-concept of the property type for each unique property-browse name. This general mapping rule will ensure that properties with equal browse names will also be mapped to the corresponding property-browse name concept.

[0115] Top-level object properties »objectProperties« can be used to enforce the same individual inferences. This concept has no other semantics assigned to it.

[0116] Regarding the concept of browse names and structure field names for instance declarations, each browse name for an instance declaration is mapped to an object property. Each structure field name is mapped to an object property with a namespace of the structure-data-type-namespace and a string part with the field name. The description of the structure-data-type-field can be mapped to an rdfs:comment annotation.

[0117] Regarding the concept of reference types, reference types in OPC UA are mapped to object properties in the ontology. All references that are not symmetric must have an »inverse« counterpart. Based on the »InverseOf« axiom, the reasoner can automatically infer bidirectional references without explicit modeling. If the InverseName property is specified, it is used to name the concept. If the InverseName property is not specified, a ReferenceName with the prefix »inverse« will be used (e.g., inverseHierarchicalReference). To ensure reliable inference of inverse references, the hierarchical reference tree must be completely mirrored. If a reference type is defined as symmetric and hierarchical, the reference must be a subtype of the forward and inverse trees. Symmetric references (i.e., the Symmetric-property is set to true) will also be reflected by setting the SymmetricObjectProperty to true.

[0118] The invention allows to use already existing semantic web reasoning tools to validate the OPC UA Information Model.Another advantage is the fact that, through the declarative nature of web ontology languages, specifically OWL, newly added rules can be handled without modifying the code base.

[0119] The present invention enables querying of OPC UA data models. Currently, there are no available off-the-shelf tool implementations for querying OPC UA data models. By using a mapping according to the present invention to generate an ontology including the RDF triples required by a SPARQL engine, querying of the OPC UA data model becomes feasible. However, it is not enough to generate triples based solely on OPC UA nodes. The present invention provides a method in which triples are generated in a way that captures the semantics of OPC UA, thereby providing the possibility to reduce the effort for formulating queries by a significant amount. Based on the mapping of the present invention, Semantic Web experts as well as OPC UA experts can formulate queries.

[0120] The present invention further enables the analysis of OPC UA data models. Based on the formal representation of OPC UA semantics, it is now possible to perform tasks such as skills matching, device to machine loading, data mining, etc.

[0121] It is to be understood that the elements and features recited in the appended claims may be combined in different ways to produce new claims that also fall within the scope of the invention. Therefore, although the dependent claims attached below are only dependent on a single independent or dependent claim, it is to be understood that these dependent claims may be alternatively made dependent on any preceding or following claims (whether independent or dependent), and these new combinations should be understood to form part of this specification.

[0122] Although the present invention has been described above with reference to various embodiments, it should be understood that many changes and modifications may be made to the described embodiments. It is therefore intended that the foregoing description should be considered illustrative rather than restrictive, and it is to be understood that all equivalents and / or combinations of the embodiments are intended to be included in this description.< / host>

Claims

1. A method for transforming a semantically rich and graph-based data model for automation purposes into a target ontology, the method comprising the following steps: - providing at least one layer of the data model from a first memory unit, the data model comprising a plurality of nodes described by attributes and interconnected by references; - retrieving the identities and / or browse names of the plurality of nodes and expressing each identity by a unique resource identifier URI conforming to the Representational State Transfer ruleset REST; - retrieving a semantic description of the reference and expressing the semantic description by at least one predicate and / or at least one class of the target ontology for mapping the semantic description to at least one predicate and / or at least one class of the target ontology; -Construct the target ontology through the semantic ontology language and output the target ontology to the triple store. 2 . The method according to claim 1 , wherein the semantically rich and graph-based data model for automation purposes is an OPC UA data model.

3. The method according to claim 1 or 2, wherein the semantic ontology language is one of RDF, OWL and RDFS (RDF Schema).

4. The method according to claim 1 or 2, wherein the URI is further expressed uniquely for different instance declarations within the target entity using at least one of a browse name, a display name, and a description attribute.

5. The method according to claim 1 or 2, wherein expressing the semantic description by at least one predicate and / or at least one class of the target ontology comprises the following steps: Semantic descriptions within the graph-based data model are parsed, the semantic descriptions are classified using common concepts, and the classified concepts are subsumed into a formal data representation within the semantic ontology language.

6. A transformation unit, comprising: -processor; as well as; - a data storage device having stored thereon a computer executable program code which, when executed by a processor, causes the processor to: - loading from a first memory unit at least one layer of a semantically rich graph-based data model for automation purposes, the data model comprising a plurality of nodes described by attributes and interconnected by references; - retrieving the identities and / or browse names of the plurality of nodes and expressing each identity by a unique resource identifier URI conforming to the Representational State Transfer ruleset REST; - retrieving a semantic description of the reference and expressing the semantic description by at least one predicate and / or at least one class of the target ontology for mapping the semantic description to at least one predicate and / or at least one class of the target ontology; -Construct the target ontology through the semantic ontology language and output the target ontology to the triple store.

7. A non-transitory computer-readable storage medium having computer-executable program code stored thereon, the computer-executable program code, when executed by a computer, causing the computer to perform the following operations: - loading from a first memory unit at least one layer of a semantically rich graph-based data model for automation purposes, the data model comprising a plurality of nodes described by attributes and interconnected by references; - retrieving the identities and / or browse names of the plurality of nodes and expressing each identity by a unique resource identifier URI conforming to the Representational State Transfer ruleset REST; - retrieving a semantic description of the reference and expressing the semantic description by at least one predicate and / or at least one class of the target ontology for mapping the semantic description to at least one predicate and / or at least one class of the target ontology; -Construct the target ontology through the semantic ontology language and output the target ontology to the triple store.