[go: up one dir, main page]

WO2022205153A1 - Information processing method and apparatus, and computing device and storage medium - Google Patents

Information processing method and apparatus, and computing device and storage medium Download PDF

Info

Publication number
WO2022205153A1
WO2022205153A1 PCT/CN2021/084629 CN2021084629W WO2022205153A1 WO 2022205153 A1 WO2022205153 A1 WO 2022205153A1 CN 2021084629 W CN2021084629 W CN 2021084629W WO 2022205153 A1 WO2022205153 A1 WO 2022205153A1
Authority
WO
WIPO (PCT)
Prior art keywords
data model
template
opc
target
model
Prior art date
Application number
PCT/CN2021/084629
Other languages
French (fr)
Chinese (zh)
Inventor
王琪
Original Assignee
西门子股份公司
西门子(中国)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 西门子股份公司, 西门子(中国)有限公司 filed Critical 西门子股份公司
Priority to PCT/CN2021/084629 priority Critical patent/WO2022205153A1/en
Publication of WO2022205153A1 publication Critical patent/WO2022205153A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors

Definitions

  • the present disclosure generally relates to the technical field of the Internet of Things, and more particularly, to an information processing method, an apparatus, a computing device, and a storage medium.
  • OPC-UA Object Linking and Embedding (OLE) for Process Control, Unified Architecture
  • OPE Object Linking and Embedding
  • IoT Internet of Things
  • OPC-UA plays an important role as a unified standard for providing data to IoT systems from different data sources.
  • the present invention proposes a method that can map the data model of the OPC-UA system to the data model of other IoT systems, so as to realize the integration between the OPC-UA system and the IoT system simply and flexibly.
  • an information processing method comprising: acquiring a source data model from an OPC-UA system;
  • a template that defines a target data model of the target system the template at least defines the format of the target data model; and the source data model and the template are compiled to generate a target data model.
  • the data model of the OPC-UA system can be easily mapped to the data model of other IoT systems.
  • acquiring the source data model from the OPC-UA system further includes: using a semantic query language to define a query statement, and querying the OPC-UA system for the data required by the target system as the required data. Describe the source data model.
  • the target data model includes at least one of the following:
  • Cloud platform model OPC-UA model, RDF data model, XML data model, JSON data model.
  • the template is a dynamic template implemented using logic statements.
  • the template can be flexibly applied to different types of IoT systems.
  • an information processing apparatus comprising: a source data model acquisition unit configured to acquire a source data model from an OPC-UA system; a template definition unit configured to define a target data model of a target system a template, the template defines at least the format of the target data model; and a target data model generating unit configured to compile the source data model and the template to generate a target data model.
  • the source data model obtaining unit is further configured to: define a query statement by using a semantic query language, and query the data required by the target system from the OPC-UA system as the required data. Describe the source data model.
  • the target data model includes at least one of the following:
  • Cloud platform model OPC-UA model, RDF data model, XML data model, JSON data model.
  • the template is a dynamic template implemented using logic statements.
  • a computing device comprising: at least one processor; and a memory coupled to the at least one processor, the memory for storing instructions, when the instructions are executed by the at least one processor When executed by the processor, the processor is caused to execute the method as described above.
  • a non-transitory machine-readable storage medium storing executable instructions that, when executed, cause the machine to perform the method as described above.
  • a computer program comprising computer-executable instructions which, when executed, cause at least one processor to perform the method as described above.
  • a computer program product tangibly stored on a computer-readable medium and comprising computer-executable instructions that, when executed, cause at least one A processor executes the method as described above.
  • a unified method for conveniently and flexibly integrating the OPC-UA system with different IOT systems is provided; the semantic-based query of the OPC-UA system is supported, so as to adapt to the flexibility of different application programs Requirements; the method according to the present disclosure does not require excessive manual effort.
  • FIG. 1 is a flowchart of an exemplary process of an information processing method 100 according to an embodiment of the present invention
  • FIG. 2 is a block diagram of an exemplary configuration of an information processing apparatus 200 according to an embodiment of the present invention
  • FIG. 3 shows a block diagram of a computing device 300 implementing information processing in accordance with an embodiment of the present disclosure.
  • Information processing device 202 Source data model acquisition unit
  • Template definition unit 206 Target data model generation unit
  • the term “including” and variations thereof represent open-ended terms meaning “including but not limited to”.
  • the term “based on” means “based at least in part on”.
  • the terms “one embodiment” and “an embodiment” mean “at least one embodiment.”
  • the term “another embodiment” means “at least one other embodiment.”
  • the terms “first”, “second”, etc. may refer to different or the same objects. Other definitions, whether explicit or implicit, may be included below. The definition of a term is consistent throughout the specification unless the context clearly dictates otherwise.
  • the present invention proposes a method that can map the data model of the OPC-UA system to the data model of other IoT systems, so as to realize the integration between the OPC-UA system and the IoT system simply and flexibly.
  • FIG. 1 is a flowchart of an exemplary process of an information processing method 100 according to an embodiment of the present invention.
  • step S102 the source data model is acquired from the OPC-UA system.
  • the source data model can be obtained, for example, from an OPC-UA server or a NodeSet file.
  • the source data model is the data model of the target data model to be mapped to the target system to realize the integration of the OPC-UA system and the IoT system.
  • step S104 a template of the target data model of the target system is defined.
  • the target systems are collectively referred to as IoT systems.
  • the target data models of IoT systems may include, for example, cloud platform models, OPC-UA models in other systems (for example, through PubSub (subscription publishing)), and RDF data models. , XML data model or JSON data model, etc.
  • the source data model should be mapped to the target data model, so in step S104, templates should be defined according to different types of the target data model.
  • the template of the target data model is used to define the format of the target data model, and it can also define the interface transmission data format of the application program interface.
  • the template shows the format of a certain cloud platform model, and the various variables are defined in the template.
  • a dynamic language can be used to define the template, such as iterative, conditional and other logic statements, so that a dynamic template can be defined, so that the template can be flexibly applied to different types of systems (eg, JSON, XML, RDF, etc.). It can be seen that in the specific example of the above template, the "For" statement is used to implement the dynamic template.
  • step S106 the source data model and the template are compiled to generate a target data model.
  • the target data model in the target system can be generated.
  • the OPC-UA source data model can be easily mapped to the target data model, which realizes the integration of the OPC-UA system and the IoT system.
  • step S102 further includes defining a query statement using a semantic query language (eg SPARQL), and querying the OPC-UA system to obtain the data required by the target system.
  • a semantic query language eg SPARQL
  • the type of the variable to be obtained can be limited by a query statement, and the variable of the required type can be selected from the OPC-UA system to map to the target data model. In this way, the flexible needs of different applications can be supported.
  • a unified method of integrating an OPC-UA system with different IOT systems is provided.
  • semantic-based query to the OPC-UA system is supported, so that the flexible requirements of different applications can be adapted.
  • FIG. 2 is a block diagram of an exemplary configuration of an information processing apparatus 200 according to an embodiment of the present invention.
  • the information processing apparatus 200 includes: a source data model acquisition unit 202 , a template definition unit 204 , and a target data model generation unit 206 .
  • the source data model acquisition unit 202 is configured to acquire the source data model from the OPC-UA system.
  • the template definition unit 204 is configured to define a template of the target data model of the target system, the template defining at least the format of the target data model.
  • the target data model generating unit 206 is configured to compile the source data model and the template to generate a target data model.
  • the source data model obtaining unit 202 is further configured to: define a query statement using a semantic query language, and query the data required by the target system from the OPC-UA system as the source data model.
  • the target data model includes at least one of the following: cloud platform model, OPC-UA model, RDF data model, XML data model, JSON data model.
  • the template is a dynamic template implemented by using logic statements.
  • Details of operations and functions of various parts of the information processing apparatus 200 may be, for example, the same or similar to relevant parts of the embodiment of the information processing method 100 of the present disclosure described with reference to FIG. 1 , and will not be described in detail here.
  • Each unit of the information processing apparatus described above may be implemented by hardware, or may be implemented by software or a combination of hardware and software.
  • FIG. 3 shows a block diagram of a computing device 300 for implementing information processing in accordance with an embodiment of the present disclosure.
  • computing device 300 may include at least one processor 302 that executes at least one computer-readable instruction (ie, the above-described in software form) stored or encoded in a computer-readable storage medium (ie, memory 304 ). implemented elements).
  • a non-transitory machine-readable medium may have machine-executable instructions (ie, the above-described elements implemented in software) that, when executed by a machine, cause the machine to perform various embodiments of the present disclosure above in conjunction with FIGS. 1-2 Various operations and functions are described.
  • a computer program comprising computer-executable instructions that, when executed, cause at least one processor to perform each of the various embodiments of the present disclosure described above in connection with FIGS. 1-2 operations and functions.
  • a computer program product comprising computer-executable instructions that, when executed, cause at least one processor to perform the various embodiments of the present disclosure described above in connection with FIGS. 1-2 Various operations and functions.
  • the device structure described in the above embodiments may be a physical structure or a logical structure, that is, some units may be implemented by the same physical entity, or some units may be implemented by multiple physical entities respectively, or may be implemented by multiple physical entities. Some components in separate devices are implemented together.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present disclosure relates to an information processing method and apparatus, and a computing device and a storage medium. The information processing method comprises: acquiring a source data model from an OPC-UA system; defining a template of a target data model of a target system, wherein the template at least defines the format of the target data model; and compiling the source data model and the template to generate the target data model.

