The present embodiments relate to a method for integrating semantic data processing (e.g., in automation devices).
Field devices, or devices that operate based on microcontrollers (e.g., intelligent sensors, actuators and control units in automation or in a vehicle), are known in the prior art. As the complexity of automation installations increases, there is an increasing need to equip devices with an ability to process data in a structured and interpretable form together with a semantic description (e.g., for data processing similar to the principles of a “semantic web”).
Semantic data processing in devices is desired (e.g., in order to facilitate engineering of the devices) to avoid or detect errors during operation and to optimize automation installations by optimally parameterizing the devices.
Semantic data processing that is currently widespread in the field of sophisticated information processing is operated based on ontologies. Ontologies are a knowledge representation for a defined area of knowledge (e.g., a domain) with the aim of interchanging and using knowledge in a machine-readable form. An ontology provides far-reaching possibilities for forming properties (e.g., relations) between classes (e.g., concepts) of the domain, and provides the methods required for semantic data processing. On account of data-related powerfulness of ontologies, working with ontologies requires a computing environment with ample resources.
Techniques of the semantic web have been transferred to semantic data processing of devices and other automation components. However, processing of semantic data based on ontologies is not provided because of the restricted resources of devices. The restricted resources may include a comparatively small memory area, a narrow communication bandwidth, and a CPU or microcontroller with few resources as a central computing unit.
Semantic data processing that is “lighter” (e.g., lightweight) in comparison is based on a known data model called the “Resource Description Framework” (RDF). The RDF data model has formal semantics based on directed graphs. The data in the data model is modeled as triples. Triples are an elementary statement that includes a subject, predicate and object. A semantic repository, or a triple store among experts, are known for storing RDF triples. Triple stores may also be referred to as μRDF in devices equipped with a limited storage space and computing power range. The standardized data format “Efficient XML Interchange” (EXI) is suitable for implementing a μRDF on devices.
Description languages for specifying data formats and the methods for processing the data are known. One known description language is “Extensible Markup Language” (XML). XML is used to describe hierarchically structured data in text form or plain text. The XML description language is used to interchange data between computer systems in a platform-independent manner. On account of the textual nature of XML, XML may be read by machines and by persons. Schemes used to describe a structure and to define data types are also known. These schemes are based on a description language (e.g., XML), and the schemes are referred to as description language schemes. A scheme for using XML data is also known as an XML Scheme Definition (XSD).
Rapid interchange of data between computer systems, and/or rapid internal data processing, is/are often required and cannot be achieved using a textual description language such as XML. Binary representations of XML were therefore proposed. Such a binary representation is the above-mentioned EXI interchange format that may be processed more quickly than text-based XML data and requires less transmission bandwidth when interchanging data between computer systems. Moreover, use of EXI is not restricted only to a binary representation of XML, and EXI may be used as an interchange format for processing and transmitting any desired semi-structured data.
The EXI binary representation displays advantages (e.g., during use in devices). Devices may be set up for device-internal processing of data in the text-based XML format, or in the EXI interchange format, but may interchange data with one another via corresponding communication interfaces based on binary data (e.g., binary data according to EXI specifications).
The EXI binary representation is particularly efficient if EXI grammar has been defined (e.g., grammar that best represents a semantic representation or description of the data). This grammar is usually produced from the XML schemes explained above. The more specific this grammar (e.g., with regard to the structure of the data, contents of the data, data types), the more efficient and compact coding of the grammar and the grammar implementation are.
However, a semantic description of devices is currently not available in the majority of cases. At present, such descriptions are defined only experimentally in an ad-hoc manner in an engineering tool, and the semantic descriptions remain only in the engineering tool environment in a proprietary format.
In contrast, it would be desirable to use widespread ontologies (e.g., from the automation domain) in the implementation or engineering of devices.
The scope of the present invention is defined solely by the appended claims and is not affected to any degree by the statements within this summary.
One or more of the present embodiments may obviate one or more of the drawbacks or limitations in the related art. For example, one or more of the present embodiments produces grammar (e.g., for use in devices with few resources) from a description language scheme, a semantic representation of a method of operation of the device being at least partially integrated from at least one ontology provided per se for computing environments with ample resources.
One or more of the present embodiments provides a method for integrating semantic data processing in a device (e.g., an automation field device). The method includes providing a description language scheme for defining a semantic repository and providing an ontology for semantically representing a method of operation and/or data of the device. The method also includes reading at least one class, with at least one property assigned thereto, from the ontology and inserting a corresponding scheme declaration into the description language scheme, producing grammar from the description language scheme, and integrating the grammar in the device.
One or more of the present embodiments provides for an existing generic description language scheme to be used as a starting point for defining a semantic repository. This description language scheme may be based on a known data model called “Resource Description Framework” or RDF. The description language scheme or scheme is suitable for implementing a triple store or μRDF in devices (e.g., field devices) equipped with a limited storage space and computing power range. The description language scheme is at least partially enriched with contents from an ontology for semantically representing a method of operation of the device. Classes of the ontology, together with at least one property assigned to the classes, are removed from the ontology, are converted into a corresponding scheme declaration, and the scheme declaration is inserted into the description language scheme. The classes may also include subclasses that are subordinate to a class by way of a property or relation “subClassOf”. The description language scheme, available after at least one scheme declaration has been inserted, is referred to as an “extended” or “specific” description language scheme in the further description because the integration of the device description from the ontology results in a description language scheme that takes into account the specifics of the device. One or more grammars (e.g., grammars according to the standardized data format “Efficient XML Interchange” (EXI)) are produced from the description language scheme and are integrated in the device (e.g., loaded as part of control software).
One or more of the present embodiments provide that the “specific” description language scheme may be used to produce grammar that allows considerably more compact semantic data processing and data transmission (e.g., between field devices or between field devices and an automation system).
The compactness of the data processing allows faster semantic data processing. The compactness also results in smaller data packet sizes that reduce the probability of a data packet having to be transmitted again in the event of a data packet loss (e.g., retransmission). Reducing retransmissions has a positive influence on the network utilization during communication between a plurality of field devices, or during communication between field devices and an automation system.
One or more of the present embodiments provides that implementations of the grammar produced use less storage space because the grammar contains fewer text-based (e.g., string-based) element names (e.g., identifier) than grammars that have not been produced using a structured device description (e.g., as provided by the ontology). The grammar allows text-based element names to be replaced with data type coding (e.g., type coding) in a manner determined by the system.
One or more of the present embodiments provides a computer program product. The computer program is executed in a processor of a provisioning computer (e.g., an engineering system for developing software inside the field device) that carries out the method with the execution.
A semantic description as a prerequisite for semantic data processing of devices (e.g., automation devices or field devices), and may currently be found only to some extent. Current approaches provide for semantic descriptions to be input “manually” only in an engineering phase using an engineering tool.
A semantic description that enables a “self-description” of the devices may also be achieved in devices with few resources based on the binary representation “Efficient XML Interchange” (EXI). Because a concept for a specific XML scheme is currently not available in the domains of the “semantic web” or “linked data” domain, a generic approach corresponding to “schemeless” coding according to EXI conventions may be selected in a first attempt. This approach, which is not based on any XML schemes or EXI grammars produced from XML schemes, proves to be disadvantageous on account of the coding that is not very efficient and is not very compact.
In contrast, one or more of the present embodiments provides for a description language scheme for defining a semantic repository.
The semantic repository based on the known data model “Resource Description Framework” (RDF) provides for data to be modeled in semantic triples. A description language scheme (e.g., an XML scheme) represents a structure of the semantic triples in the description language and is defined based on RDF. An exemplary description language scheme in the XML description language is illustrated below:
The declaration:
The declaration:
The declaration:
Based on the generic grammar produced from the description language scheme (e.g., shown above) for defining a semantic repository, any desired semantic descriptions may be represented using this generic grammar. For example, the following triple may be provided:
defining a structured representation of a temperature sensor and a humidity sensor.
In the triple, the temperature sensor or humidity sensor corresponds to a subject, the measured value or “value” corresponds to a property provided by the temperature sensor or humidity sensor (e.g., a predicate), and the specific measured value (e.g., “8.4” or “79.2” above) corresponds to the attribute of the triple.
An EXI representation of grammar produced would result in the following representation:
The digits underlined below:
The fragments underlined below:
The fragments underlined below:
One or more of the present embodiments provide for a further specification of the grammar to be produced from the description language scheme shown above to be brought about by including elements of an ontology for semantically representing a method of operation of the device in the description language scheme. The ontology elements are included by integrating a corresponding scheme declaration in the description language scheme.
A device (e.g., a field device) has a fixed method of operation with particular fixed and known parameters and data. A description of this method of operation is at least partially represented by an ontology. Based on the description of the ontology, semantic information from the ontology is represented in scheme declarations. The description language scheme extended is converted into extended “specific” grammar. The specific grammar results in a considerable increase in efficiency and compactness of the coding. For example, the specific grammar results in a generic data property (e.g., such as the property element “value” shown above) not having to be transferred to a text-based form and managed at the run time. The more specific grammar may result in values in text-based form (e.g., “sensor”) being avoided at run time.
Previous use of an ontology for validation purposes is thus extended with an advantageous use of the ontology to produce specific grammar resulting in efficient data processing.
The following information may be represented from semantic information from the ontology in scheme declarations: RDF framework (e.g., elements/attributes such as RDF, description, about, type, etc.); Properties (e.g., “data properties” and “object properties”, including designators or element names); used data types of the properties; names of the classes; and/or name spaces.
Grammar (e.g., EXI grammar) is produced from the description language scheme that has been extended with the semantic information from the ontology and is intended to define a semantic repository. The grammar is integrated in the device (e.g., the field device). A more compact representation is then achieved when transmitting data and during the internal semantic data processing. Furthermore, the processing of the semantic data becomes more efficient on account of accelerated parsing operations and memory usage is greatly reduced.
The preceding structural description of the exemplary ontology is described below with specific elements. A first class “sensor” SNS is assigned to a second class “thing” THN via the relationship “is a subclass of” SCL. The second class “thing” forms a (e.g., default) class provided in the ontology from the outset and forms a generic root class. The relationship “is a subclass of” SCL is used to form a subclass “sensor” SNS. This class SNS has a property “value” VAL defining the data type FLT. The data type FLT is in the form of a floating-point number or “float”.
A definition of the exemplary ontology according to
In this section of the ontology description language for defining the ontology according to
The class “thing” is defined by the line:
The class “sensor” is assigned to the superordinate class “thing” as a subclass via the relationship or property “subclassOf”. A subclass is may also be a class.
The classes and subclasses, together with properties assigned to the subclasses from the ontology, are read from the ontology or the ontology description language, and corresponding scheme declarations are inserted into the following extended description language scheme:
The “root” declaration with “RDF” and the interleaved “description” declaration corresponds (e.g., as in the example provided above) to the “default” RDF framework.
An important difference between the extended description language scheme shown here and the description language scheme above is that, in the extended description language scheme, specific properties (e.g., such as “type” and “value”) from the ontology are inserted in the “description” scheme declaration of elements.
The property “type” is expressly declared as a “type” element and is provided with an instruction that only classes defined in the ontology (e.g., namely “thing” and “sensor”) may be allocated:
The selection is implemented by declaring, with the aid of a list (e.g., an enumeration instruction).
A similarly express declaration is provided for the property “value” which, in a similar manner to the ontology (e.g., in the fragment DatatypeProperty) is declared as a float-based element:
The declaration of a data type (e.g., in addition to floating-point number types, such as float, also Boolean, integer etc.) may be adopted into the scheme declaration from the ontology.
Grammar extended in accordance with
The level “description grammar” contains two states “type” and “value” for representing the semantic information.
Mapping the semantic descriptions for a temperature sensor and a humidity sensor:
to the extended grammar, the following EXI representation now results:
It is immediately evident that the EXI representation is considerably more compact than the two-line EXI representation shown above and provided for use of the generic grammar without the inclusion of the ontology. This example clearly demonstrates the superior compactness of the coding achieved by the present embodiments.
Generic elements such as “type” and “value” are now no longer present, and are indirectly included in the grammar. Furthermore, known class names (e.g., “sensor”) may be represented by an enumeration representation in the description language scheme, with the result that only an enumeration value has to be transmitted and may be used on the programming level for processing. The 0 highlighted by underlining below corresponds to the enumeration value “sensor”:
One or more embodiments use a hybrid approach of EXI. The hybrid approach allows for creating extended grammar from one or more ontologies, but that the state “xs:any” may remain in such grammar in order to code unknown ontologies. In order to provide that the state “xs:any” remains in the grammar, the declaration:
The elements and features recited in the appended claims may be combined in different ways to produce new claims that likewise fall within the scope of the present invention. Thus, whereas the dependent claims appended below depend from only a single independent or dependent claim, it is to be understood that these dependent claims may, alternatively, be made to depend in the alternative from any preceding or following claim, whether independent or dependent. Such new combinations are to be understood as forming a part of the present specification.
While the present invention has been described above by reference to various embodiments, it should be understood that many changes and modifications can be made to the described embodiments. It is therefore intended that the foregoing description be regarded as illustrative rather than limiting, and that it be understood that all equivalents and/or combinations of embodiments are intended to be included in this description.
Number | Date | Country | Kind |
---|---|---|---|
102015200116.4 | Jan 2015 | DE | national |
This application is the National Stage of International Application No. PCT/EP2015/076953, filed Nov. 18, 2015, which claims the benefit of German Patent Application No. DE 102015200116.4, filed Jan. 8, 2015. The entire contents of these documents are hereby incorporated herein by reference.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/EP2015/076953 | 11/18/2015 | WO | 00 |