Description

信息处理方法、装置、计算设备以及存储介质Information processing method, apparatus, computing device, and storage medium 技术领域technical field
本公开通常涉及物联网技术领域,更具体地,涉及信息处理方法、装置、计算设备以及存储介质。The present disclosure generally relates to the technical field of the Internet of Things, and more particularly, to an information processing method, an apparatus, a computing device, and a storage medium.
背景技术Background technique
OPC-UA(Object Linking and Embedding(OLE)for Process Control,Unified Architecture)通信协议在工业中广泛使用,包括现场设备之间的通信,以及现场设备和管理系统之间的通信。对于工业IoT(物联网)系统,OPC-UA作为从不同数据源向IoT系统提供数据的统一标准起到了重要的作用。OPC-UA (Object Linking and Embedding (OLE) for Process Control, Unified Architecture) communication protocol is widely used in industry, including communication between field devices, and communication between field devices and management systems. For industrial IoT (Internet of Things) systems, OPC-UA plays an important role as a unified standard for providing data to IoT systems from different data sources.
然而,在将采用OPC-UA协议的系统与IoT系统进行集成的过程中,存在一些问题:However, in the process of integrating a system using the OPC-UA protocol with an IoT system, there are some problems:
1.不同IoT系统具有不同的数据模型和应用程序,没有标准的方式来将OPC-UA系统与IoT系统进行集成。1. Different IoT systems have different data models and applications, and there is no standard way to integrate OPC-UA systems with IoT systems.
2.需要对数据模型、数据点和OPC-UA系统与IoT系统之间的映射进行手工配置,当存在大量数据点的时候,这个工作容易出错,并且耗费大量时间。2. Manual configuration of the data model, data points, and mapping between the OPC-UA system and the IoT system is required, which is error-prone and time-consuming when there are a large number of data points.
3.配置通常是静态的,不能灵活适用于不同类型的应用程序。3. Configurations are usually static and not flexible for different types of applications.
在现有技术中,存在从OPC-UA到Resource Description Framework(RDF)的映射,但是其目的并不在于将OPC-UA与IoT系统进行集成。In the prior art, there is a mapping from OPC-UA to Resource Description Framework (RDF), but its purpose is not to integrate OPC-UA with IoT systems.
还有一些语言,支持从RDF到JSON的映射,但是并不支持与IoT系统的集成。There are also languages that support mapping from RDF to JSON, but do not support integration with IoT systems.
发明内容SUMMARY OF THE INVENTION
在下文中给出关于本发明的简要概述,以便提供关于本发明的某些方面的基本理解。应当理解,这个概述并不是关于本发明的穷举性概述。它并不是意图确定本发明的关键或重要部分,也不是意图限定本发明的范围。其目的仅仅是以简化的形式给出某些概念,以此作为稍后论述的更详细描述的前序。The following presents a brief summary of the present invention in order to provide a basic understanding of certain aspects of the invention. It should be understood that this summary is not an exhaustive overview of the invention. It is not intended to identify key or essential parts of the invention nor to limit the scope of the invention. Its sole purpose is to present some concepts in a simplified form as a prelude to the more detailed description that is discussed later.
有鉴于此,本发明提出了一种能够将OPC-UA系统的数据模型映射到其他IoT系统的数据模型的方法,能够简单灵活地实现OPC-UA系统与IoT系统之间的集成。In view of this, the present invention proposes a method that can map the data model of the OPC-UA system to the data model of other IoT systems, so as to realize the integration between the OPC-UA system and the IoT system simply and flexibly.
根据本公开的一个方面,提供了一种信息处理方法,包括:从OPC-UA系统获取源 数据模型;According to one aspect of the present disclosure, an information processing method is provided, comprising: acquiring a source data model from an OPC-UA system;
定义目标系统的目标数据模型的模板,所述模板至少定义所述目标数据模型的格式;以及对所述源数据模型和所述模板进行编译,生成目标数据模型。A template that defines a target data model of the target system, the template at least defines the format of the target data model; and the source data model and the template are compiled to generate a target data model.
通过这样的方式,能够方便地将OPC-UA系统的数据模型映射到其他IoT系统的数据模型。In this way, the data model of the OPC-UA system can be easily mapped to the data model of other IoT systems.
可选地,在上述方面的一个示例中,从OPC-UA系统获取源数据模型进一步包括:利用语义查询语言定义查询语句,从所述OPC-UA系统查询所述目标系统所需要的数据作为所述源数据模型。Optionally, in an example of the above aspect, acquiring the source data model from the OPC-UA system further includes: using a semantic query language to define a query statement, and querying the OPC-UA system for the data required by the target system as the required data. Describe the source data model.
通过这样的方式,可以支持对OPC-UA系统基于语义的查询,从而可以适应不同应用程序的灵活需求。In this way, semantic-based queries to the OPC-UA system can be supported, so that it can adapt to the flexible needs of different applications.
可选地,在上述方面的一个示例中,所述目标数据模型包括以下中的至少一项:Optionally, in an example of the above aspect, the target data model includes at least one of the following:
云平台模型、OPC-UA模型、RDF数据模型、XML数据模型、JSON数据模型。Cloud platform model, OPC-UA model, RDF data model, XML data model, JSON data model.
通过这样的方式,可以实现OPC-UA系统与多种不同IoT系统的集成。In this way, the integration of OPC-UA systems with many different IoT systems can be achieved.
可选地,在上述方面的一个示例中,所述模板是采用逻辑语句实现的动态模板。Optionally, in an example of the above aspect, the template is a dynamic template implemented using logic statements.
通过这样的方式,使得模板可以灵活地适用于不同类型的IoT系统。In this way, the template can be flexibly applied to different types of IoT systems.
根据本公开的另一方面,提供了信息处理装置,包括:源数据模型获取单元,被配置为从OPC-UA系统获取源数据模型;模板定义单元,被配置为定义目标系统的目标数据模型的模板,所述模板至少定义所述目标数据模型的格式;以及目标数据模型生成单元,被配置为对所述源数据模型和所述模板进行编译,生成目标数据模型。According to another aspect of the present disclosure, there is provided an information processing apparatus, comprising: a source data model acquisition unit configured to acquire a source data model from an OPC-UA system; a template definition unit configured to define a target data model of a target system a template, the template defines at least the format of the target data model; and a target data model generating unit configured to compile the source data model and the template to generate a target data model.
可选地,在上述方面的一个示例中,所述源数据模型获取单元进一步被配置为:利用语义查询语言定义查询语句,从所述OPC-UA系统查询所述目标系统所需要的数据作为所述源数据模型。Optionally, in an example of the above aspect, the source data model obtaining unit is further configured to: define a query statement by using a semantic query language, and query the data required by the target system from the OPC-UA system as the required data. Describe the source data model.
可选地,在上述方面的一个示例中,所述目标数据模型包括以下中的至少一项:Optionally, in an example of the above aspect, the target data model includes at least one of the following:
云平台模型、OPC-UA模型、RDF数据模型、XML数据模型、JSON数据模型。Cloud platform model, OPC-UA model, RDF data model, XML data model, JSON data model.
可选地,在上述方面的一个示例中,所述模板是采用逻辑语句实现的动态模板。Optionally, in an example of the above aspect, the template is a dynamic template implemented using logic statements.
根据本公开的另一方面,提供了计算设备,包括:至少一个处理器;以及与所述至少一个处理器耦合的一个存储器,所述存储器用于存储指令,当所述指令被所述至少一个处理器执行时,使得所述处理器执行如上所述的方法。According to another aspect of the present disclosure, there is provided a computing device comprising: at least one processor; and a memory coupled to the at least one processor, the memory for storing instructions, when the instructions are executed by the at least one processor When executed by the processor, the processor is caused to execute the method as described above.
根据本公开的另一方面,提供了一种非暂时性机器可读存储介质,其存储有可执行 指令,所述指令当被执行时使得所述机器执行如上所述的方法。According to another aspect of the present disclosure, there is provided a non-transitory machine-readable storage medium storing executable instructions that, when executed, cause the machine to perform the method as described above.
根据本公开的另一方面,提供了一种计算机程序,包括计算机可执行指令,所述计算机可执行指令在被执行时使至少一个处理器执行如上所述的方法。According to another aspect of the present disclosure, there is provided a computer program comprising computer-executable instructions which, when executed, cause at least one processor to perform the method as described above.
根据本公开的另一方面,提供了一种计算机程序产品,所述计算机程序产品被有形地存储在计算机可读介质上并且包括计算机可执行指令,所述计算机可执行指令在被执行时使至少一个处理器执行如上所述的方法。According to another aspect of the present disclosure, there is provided a computer program product tangibly stored on a computer-readable medium and comprising computer-executable instructions that, when executed, cause at least one A processor executes the method as described above.
根据本发明的信息处理方法和装置,提供了一种方便灵活地将OPC-UA系统与不同IOT系统集成的统一方法;支持对OPC-UA系统基于语义的查询,从而可以适应不同应用程序的灵活需求;根据本公开的方法无需过多的人工工作量。According to the information processing method and device of the present invention, a unified method for conveniently and flexibly integrating the OPC-UA system with different IOT systems is provided; the semantic-based query of the OPC-UA system is supported, so as to adapt to the flexibility of different application programs Requirements; the method according to the present disclosure does not require excessive manual effort.
附图说明Description of drawings
参照下面结合附图对本发明实施例的说明,会更加容易地理解本发明的以上和其它目的、特点和优点。附图中的部件只是为了示出本发明的原理。在附图中,相同的或类似的技术特征或部件将采用相同或类似的附图标记来表示。附图中:The above and other objects, features and advantages of the present invention will be more easily understood with reference to the following description of the embodiments of the present invention in conjunction with the accompanying drawings. The components in the drawings are merely intended to illustrate the principles of the invention. In the drawings, the same or similar technical features or components will be denoted by the same or similar reference numerals. In the attached picture:
图1为根据本发明实施例的信息处理方法100的示例性过程的流程图;1 is a flowchart of an exemplary process of an information processing method 100 according to an embodiment of the present invention;
图2为根据本发明实施例的信息处理装置200的示例性配置的框图;2 is a block diagram of an exemplary configuration of an information processing apparatus 200 according to an embodiment of the present invention;
图3示出了根据本公开的实施例的实现信息处理的计算设备300的方框图。3 shows a block diagram of a computing device 300 implementing information processing in accordance with an embodiment of the present disclosure.
其中,附图标记如下:Among them, the reference numerals are as follows:
100:信息处理方法               S102、S104、S106:步骤100: Information processing method S102, S104, S106: steps
200:信息处理装置               202:源数据模型获取单元200: Information processing device 202: Source data model acquisition unit
204:模板定义单元               206:目标数据模型生成单元204: Template definition unit 206: Target data model generation unit
300:计算设备                   302:处理器300: Computing Equipment 302: Processor
304:存储器304: memory
具体实施方式Detailed ways
现在将参考示例实施方式讨论本文描述的主题。应该理解,讨论这些实施方式只是为了使得本领域技术人员能够更好地理解从而实现本文描述的主题,并非是对权利要求书中所阐述的保护范围、适用性或者示例的限制。可以在不脱离本公开内容的保护范围的情况下,对所讨论的元素的功能和排列进行改变。各个示例可以根据需要,省略、替 代或者添加各种过程或组件。例如,所描述的方法可以按照与所描述的顺序不同的顺序来执行,以及各个步骤可以被添加、省略或者组合。另外,相对一些示例所描述的特征在其它例子中也可以进行组合。The subject matter described herein will now be discussed with reference to example implementations. It should be understood that these embodiments are discussed only to enable those skilled in the art to better understand and implement the subject matter described herein, and not to limit the scope of protection, applicability, or examples set forth in the claims. Changes may be made in the function and arrangement of elements discussed without departing from the scope of the disclosure. Various examples may omit, substitute, or add various procedures or components as desired. For example, the methods described may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with respect to some examples may also be combined in other examples.
如本文中使用的,术语“包括”及其变型表示开放的术语,含义是“包括但不限于”。术语“基于”表示“至少部分地基于”。术语“一个实施例”和“一实施例”表示“至少一个实施例”。术语“另一个实施例”表示“至少一个其他实施例”。术语“第一”、“第二”等可以指代不同的或相同的对象。下面可以包括其他的定义,无论是明确的还是隐含的。除非上下文中明确地指明,否则一个术语的定义在整个说明书中是一致的。As used herein, the term "including" and variations thereof represent open-ended terms meaning "including but not limited to". The term "based on" means "based at least in part on". The terms "one embodiment" and "an embodiment" mean "at least one embodiment." The term "another embodiment" means "at least one other embodiment." The terms "first", "second", etc. may refer to different or the same objects. Other definitions, whether explicit or implicit, may be included below. The definition of a term is consistent throughout the specification unless the context clearly dictates otherwise.
为了解决上述问题,本发明提出了一种能够将OPC-UA系统的数据模型映射到其他IoT系统的数据模型的方法,从而简单灵活地实现OPC-UA系统与IoT系统之间的集成。In order to solve the above problems, the present invention proposes a method that can map the data model of the OPC-UA system to the data model of other IoT systems, so as to realize the integration between the OPC-UA system and the IoT system simply and flexibly.
下面将结合附图来描述根据本公开的实施例的信息处理方法和装置。The information processing method and apparatus according to the embodiments of the present disclosure will be described below with reference to the accompanying drawings.
图1为根据本发明实施例的信息处理方法100的示例性过程的流程图。FIG. 1 is a flowchart of an exemplary process of an information processing method 100 according to an embodiment of the present invention.
首先,在步骤S102中,从OPC-UA系统获取源数据模型。First, in step S102, the source data model is acquired from the OPC-UA system.
例如可以从OPC-UA服务器或者NodeSet文件获取源数据模型。源数据模型是待映射到目标系统的目标数据模型的数据模型,以实现OPC-UA系统与IoT系统集成。The source data model can be obtained, for example, from an OPC-UA server or a NodeSet file. The source data model is the data model of the target data model to be mapped to the target system to realize the integration of the OPC-UA system and the IoT system.
下面是OPC-UA模型的一个具体示例。Below is a concrete example of the OPC-UA model.
Figure PCTCN2021084629-appb-000001
Figure PCTCN2021084629-appb-000001
接下来,在步骤S104中,定义目标系统的目标数据模型的模板。Next, in step S104, a template of the target data model of the target system is defined.
在本公开中,将目标系统统称为IoT系统,具体地,IoT系统的目标数据模型例如可以包括云平台模型、其它系统中的OPC-UA模型(例如通过PubSub(订阅发布))、RDF数据模型、XML数据模型或者JSON数据模型等。In this disclosure, the target systems are collectively referred to as IoT systems. Specifically, the target data models of IoT systems may include, for example, cloud platform models, OPC-UA models in other systems (for example, through PubSub (subscription publishing)), and RDF data models. , XML data model or JSON data model, etc.
为了实现OPC-UA系统与目标系统的集成,要将源数据模型映射为目标数据模型,因此在步骤S104中,要根据目标数据模型的不同类型来定义模板。In order to realize the integration of the OPC-UA system and the target system, the source data model should be mapped to the target data model, so in step S104, templates should be defined according to different types of the target data model.
目标数据模型的模板用于定义目标数据模型的格式,此外也可以定义应用程序接口的接口传输数据格式。The template of the target data model is used to define the format of the target data model, and it can also define the interface transmission data format of the application program interface.
本领域技术人员可以参考现有的应用程序框架语言,针对不同类型的目标系统,分别定义相应的模板,在此不再详述。Those skilled in the art can refer to the existing application framework language to define corresponding templates for different types of target systems, which will not be described in detail here.
下面示出了模板的一个具体示例。A specific example of a template is shown below.
Figure PCTCN2021084629-appb-000002
Figure PCTCN2021084629-appb-000002
该模板示出了某种云平台模型的格式,在模板中定义了各个变量。The template shows the format of a certain cloud platform model, and the various variables are defined in the template.
优选地,可以采用动态语言来定义模板,例如采用迭代、条件等逻辑语句,这样可以定义一个动态模板,使得模板可以非常灵活地适用于不同类型的系统(例如,JSON、XML以及RDF等)。可以看到,在上述模板的具体示例中,采用了“For”语句来实现动态模板。Preferably, a dynamic language can be used to define the template, such as iterative, conditional and other logic statements, so that a dynamic template can be defined, so that the template can be flexibly applied to different types of systems (eg, JSON, XML, RDF, etc.). It can be seen that in the specific example of the above template, the "For" statement is used to implement the dynamic template.
在步骤S106中,对所述源数据模型和所述模板进行编译,生成目标数据模型。In step S106, the source data model and the template are compiled to generate a target data model.
通过对步骤S102中所获取的源数据模型和步骤S104中定义的目标数据模型的模板进行编译,可以生成目标系统中的目标数据模型。通过这样的方式,可以方便地将OPC-UA源数据模型映射为目标数据模型,实现了OPC-UA系统和IoT系统的集成。By compiling the source data model obtained in step S102 and the template of the target data model defined in step S104, the target data model in the target system can be generated. In this way, the OPC-UA source data model can be easily mapped to the target data model, which realizes the integration of the OPC-UA system and the IoT system.
在一个示例中,步骤S102进一步包括利用语义查询语言(例如SPARQL)定义查询语句,从所述OPC-UA系统查询,获得所述目标系统所需要的数据。In an example, step S102 further includes defining a query statement using a semantic query language (eg SPARQL), and querying the OPC-UA system to obtain the data required by the target system.
例如,可以根据目标系统中的应用程序的需要,通过查询语句限定所要获取的变量的类型,从OPC-UA系统中选择所需类型的变量来映射到目标数据模型。通过这样的方式,可以支持不同应用程序的灵活需求。For example, according to the needs of the application program in the target system, the type of the variable to be obtained can be limited by a query statement, and the variable of the required type can be selected from the OPC-UA system to map to the target data model. In this way, the flexible needs of different applications can be supported.
例如,下面是一个查询语句的具体示例,通过该查询语句,可以从OPC-UA服务器选择变量类型为“ns=2;S=Device”的变量映射到IoT模型。For example, the following is a specific example of a query statement, through which a variable of variable type "ns=2; S=Device" can be selected from the OPC-UA server to map to the IoT model.
SELECT?node WHERE{SELECT? node WHERE{
   ?node ua:HasTypeDefinition‘ns=2;i=1002’.? node ua:HasTypeDefinition'ns=2;i=1002'.
}}
下面示出了利用上述IoT模型的模板和获取的源数据模型所生成的IoT数据模型的一个具体示例。A specific example of an IoT data model generated by using the above-mentioned IoT model template and the acquired source data model is shown below.
Figure PCTCN2021084629-appb-000003
Figure PCTCN2021084629-appb-000003
根据本公开的方法,提供了一种将OPC-UA系统与不同的IOT系统集成的统一方法。According to the method of the present disclosure, a unified method of integrating an OPC-UA system with different IOT systems is provided.
根据本公开的方法,支持对OPC-UA系统基于语义的查询,从而可以适应不同应用程序的灵活需求。According to the method of the present disclosure, semantic-based query to the OPC-UA system is supported, so that the flexible requirements of different applications can be adapted.
根据本公开的方法,无需过多的人工工作量。According to the method of the present disclosure, excessive manual effort is not required.
图2为根据本发明实施例的信息处理装置200的示例性配置的框图。FIG. 2 is a block diagram of an exemplary configuration of an information processing apparatus 200 according to an embodiment of the present invention.
如图2所示,信息处理装置200包括:源数据模型获取单元202、模板定义单元204、目标数据模型生成单元206。As shown in FIG. 2 , the information processing apparatus 200 includes: a source data model acquisition unit 202 , a template definition unit 204 , and a target data model generation unit 206 .
源数据模型获取单元202被配置为从OPC-UA系统获取源数据模型。The source data model acquisition unit 202 is configured to acquire the source data model from the OPC-UA system.
模板定义单元204被配置为定义目标系统的目标数据模型的模板,所述模板至少定义所述目标数据模型的格式。The template definition unit 204 is configured to define a template of the target data model of the target system, the template defining at least the format of the target data model.
目标数据模型生成单元206被配置为对所述源数据模型和所述模板进行编译,生成目标数据模型。The target data model generating unit 206 is configured to compile the source data model and the template to generate a target data model.
优选地,所述源数据模型获取单元202进一步被配置为:利用语义查询语言定义查询语句,从所述OPC-UA系统查询所述目标系统所需要的数据作为所述源数据模型。Preferably, the source data model obtaining unit 202 is further configured to: define a query statement using a semantic query language, and query the data required by the target system from the OPC-UA system as the source data model.
其中,所述目标数据模型包括以下中的至少一项:云平台模型、OPC-UA模型、RDF数据模型、XML数据模型、JSON数据模型。Wherein, the target data model includes at least one of the following: cloud platform model, OPC-UA model, RDF data model, XML data model, JSON data model.
其中,所述模板是采用逻辑语句实现的动态模板。Wherein, the template is a dynamic template implemented by using logic statements.
需要说明的是,图2所示的信息处理装置200及其组成单元的结构仅仅是示例性的,本领域技术人员可以根据需要对图2所示的结构框图进行修改。It should be noted that the structures of the information processing apparatus 200 and its constituent units shown in FIG. 2 are merely exemplary, and those skilled in the art can modify the structural block diagram shown in FIG. 2 as required.
信息处理装置200的各个部分的操作和功能的细节例如可以与参照结合图1描述的本公开的信息处理方法100的实施例的相关部分相同或类似,这里不再详细描述。Details of operations and functions of various parts of the information processing apparatus 200 may be, for example, the same or similar to relevant parts of the embodiment of the information processing method 100 of the present disclosure described with reference to FIG. 1 , and will not be described in detail here.
如上参照图1至图2,对根据本公开的实施例的信息处理方法和装置进行了描述。以上所述的信息处理装置的各个单元可以采用硬件实现,也可以采用软件或者硬件和软件的组合来实现。As above, with reference to FIGS. 1 to 2 , the information processing method and apparatus according to the embodiments of the present disclosure are described. Each unit of the information processing apparatus described above may be implemented by hardware, or may be implemented by software or a combination of hardware and software.
图3示出了根据本公开的实施例的用于实现信息处理的计算设备300的方框图。根据一个实施例,计算设备300可以包括至少一个处理器302,处理器302执行在计算机可读存储介质(即,存储器304)中存储或编码的至少一个计算机可读指令(即,上述以软件形式实现的元素)。FIG. 3 shows a block diagram of a computing device 300 for implementing information processing in accordance with an embodiment of the present disclosure. According to one embodiment, computing device 300 may include at least one processor 302 that executes at least one computer-readable instruction (ie, the above-described in software form) stored or encoded in a computer-readable storage medium (ie, memory 304 ). implemented elements).
应该理解,在存储器304中存储的计算机可执行指令当执行时使得至少一个处理器302进行本公开的各个实施例中以上结合图1-2描述的各种操作和功能。It should be understood that the computer-executable instructions stored in memory 304, when executed, cause at least one processor 302 to perform various operations and functions described above in connection with FIGS. 1-2 in various embodiments of the present disclosure.
根据一个实施例,提供了一种非暂时性机器可读介质。该非暂时性机器可读介质可以具有机器可执行指令(即,上述以软件形式实现的元素),该指令当被机器执行时,使得机器执行本公开的各个实施例中以上结合图1-2描述的各种操作和功能。According to one embodiment, a non-transitory machine-readable medium is provided. The non-transitory machine-readable medium may have machine-executable instructions (ie, the above-described elements implemented in software) that, when executed by a machine, cause the machine to perform various embodiments of the present disclosure above in conjunction with FIGS. 1-2 Various operations and functions are described.
根据一个实施例,提供了一种计算机程序,包括计算机可执行指令,所述计算机可执行指令在被执行时使至少一个处理器执行本公开的各个实施例中以上结合图1-2描述的各种操作和功能。According to one embodiment, there is provided a computer program comprising computer-executable instructions that, when executed, cause at least one processor to perform each of the various embodiments of the present disclosure described above in connection with FIGS. 1-2 operations and functions.
根据一个实施例,提供了一种计算机程序产品,包括计算机可执行指令,所述计算机可执行指令在被执行时使至少一个处理器执行本公开的各个实施例中以上结合图1-2描述的各种操作和功能。According to one embodiment, there is provided a computer program product comprising computer-executable instructions that, when executed, cause at least one processor to perform the various embodiments of the present disclosure described above in connection with FIGS. 1-2 Various operations and functions.
应当理解的是,本说明书中的各个实施例均采用递进的方式来描述,各个实施例之间相同或相似的部分相互参见即可,每个实施例重点说明的都是与其它实施例的不同之处。例如,对于上述关于装置的实施例、关于计算设备的实施例以及关于机器可读存储 介质的实施例而言,由于它们基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。It should be understood that, the various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the description of other embodiments. the difference. For example, for the above-mentioned embodiments about the apparatus, the embodiment about the computing device, and the embodiment about the machine-readable storage medium, since they are basically similar to the method embodiments, the descriptions are relatively simple, and the relevant details refer to the method implementation Part of the example can be explained.
上文对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。Specific embodiments of the present specification have been described above. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that in the embodiments and still achieve desirable results. Additionally, the processes depicted in the figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
上述各流程和各系统结构图中不是所有的步骤和单元都是必须的,可以根据实际的需要忽略某些步骤或单元。上述各实施例中描述的装置结构可以是物理结构,也可以是逻辑结构,即,有些单元可能由同一物理实体实现,或者,有些单元可能分别由多个物理实体实现,或者,可以由多个独立设备中的某些部件共同实现。Not all steps and units in the above processes and system structure diagrams are necessary, and some steps or units may be omitted according to actual needs. The device structure described in the above embodiments may be a physical structure or a logical structure, that is, some units may be implemented by the same physical entity, or some units may be implemented by multiple physical entities respectively, or may be implemented by multiple physical entities. Some components in separate devices are implemented together.
上面结合附图阐述的具体实施方式描述了示例性实施例,但并不表示可以实现的或者落入权利要求书的保护范围的所有实施例。在整个本说明书中使用的术语“示例性”意味着“用作示例、实例或例示”,并不意味着比其它实施例“优选”或“具有优势”。出于提供对所描述技术的理解的目的,具体实施方式包括具体细节。然而,可以在没有这些具体细节的情况下实施这些技术。在一些实例中,为了避免对所描述的实施例的概念造成难以理解,公知的结构和装置以框图形式示出。The detailed description set forth above in connection with the accompanying drawings describes exemplary embodiments and does not represent all embodiments that may be implemented or fall within the scope of the claims. The term "exemplary" as used throughout this specification means "serving as an example, instance, or illustration" and does not mean "preferred" or "advantage" over other embodiments. The detailed description includes specific details for the purpose of providing an understanding of the described technology. However, these techniques may be practiced without these specific details. In some instances, well-known structures and devices are shown in block diagram form in order to avoid obscuring the concepts of the described embodiments.
本公开内容的上述描述被提供来使得本领域任何普通技术人员能够实现或者使用本公开内容。对于本领域普通技术人员来说,对本公开内容进行的各种修改是显而易见的,并且,也可以在不脱离本公开内容的保护范围的情况下,将本文所定义的一般性原理应用于其它变型。因此,本公开内容并不限于本文所描述的示例和设计,而是与符合本文公开的原理和新颖性特征的最广范围相一致。The above description of the present disclosure is provided to enable any person of ordinary skill in the art to make or use the present disclosure. Various modifications to this disclosure will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other variations without departing from the scope of this disclosure . Thus, the present disclosure is not intended to be limited to the examples and designs described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the scope of the present invention. within the scope of protection.

Claims (12)

  1. 信息处理方法,包括:Information processing methods, including:
    从OPC-UA系统获取源数据模型;Obtain the source data model from the OPC-UA system;
    定义目标系统的目标数据模型的模板,所述模板至少定义所述目标数据模型的格式;以及a template defining a target data model of a target system, the template defining at least the format of the target data model; and
    对所述源数据模型和所述模板进行编译,生成目标数据模型。The source data model and the template are compiled to generate a target data model.
  2. 如权利要求1所述的方法,其中,从OPC-UA系统获取源数据模型进一步包括:The method of claim 1, wherein obtaining the source data model from the OPC-UA system further comprises:
    利用语义查询语言定义查询语句,从所述OPC-UA系统查询所述目标系统所需要的数据作为所述源数据模型。A query statement is defined using a semantic query language, and the data required by the target system is queried from the OPC-UA system as the source data model.
  3. 如权利要求1或2所述的方法,其中,所述目标数据模型包括以下中的至少一项:The method of claim 1 or 2, wherein the target data model includes at least one of the following:
    云平台模型、OPC-UA模型、RDF数据模型、XML数据模型、JSON数据模型。Cloud platform model, OPC-UA model, RDF data model, XML data model, JSON data model.
  4. 如权利要求1或2所述的方法,其中,所述模板是采用逻辑语句实现的动态模板。The method of claim 1 or 2, wherein the template is a dynamic template implemented using logic statements.
  5. 信息处理装置(200),包括:An information processing device (200), comprising:
    源数据模型获取单元(202),被配置为从OPC-UA系统获取源数据模型;a source data model obtaining unit (202), configured to obtain a source data model from the OPC-UA system;
    模板定义单元(204),被配置为定义目标系统的目标数据模型的模板,所述模板至少定义所述目标数据模型的格式;以及a template definition unit (204) configured to define a template of a target data model of a target system, the template defining at least a format of the target data model; and
    目标数据模型生成单元(206),被配置为对所述源数据模型和所述模板进行编译,生成目标数据模型。A target data model generating unit (206) is configured to compile the source data model and the template to generate a target data model.
  6. 如权利要求5所述的装置,其中,所述源数据模型获取单元(202)进一步被配置为:The apparatus of claim 5, wherein the source data model obtaining unit (202) is further configured to:
    利用语义查询语言定义查询语句,从所述OPC-UA系统查询所述目标系统所需要的数据作为所述源数据模型。A query statement is defined using a semantic query language, and the data required by the target system is queried from the OPC-UA system as the source data model.
  7. 如权利要求5或6所述的装置,其中,所述目标数据模型包括以下中的至少一项:The apparatus of claim 5 or 6, wherein the target data model includes at least one of the following:
    云平台模型、OPC-UA模型、RDF数据模型、XML数据模型、JSON数据模型。Cloud platform model, OPC-UA model, RDF data model, XML data model, JSON data model.
  8. 如权利要求5或6所述的装置,其中,所述模板是采用逻辑语句实现的动态模板。The apparatus of claim 5 or 6, wherein the template is a dynamic template implemented using logic statements.
  9. 计算设备(300),包括:A computing device (300) comprising:
    至少一个处理器(302);以及at least one processor (302); and
    与所述至少一个处理器(302)耦合的一个存储器(304),所述存储器用于存储指令,当所述指令被所述至少一个处理器(302)执行时,使得所述处理器(302)执行如权利要求1到4中任意一项所述的方法。a memory (304) coupled to the at least one processor (302) for storing instructions that, when executed by the at least one processor (302), cause the processor (302) ) to perform the method as claimed in any one of claims 1 to 4.
  10. 一种非暂时性机器可读存储介质,其存储有可执行指令,所述指令当被执行时使得所述机器执行如权利要求1到4中任意一项所述的方法。A non-transitory machine-readable storage medium storing executable instructions which, when executed, cause the machine to perform the method of any one of claims 1 to 4.
  11. 一种计算机程序,包括计算机可执行指令,所述计算机可执行指令在被执行时使至少一个处理器执行根据权利要求1至4中任意一项所述的方法。A computer program comprising computer-executable instructions which, when executed, cause at least one processor to perform the method of any one of claims 1 to 4.
  12. 一种计算机程序产品,所述计算机程序产品被有形地存储在计算机可读介质上并且包括计算机可执行指令,所述计算机可执行指令在被执行时使至少一个处理器执行根据权利要求1至4中任意一项所述的方法。A computer program product tangibly stored on a computer-readable medium and comprising computer-executable instructions which, when executed, cause at least one processor to perform the execution according to claims 1 to 4 any of the methods described in .
PCT/CN2021/084629 2021-03-31 2021-03-31 Information processing method and apparatus, and computing device and storage medium WO2022205153A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/084629 WO2022205153A1 (en) 2021-03-31 2021-03-31 Information processing method and apparatus, and computing device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/084629 WO2022205153A1 (en) 2021-03-31 2021-03-31 Information processing method and apparatus, and computing device and storage medium

Publications (1)

Publication Number Publication Date
WO2022205153A1 true WO2022205153A1 (en) 2022-10-06

Family

ID=83455173

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/084629 WO2022205153A1 (en) 2021-03-31 2021-03-31 Information processing method and apparatus, and computing device and storage medium

Country Status (1)

Country Link
WO (1) WO2022205153A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6996589B1 (en) * 2002-01-16 2006-02-07 Convergys Cmg Utah, Inc. System and method for database conversion
CN109765866A (en) * 2019-01-25 2019-05-17 北京交通大学 An industrial network system based on OPC UA and its data processing method
CN109831354A (en) * 2019-01-22 2019-05-31 浙江工业大学 Virtual Debugging system based on OPC UA industry communications protocol
CN110537360A (en) * 2017-04-19 2019-12-03 微软技术许可有限责任公司 Internet of Things PUB-SUB data publisher
CN112363695A (en) * 2020-11-10 2021-02-12 杭州和利时自动化有限公司 PMML file and method for integrating runtime environment thereof with industrial software

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6996589B1 (en) * 2002-01-16 2006-02-07 Convergys Cmg Utah, Inc. System and method for database conversion
CN110537360A (en) * 2017-04-19 2019-12-03 微软技术许可有限责任公司 Internet of Things PUB-SUB data publisher
CN109831354A (en) * 2019-01-22 2019-05-31 浙江工业大学 Virtual Debugging system based on OPC UA industry communications protocol
CN109765866A (en) * 2019-01-25 2019-05-17 北京交通大学 An industrial network system based on OPC UA and its data processing method
CN112363695A (en) * 2020-11-10 2021-02-12 杭州和利时自动化有限公司 PMML file and method for integrating runtime environment thereof with industrial software

Similar Documents

Publication Publication Date Title
US11269694B2 (en) Automated API code generation
US9229697B2 (en) Speculative object shapes
CN108696381B (en) Protocol configuration method and device
US10310828B2 (en) System and method for providing and executing a domain-specific language for cloud services infrastructure
CN106934062A (en) A kind of realization method and system of inquiry elasticsearch
CN110083650A (en) A kind of data-query interfaces automatic generation method and system based on metadata self-discovery
CN108369591B (en) System and method for caching and parameterizing IR
US9967370B2 (en) OData enabled mobile software applications
US9317266B1 (en) Leveraging legacy applications for use with modern applications
CN104461531B (en) A kind of implementation method of reporting system SQL
US20140297675A1 (en) Rdf graphs made of rdf query language queries
JP5677319B2 (en) Web-based diagram visual extensibility
CN105278946A (en) RESTful API visualization method
KR20210141704A (en) Graph representation and description of configuration parameters for media processing functions in network-based media processing (NBMP)
CN113656433B (en) Entity object expansion method, entity object expansion device, electronic equipment and storage medium
WO2015031610A1 (en) Method and apparatus for generating health quality metrics
US10019473B2 (en) Accessing an external table in parallel to execute a query
WO2023130933A1 (en) Model processing method and apparatus, code aquisition method and apparatus, and electronic device
CN114090672A (en) A business data import and export method, system, computer equipment and medium
US20180196646A1 (en) System design apparatus and method
US11106564B2 (en) Deframeworking for static program analysis
WO2022205153A1 (en) Information processing method and apparatus, and computing device and storage medium
TWI643077B (en) Method and adjustment device for adaptively adjusting database structure
WO2016131295A1 (en) Northbound data conversion method and device
EP3123699B1 (en) System and method for supporting data types conversion in a heterogeneous computing environment

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21933818

Country of ref document: EP

Kind code of ref document: A1