KR102270481B1 - NGSI-LD API Wrapping Method - Google Patents

NGSI-LD API Wrapping Method Download PDF

Info

Publication number
KR102270481B1
KR102270481B1 KR1020190126717A KR20190126717A KR102270481B1 KR 102270481 B1 KR102270481 B1 KR 102270481B1 KR 1020190126717 A KR1020190126717 A KR 1020190126717A KR 20190126717 A KR20190126717 A KR 20190126717A KR 102270481 B1 KR102270481 B1 KR 102270481B1
Authority
KR
South Korea
Prior art keywords
resource
entity
ngsi
property
relationship
Prior art date
Application number
KR1020190126717A
Other languages
Korean (ko)
Other versions
KR20210043865A (en
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 KR1020190126717A priority Critical patent/KR102270481B1/en
Publication of KR20210043865A publication Critical patent/KR20210043865A/en
Application granted granted Critical
Publication of KR102270481B1 publication Critical patent/KR102270481B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/03Protocol definition or specification 
    • H04L67/16
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Abstract

NGSI-LD API 래핑 방법이 제공된다. 본 발명의 실시예에 따른 리소스 래핑 방법은, NGSI-LD의 Entity, Property 및 Relationship을 리소스들로 각각 생성하고, Entity ID를 저장하며 Entity를 지시하는 Entity 리소스를 가리키는 NGSI-LD 리소스를 생성한다. 이에 의해, oneM2M 국제 표준 플랫폼에 NGSI-LD API를 구현하여, oneM2M 플랫폼에 수집된 데이터를 NGSI-LD를 적용한 외부 플랫폼 및 어플리케이션이 활용할 수 있게 된다.An NGSI-LD API wrapping method is provided. In the resource wrapping method according to an embodiment of the present invention, Entity, Property, and Relationship of NGSI-LD are generated as resources, respectively, an Entity ID is stored, and an NGSI-LD resource indicating an Entity resource indicating the Entity is generated. Accordingly, by implementing the NGSI-LD API on the oneM2M international standard platform, the data collected on the oneM2M platform can be utilized by external platforms and applications applying NGSI-LD.

Description

NGSI-LD API 래핑 방법{NGSI-LD API Wrapping Method}NGSI-LD API Wrapping Method

본 발명은 API Wrapping(래핑) 기술에 관한 것으로, 더욱 상세하게는 oneM2M 등과 같은 국제 표준 플랫폼에 NGSI-LD API를 구현하기 위한 API Wrapping 방법에 관한 것이다.The present invention relates to API Wrapping technology, and more particularly, to an API Wrapping method for implementing an NGSI-LD API in an international standard platform such as oneM2M.

NGSI-LD(Next Generation Service Interface - Linked Data)는 종래 OMA의 NGSI-9/10 API에 Linked Data를 지원하기 위한 정보 모델 개념을 추가한 ETSI의 표준 인터페이스로서 다양한 도메인의 데이터 간 관계를 표현할 수 있다. NGSI-LD (Next Generation Service Interface - Linked Data) is a standard interface of ETSI that adds the information model concept to support Linked Data to the NGSI-9/10 API of the conventional OMA. It can express relationships between data in various domains. .

도 1에 NGSI-LD의 정보 모델을 제시하였다. NGSI-LD의 정보 모델은 Entity(엔티티), Property(속성) 및 Relationship(관계)로 구성된다. Entity, Property 및 Relationship에 대한 상세 내용을, 도 2, 도3 및 도 4에 각각 나타내었다.The information model of NGSI-LD is presented in FIG. 1 . The information model of NGSI-LD consists of Entity, Property, and Relationship. Details of Entity, Property, and Relationship are shown in FIGS. 2, 3 and 4, respectively.

NGSI-LD의 정보 모델에서는, Entity 조회 시 Entity에 대한 Property 및 Relationship 정보를 반환하여 준다. 예를 들어, 도 5에 도시된 바와 같이, 자동차, 경찰서, 가로등을 각각 Entity로 구성한 경우, 자동차가 가로등을 들이받는 사고를 낸 경우에, 도 6에 도시된 바와 같이, 자동차 Entity를 조회하여 그에 대한 Property 및 Relationship 정보를 반환하여 주는 것이다.In the information model of NGSI-LD, when searching for an entity, property and relationship information about the entity is returned. For example, as shown in FIG. 5 , when a car, a police station, and a street lamp are each configured as entities, when a car crashes into a street light, as shown in FIG. It returns property and relationship information for

본 발명의 목적은, oneM2M 국제 표준 플랫폼에 수집된 데이터를 NGSI-LD를 적용한 외부 플랫폼 및 어플리케이션이 활용할 수 있도록 하기 위한 방안으로, oneM2M 플랫폼에 NGSI-LD API를 구현하기 위한 API Wrapping 방법을 제공함에 있다.An object of the present invention is to provide an API Wrapping method for implementing the NGSI-LD API in the oneM2M platform as a method for enabling external platforms and applications to which NGSI-LD is applied to utilize data collected on the oneM2M international standard platform. have.

상기 목적을 달성하기 위한 본 발명의 일 실시예에 따른, 리소스 래핑 방법은, 이종 플랫폼의 표준을 따르는 이종 데이터의 Entity, Property 및 Relationship을 리소스들로 각각 생성하는 단계; 및 이종 데이터의 Entity ID를 저장하며, Entity를 지시하는 Entity 리소스를 가리키는 제1 리소스를 생성하는 단계;를 포함한다.According to an embodiment of the present invention for achieving the above object, a resource wrapping method includes: creating entities, properties, and relationships of heterogeneous data conforming to a standard of a heterogeneous platform as resources; and storing an Entity ID of heterogeneous data, and generating a first resource indicating an Entity resource indicating an Entity.

Entity 리소스는, Property를 지시하는 Property 리소스와 Relationship을 지시하는 Relationship 리소스를 하위 리소스로 가질 수 있다.The Entity resource may have a Property resource indicating a Property and a Relationship resource indicating a Relationship as sub-resources.

Property, Relationship을 지시하는 리소스는, 자녀 리소스로, 다른 Property, Relationship을 지시하는 리소스를 가지는 것을 특징으로 하는 리소스 래핑 방법.A resource indicating Property and Relationship is a child resource, and a resource wrapping method, characterized in that it has a resource indicating another Property and Relationship.

Relationship 리소스는, 제1 리소스와 Entity ID가 다른 제2 리소스를 가리킬 수 있다.The relationship resource may refer to a second resource having a different Entity ID from the first resource.

제1 리소스는, Entity ID를 속성으로 저장하고 있으며, Entity, Property, Relationship 리소스는, Entity, Property, Relationship을 나타내는 속성값을 저장할 수 있다.The first resource may store Entity ID as an attribute, and the Entity, Property, and Relationship resource may store attribute values indicating Entity, Property, and Relationship.

본 발명의 실시예에 따른 리소스 래핑 방법은, 조회 요청시, 제1 리소스가 가리키는 Entity 리소스, Entity 리소스가 자녀 리소스로 갖는 Property 리소스, Relationship 리소스의 정보를 응답에 포함시켜 반환하는 단계;를 더 포함할 수 있다.The resource wrapping method according to an embodiment of the present invention includes, when a query is requested, returning information about an Entity resource pointed to by the first resource, a Property resource that the Entity resource has as a child resource, and a Relationship resource in a response; can do.

조회 요청은, 조회 요청을 처리하는 가상 리소스에 수신되고, 가상 리소스의 ID에 추가되는 postfix로 수핼할 절차를 특정할 수 있다.The inquiry request may specify a procedure to be performed by postfix which is received in the virtual resource that processes the inquiry request and is added to the ID of the virtual resource.

한편, 본 발명의 다른 실시예에 따른, M2M 플랫폼은, 외부 기기와 통신하는 통신부; 및 이종 플랫폼의 표준을 따르는 이종 데이터의 Entity, Property 및 Relationship을 리소스들로 각각 생성하고, 이종 데이터의 Entity ID를 저장하며 Entity를 지시하는 Entity 리소스를 가리키는 제1 리소스를 생성하는 프로세서;를 포함한다.On the other hand, according to another embodiment of the present invention, the M2M platform, a communication unit for communicating with an external device; and a processor that generates Entity, Property, and Relationship of heterogeneous data according to the standard of the heterogeneous platform as resources, stores the Entity ID of the heterogeneous data, and generates a first resource pointing to the Entity resource indicating the entity; includes; .

이상 설명한 바와 같이, 본 발명의 실시예들에 따르면, oneM2M 국제 표준 플랫폼에 NGSI-LD API를 구현하여, oneM2M 플랫폼에 수집된 데이터를 NGSI-LD를 적용한 외부 플랫폼 및 어플리케이션이 활용할 수 있게 된다.As described above, according to embodiments of the present invention, by implementing the NGSI-LD API on the oneM2M international standard platform, data collected on the oneM2M platform can be utilized by external platforms and applications to which NGSI-LD is applied.

도 1은 NGSI-LD의 정보 모델,
도 2 내지 도 4는, NGSI-LD의 Entity, Property 및 Relationship에 대한 상세 내용을 나타낸 도면들,
도 5와 도 6은, NGSI-LD에서 정보 조회 및 반환에 대한 설명에 제공되는 도면들,
도 7은 NGSI-LD API의 개념 설명에 제공되는 도면,
도 8과 도 9는, oneM2M 리소스와 NGSI-LD Entity의 매핑 방법의 설명에 제공되는 도면들,
도 10은 NGSI-LD to oneM2M 리소스 경로 매핑 방안을 나타낸 테이블,
도 11은 NGSI-LD API Wrapping을 예시한 도면,
도 12는 oneM2M 표준으로의 NGSI-LD API 매핑 방안을 도시한 도면,
도 13은 NGSI-LD API 호출 시 회신하는 응답 메시지를 예시한 도면,
도 14는 본 발명이 적용 가능한 IoT/M2M 시스템을 도시한 도면, 그리고,
도 15는, 도 14에 도시된 전자 기기들의 내부 블럭도이다.
1 is an information model of NGSI-LD;
2 to 4 are diagrams showing details of Entity, Property, and Relationship of NGSI-LD;
5 and 6 are diagrams provided for explanation of information inquiry and return in NGSI-LD;
7 is a diagram provided in the conceptual description of the NGSI-LD API;
8 and 9 are diagrams provided to explain a mapping method between oneM2M resources and NGSI-LD Entity;
10 is a table showing an NGSI-LD to oneM2M resource path mapping scheme;
11 is a diagram illustrating NGSI-LD API Wrapping;
12 is a diagram illustrating an NGSI-LD API mapping scheme to oneM2M standard;
13 is a diagram illustrating a response message returned when an NGSI-LD API is called;
14 is a view showing an IoT / M2M system to which the present invention is applicable, and,
FIG. 15 is an internal block diagram of the electronic devices shown in FIG. 14 .

이하에서는 도면을 참조하여 본 발명을 보다 상세하게 설명한다.Hereinafter, the present invention will be described in more detail with reference to the drawings.

oneM2M은 IoT 미들웨어 플랫폼 표준 기술로서 IoT 및 스마트시티의 다양한 도메인의 응용 서비스 개발에 활용되고 있다. RESTful 아키텍처를 지향하는 oneM2M 표준은 데이터를 저장하기 위한 리소스를 Content Sharing Resource로 정의하고 있으며 container, contentInstance, flexContainer와 같은 리소스 타입을 활용해 어플리케이션 간 공유 가능한 데이터를 플랫폼에 저장하고 관리 기능을 활용할 수 있다.oneM2M is an IoT middleware platform standard technology and is being used to develop application services in various domains of IoT and smart city. The oneM2M standard that aims for a RESTful architecture defines a resource for storing data as a Content Sharing Resource, and by using resource types such as container, contentInstance, and flexContainer, data that can be shared between applications can be stored on the platform and management functions can be utilized. .

본 발명의 실시예에서는 oneM2M 플랫폼의 추가 인터페이스로서의 NGSI-LD API를 구현하기 위한 방안으로 API Wrapping 설계안을 제시한다. 이를 통해, 도 7에 도시된 바와 같이, oneM2M 플랫폼에 수집된 데이터를 NGSI-LD를 적용한 외부 플랫폼 및 어플리케이션이 활용할 수 있게 된다.In an embodiment of the present invention, an API Wrapping design proposal is presented as a method for implementing the NGSI-LD API as an additional interface of the oneM2M platform. Through this, as shown in FIG. 7 , data collected on the oneM2M platform can be utilized by external platforms and applications to which NGSI-LD is applied.

도 8은 oneM2M 리소스 중 container/contentInstance 리소스와 NGSI-LD Entity의 매핑 방법의 설명에 제공되는 도면이다.8 is a diagram provided to explain a mapping method between a container/contentInstance resource and an NGSI-LD Entity among oneM2M resources.

oneM2M에서 NGSI-LD Entity를 표현하기 위해, 신규 리소스 타입으로 <NGSI-LD> 리소스를 정의하고, Entity, Property 및 Relationship을 리소스들로 각각 생성한다. To express an NGSI-LD Entity in oneM2M, a <NGSI-LD> resource is defined as a new resource type, and Entity, Property, and Relationship are created as resources, respectively.

본 발명의 실시예에서, <NGSI-LD> 리소스는 oneM2M에서 정의한 Data Sharing Resource 중 container/contentInstance 리소스에 매핑된다.In an embodiment of the present invention, the <NGSI-LD> resource is mapped to a container/contentInstance resource among Data Sharing Resources defined by oneM2M.

이 <NGSI-LD> 리소스는 NGSI-LD API에서 정의한 Entity ID를 속성(이를 테면, resourceName)으로 갖고, Entity를 지시하는 <container> 리소스(이를 테면, entityResourceID)를 가리킨다(참조한다).This <NGSI-LD> resource has the Entity ID defined in the NGSI-LD API as an attribute (eg, resourceName), and points to (refer to) a <container> resource (eg, entityResourceID) indicating the Entity.

Entity를 지시하는 <container> 리소스는 Property 및 Relationship을 나타내는 하위 <container> 리소스를 갖는다. 그리고, <container> 리소스들은 Entity, Property, Relationship을 지시하기 위한 속성값(이를 테면, label = ["NGSI-LD Property"])을 갖는다.A <container> resource indicating an Entity has a sub <container> resource indicating a Property and a Relationship. And, <container> resources have attribute values (eg, label = ["NGSI-LD Property"]) for indicating Entity, Property, and Relationship.

oneM2M 플랫폼은 NGSI-LD API에서 정의한 Entity, Property 및 Relationship의 속성값을 해당 <container> 리소스의 자녀 <contentInstance> 리소스로 저장한다.The oneM2M platform stores the attribute values of Entity, Property, and Relationship defined in the NGSI-LD API as a <contentInstance> resource as a child of the <container> resource.

Property나 Relationship을 지시하는 <container> 리소스는 자녀로 다른 Property나 Relationship을 지시하는 <container> 리소스 가질 수 있다. 또한, Relationship을 지시하는 <container> 리소스는 다른 <NGSI-LD> 리소스를 가리킨다.A <container> resource indicating a property or relationship can have a <container> resource indicating another property or relationship as a child. In addition, the <container> resource indicating the relationship points to another <NGSI-LD> resource.

나아가, NGSI-LD Entity를 조회하기 위해, oneM2M에서는 조회용 가상 리소스를 정의한다. 본 발명의 실시예에서, 조회용 가상 리소스는 <NGSI-LD> 리소스의 자녀 리소스(도 8에서는, entity)로 생성한다.Furthermore, in order to inquire NGSI-LD Entity, oneM2M defines a virtual resource for inquiry. In an embodiment of the present invention, the virtual resource for inquiry is created as a child resource (in FIG. 8, an entity) of the <NGSI-LD> resource.

조회용 가상 리소스에 조회 요청 시, <NGSI-LD> 리소스가 가리키는 리소스와 하위 리소스 및 이 리소스들이 가리키고 있는 다른 리소스에 저장되어 있는 Entity, Property, Relationship 정보를 NGSI-LD Entity로 구성하여 반환한다.When requesting a virtual resource for inquiry, the resource and sub-resource pointed to by the <NGSI-LD> resource and the entity, property, and relationship information stored in other resources pointed to by these resources are returned as NGSI-LD Entity.

즉, NGSI-LD API 호출시, oneM2M 플랫폼은 oneM2M 리소스 트리 형식으로 저장된 리소스들을 NGSI-LD Entity로 변환하여 응답을 반환하는 것이다.That is, when calling the NGSI-LD API, the oneM2M platform converts the resources stored in the oneM2M resource tree format into an NGSI-LD Entity and returns a response.

도 9는 oneM2M 리소스 중 <flexContainer> 리소스와 NGSI-LD Entity의 매핑 방법의 설명에 제공되는 도면이다.9 is a diagram provided to explain a mapping method between a <flexContainer> resource among oneM2M resources and an NGSI-LD entity.

본 발명의 실시예에서, <NGSI-LD> 리소스는 oneM2M에서 정의한 Data Sharing Resource 중 <flexContainer> 리소스에 매핑된다.In an embodiment of the present invention, the <NGSI-LD> resource is mapped to the <flexContainer> resource among Data Sharing Resources defined in oneM2M.

이 <NGSI-LD> 리소스는 NGSI-LD API에서 정의한 Entity ID를 속성(이를 테면, resourceName)으로 갖고, Entity를 지시하는 <flexContainer> 리소스(이를 테면, entityResourceID)를 가리킨다.This <NGSI-LD> resource has the Entity ID defined in the NGSI-LD API as an attribute (eg, resourceName) and points to a <flexContainer> resource (eg, entityResourceID) indicating the Entity.

Entity를 지시하는 <flexContainer> 리소스는 Property 및 Relationship을 나타내는 하위 <flexContainer> 리소스를 갖는다. 그리고, <flexContainer> 리소스들은 Entity, Property, Relationship을 지시하기 위한 속성값(이를 테면, label = ["NGSI-LD Property"])을 갖는다.A <flexContainer> resource indicating an Entity has a lower <flexContainer> resource indicating a Property and a Relationship. And, <flexContainer> resources have property values (eg, label = ["NGSI-LD Property"]) for indicating Entity, Property, and Relationship.

oneM2M 플랫폼은 NGSI-LD API에서 정의한 Entity, Property 및 Relationship의 속성값을 해당 <flexContainer> 리소스의 자녀 <flexContainer> 리소스로 저장한다.The oneM2M platform stores the property values of Entity, Property, and Relationship defined in the NGSI-LD API as a <flexContainer> resource as a child of the <flexContainer> resource.

Property나 Relationship을 지시하는 <flexContainer> 리소스는 자녀로 다른 Property나 Relationship을 지시하는 <flexContainer> 리소스 가질 수 있다. 또한, Relationship을 지시하는 <flexContainer> 리소스는 다른 <NGSI-LD> 리소스를 가리킨다.A <flexContainer> resource indicating a property or relationship can have a <flexContainer> resource indicating another property or relationship as a child. In addition, the <flexContainer> resource indicating the relationship points to another <NGSI-LD> resource.

NGSI-LD API를 전술한 oneM2M 리소스 매핑 구조를 통해 지원하기 위한 API 매핑 방안을 도 10에 제시하였다. 도 10은 NGSI-LD to oneM2M 리소스 경로 매핑 방안을 나타낸 테이블이다.An API mapping scheme for supporting the NGSI-LD API through the oneM2M resource mapping structure described above is presented in FIG. 10 . 10 is a table illustrating an NGSI-LD to oneM2M resource path mapping scheme.

여기에서는, NGSI-LD의 temporal, entities 리소스에 대해, 특정한 기능을 제공하는 일종의 API 엔드포인트로서 인스턴스로 생성할 수는 없는 oneM2M의 가상 리소스라는 개념을 적용한다.Here, the concept of a oneM2M virtual resource that cannot be instantiated as a kind of API endpoint that provides a specific function is applied to temporal and entities resources of NGSI-LD.

예를 들어 특정 Entity를 조회하기 위한 NGSI-LD의 /entities/{entityId} 조회 API 요청을 oneM2M 플랫폼이 수신하면, 도 11에 도시된 바와 같이 실제로는 entities 가상 리소스에서 이를 처리하며, 하위 리소스 경로인 /{entityId}에서 리소스 트리에서 entityId에 해당하는 NGSI-LD 리소스를 식별하고 해당 NGSI-LD 리소스에서 Entity, Property, Relationship 정보가 저장된 리소스들을 병합하여 NGSI-LD 엔티티의 JSON-LD 객체를 생성하여 반환한다.For example, when the oneM2M platform receives the /entities/{entityId} query API request of NGSI-LD to inquire a specific entity, as shown in FIG. 11, it is actually processed in the entities virtual resource, and is a sub-resource path. Identifies the NGSI-LD resource corresponding to the entityId in the resource tree in /{entityId}, merges the resources in which Entity, Property, and Relationship information are stored in the NGSI-LD resource to create and return the JSON-LD object of the NGSI-LD entity. do.

그리고, 도 12에 도시된 바와 같이, 가상 리소스 ID에 postfix를 추가로 정의하여 NGSI-LD API 호출을 매핑하고, temporal, entities 가상 리소스를 타겟하여 NGSI-LD API를 호출하도록 할 수 있다.And, as shown in FIG. 12 , an NGSI-LD API call may be mapped by additionally defining a postfix in the virtual resource ID, and the NGSI-LD API may be called by targeting temporal and entities virtual resources.

이 경우 가상 리소스 이름 이후에 오는 postfix에 의해 정해진 절차를 수행한다. 즉, 매핑된 oneM2M 리소스별로 상이한 동작(attribute 수정을 contentInstance 신규 생성, flexContainer는 갱신)이 수행되고, NGSI-LD API에서 정의한 Query 수행(예: /entities/에 Query와 함께 조회하여 필터링된 엔티티만 조회)이 가능하다.In this case, the procedure determined by postfix that comes after the virtual resource name is performed. In other words, different actions are performed for each mapped oneM2M resource (modify attribute, create new contentInstance, update flexContainer), and perform Query defined in NGSI-LD API (e.g., query in /entities/ with Query to inquire only filtered entities) ) is possible.

지금까지, oneM2M 국제 표준 플랫폼에 수집된 데이터를 NGSI-LD를 적용한 외부 플랫폼 및 어플리케이션이 활용할 수 있도록 하기 위한 방안으로, oneM2M 플랫폼에 NGSI-LD API를 구현하기 위한 API Wrapping 방법에 대해 바람직한 실시예를 들어 상세히 설명하였다.So far, a preferred embodiment of the API Wrapping method for implementing the NGSI-LD API in the oneM2M platform is a method to enable external platforms and applications to which NGSI-LD is applied to utilize the data collected on the oneM2M international standard platform. has been described in detail.

한편, NGSI-LD API 호출 시(요청 메시지 전송 시), 기존 oneM2M API와 NGSI-LD API를 구분하기 위한 방법이 필요하다. 이를 위해, NGSI-LD API를 위한 prefix로 리소스 경로를 구분할 수 있다(예: ngsi-ld/entities/entity_001). 또한, 요청 메시지 파라미터로 구분할 수 있다(예: NGSI-LD-Request: True). 그리고, NGSI-LD API의 쿼리는 NGSI-LD API 호출 시에만 사용 가능하도록 하고, oneM2M의 Query String 파라미터로 매핑할 수도 있다.On the other hand, when calling the NGSI-LD API (when sending a request message), a method for distinguishing between the existing oneM2M API and the NGSI-LD API is required. For this, a resource path can be distinguished by a prefix for the NGSI-LD API (eg, ngsi-ld/entities/entity_001). In addition, it can be classified by the request message parameter (eg, NGSI-LD-Request: True). In addition, the query of the NGSI-LD API can be used only when the NGSI-LD API is called, and it can also be mapped as a Query String parameter of oneM2M.

또한, NGSI-LD API 호출 시 응답 메시지 회신은, oneM2M 기존 응답 메시지 형식으로 회신하되, 도 13에 도시된 바와 같이, Response Status Code 응답 메시지 파라미터 값을 NGSI-LD의 처리 결과와 매핑하여 설정하고, Content 응답 메시지 파라미터에 NGSI-LD 응답 메시지를 포함시킬 수 있다.In addition, when the NGSI-LD API is called, the response message is returned in the oneM2M existing response message format, but as shown in FIG. 13, the Response Status Code response message parameter value is mapped with the processing result of the NGSI-LD and set, The NGSI-LD response message can be included in the Content response message parameter.

도 14는 본 발명이 적용 가능한 IoT/M2M 시스템을 도시한 도면이다. 본 발명이 적용 가능한 IoT/M2M 시스템은, 도 14에 도시된 바와 같이, 서버(100-1), 게이트웨이(100-21, 100-22), 디바이스(100-31, 100-32, 100-33, 100-34)와 같은 다양한 전자 기기들이 상호 통신가능하도록 연결되어 구축된다.14 is a diagram illustrating an IoT/M2M system to which the present invention is applicable. As shown in FIG. 14 , the IoT/M2M system to which the present invention is applicable includes a server 100-1, a gateway 100-21, 100-22, and a device 100-31, 100-32, 100-33. , 100-34) are connected and constructed so that various electronic devices can communicate with each other.

도 14에 도시된 전자 기기들의 개수, 이를 테면, IoT/M2M 시스템을 구성하는 서버(100-1), 게이트웨이(100-21, 100-22) 및 디바이스(100-31, 100-32, 100-33, 100-34)의 대수는 예시적인 것이므로, 이와 다르게 구현하는 경우도 본 발명의 기술적 사상이 적용될 수 있다.The number of electronic devices shown in FIG. 14, for example, the server 100-1, the gateways 100-21, 100-22, and the devices 100-31, 100-32, 100- that constitute the IoT/M2M system 33, 100-34) are exemplary, and therefore, the technical idea of the present invention can be applied even when implemented differently.

나아가, 도 14에 도시된 전자 기기들의 연결 구조 역시, 필요에 따라 다른 방식으로 대체될 수 있음은 물론이다.Furthermore, it goes without saying that the connection structure of the electronic devices shown in FIG. 14 may also be replaced by other methods, if necessary.

도 14에 도시된 모든 전자 기기들은, 전술한 oneM2M 플랫폼으로써 기능을 수행할 수 있다. 즉, 서버(100-1), 게이트웨이(100-21, 100-22), 디바이스(100-31, 100-32, 100-33, 100-34) 모두 본 발명의 실시예에 따른 NGSI-LD API를 지원할 수 있는 것이다.All of the electronic devices shown in FIG. 14 may function as the oneM2M platform described above. That is, the server 100-1, the gateways 100-21, 100-22, and the devices 100-31, 100-32, 100-33, and 100-34 are all NGSI-LD APIs according to an embodiment of the present invention. that can support

도 15는, 도 14에 도시된 전자 기기들의 내부 블럭도이다. 본 발명의 실시예를 구현함에 있어 필요한 구성들은 서버(100-1), 게이트웨이(100-21, 100-22), 디바이스(100-31, 100-32, 100-33, 100-34) 모두가 공통된다. 따라서, 도 15에서는 이들을 참조 부호 "100"으로 통칭하여 도시하였으며, 이하에서 전자 기기로 통칭한다.FIG. 15 is an internal block diagram of the electronic devices shown in FIG. 14 . Configurations necessary for implementing an embodiment of the present invention are the server 100-1, the gateways 100-21, 100-22, and the devices 100-31, 100-32, 100-33, 100-34. common Accordingly, in FIG. 15 , these are collectively referred to as “100”, and hereinafter will be collectively referred to as an electronic device.

도 15에 도시된 바와 같이, 본 발명의 다른 실시예에 따른 전자 기기들은, 통신부(110), 프로세서(120), 저장부(130) 및 기능 블록(140)을 포함한다.As shown in FIG. 15 , electronic devices according to another embodiment of the present invention include a communication unit 110 , a processor 120 , a storage unit 130 , and a function block 140 .

통신부(110)는 외부 기기와 통신하고 외부 네트워크에 액세스하기 위한 통신 인터페이스 수단이다. The communication unit 110 is a communication interface means for communicating with an external device and accessing an external network.

프로세서(120)는 적어도 하나의 AE(Application Entitr)와 CSE(Common Service Entity)를 포함한다. 전자 기기의 종류와 기능에 따라서는, AE가 포함되지 않을 수도 있다.The processor 120 includes at least one Application Entity (AE) and a Common Service Entity (CSE). Depending on the type and function of the electronic device, AE may not be included.

프로세서(120)의 위에서 제시한 NGSI-LD API를 지원하기 위해 필요한 절차들을 수행하며, 저장부(130)는 프로세서(120)가 해당 서비스를 제공함에 있어 필요한 저장 공간을 제공한다.The processor 120 performs procedures necessary to support the NGSI-LD API presented above, and the storage unit 130 provides a storage space necessary for the processor 120 to provide a corresponding service.

기능 블록(140)은 전자 기기 본연의 기능을 수행한다. 이를 테면, 전자 기기가 서버(100-1)인 경우, 사용자 서비스를 제공하는 가상 머신들이 기능 블록(140)에 해당한다.The function block 140 performs an original function of the electronic device. For example, when the electronic device is the server 100 - 1 , virtual machines providing user services correspond to the function block 140 .

한편, 본 실시예에 따른 장치와 방법의 기능을 수행하게 하는 컴퓨터 프로그램을 수록한 컴퓨터로 읽을 수 있는 기록매체에도 본 발명의 기술적 사상이 적용될 수 있음은 물론이다. 또한, 본 발명의 다양한 실시예에 따른 기술적 사상은 컴퓨터로 읽을 수 있는 기록매체에 기록된 컴퓨터로 읽을 수 있는 코드 형태로 구현될 수도 있다. 컴퓨터로 읽을 수 있는 기록매체는 컴퓨터에 의해 읽을 수 있고 데이터를 저장할 수 있는 어떤 데이터 저장 장치이더라도 가능하다. 예를 들어, 컴퓨터로 읽을 수 있는 기록매체는 ROM, RAM, CD-ROM, 자기 테이프, 플로피 디스크, 광디스크, 하드 디스크 드라이브, 등이 될 수 있음은 물론이다. 또한, 컴퓨터로 읽을 수 있는 기록매체에 저장된 컴퓨터로 읽을 수 있는 코드 또는 프로그램은 컴퓨터간에 연결된 네트워크를 통해 전송될 수도 있다.On the other hand, it goes without saying that the technical idea of the present invention can also be applied to a computer-readable recording medium containing a computer program for performing the functions of the apparatus and method according to the present embodiment. In addition, the technical ideas according to various embodiments of the present invention may be implemented in the form of computer-readable codes recorded on a computer-readable recording medium. The computer-readable recording medium may be any data storage device readable by the computer and capable of storing data. For example, the computer-readable recording medium may be a ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical disk, hard disk drive, or the like. In addition, the computer-readable code or program stored in the computer-readable recording medium may be transmitted through a network connected between computers.

또한, 이상에서는 본 발명의 바람직한 실시예에 대하여 도시하고 설명하였지만, 본 발명은 상술한 특정의 실시예에 한정되지 아니하며, 청구범위에서 청구하는 본 발명의 요지를 벗어남이 없이 당해 발명이 속하는 기술분야에서 통상의 지식을 가진자에 의해 다양한 변형실시가 가능한 것은 물론이고, 이러한 변형실시들은 본 발명의 기술적 사상이나 전망으로부터 개별적으로 이해되어져서는 안될 것이다.In addition, although preferred embodiments of the present invention have been illustrated and described above, the present invention is not limited to the specific embodiments described above, and the technical field to which the present invention belongs without departing from the gist of the present invention as claimed in the claims Various modifications are possible by those of ordinary skill in the art, and these modifications should not be individually understood from the technical spirit or prospect of the present invention.

NGSI-LD : Next Generation Service Interface - Linked Data
Entity : 엔티티
Property : 속성
Relationship : 관계
container, contentInstance, flexContainer : oneM2M 리소스
temporal, entities : NGSI-LD 리소스
NGSI-LD : Next Generation Service Interface - Linked Data
Entity: entity
Property : Property
Relationship: relationship
container, contentInstance, flexContainer : oneM2M resource
temporal, entities : NGSI-LD resource

Claims (8)

NGSI-LD(Next Generation Service Interface - Linked Data) 플랫폼의 표준을 따르는 NGSI-LD 데이터의 Entity, Property 및 Relationship을 리소스들로 각각 생성하는 단계; 및
NGSI-LD 데이터의 Entity ID를 저장하며, Entity를 지시하는 Entity 리소스를 가리키는 제1 리소스를 생성하는 단계;를 포함하고,
Entity 리소스는,
Property를 지시하는 Property 리소스와 Relationship을 지시하는 Relationship 리소스를 하위 리소스로 갖으며,
Property, Relationship을 지시하는 리소스는,
자녀 리소스로, 다른 Property, Relationship을 지시하는 리소스를 가지는 것을 특징으로 하는 리소스 래핑 방법.
NGSI-LD (Next Generation Service Interface - Linked Data) generating the Entity, Property, and Relationship of NGSI-LD data according to the standard of the platform as resources, respectively; and
Storing the Entity ID of the NGSI-LD data, and generating a first resource pointing to an Entity resource indicating the Entity;
Entity resources are:
It has a Property resource indicating Property and a Relationship resource indicating Relationship as sub-resources,
Resources indicating Property and Relationship are,
A resource wrapping method, characterized in that it has resources indicating other properties and relationships as child resources.
삭제delete 삭제delete 청구항 1에 있어서,
Relationship 리소스는,
제1 리소스와 Entity ID가 다른 제2 리소스를 가리키는 것을 특징으로 하는 리소스 래핑 방법.
The method according to claim 1,
Relationship resources are:
A resource wrapping method, characterized in that the first resource and the Entity ID point to a different second resource.
청구항 4에 있어서,
제1 리소스는,
Entity ID를 속성으로 저장하고 있으며,
Entity, Property, Relationship 리소스는,
Entity, Property, Relationship을 나타내는 속성값을 저장하고 있는 것을 특징으로 하는 리소스 래핑 방법.
5. The method according to claim 4,
The first resource is
Entity ID is stored as a property,
Entity, Property, and Relationship resources are,
A resource wrapping method, characterized in that it stores property values representing Entity, Property, and Relationship.
청구항 4에 있어서,
조회 요청시, 제1 리소스가 가리키는 Entity 리소스, Entity 리소스가 자녀 리소스로 갖는 Property 리소스, Relationship 리소스의 정보를 응답에 포함시켜 반환하는 단계;를 더 포함하는 것을 특징으로 하는 리소스 래핑 방법.
5. The method according to claim 4,
When a query is requested, returning information on the Entity resource pointed to by the first resource, the Property resource that the Entity resource has as a child resource, and the Relationship resource in a response; Resource wrapping method further comprising a.
청구항 6에 있어서,
조회 요청은,
조회 요청을 처리하는 가상 리소스에 수신되고, 가상 리소스의 ID에 추가되는 postfix로 수행할 절차를 특정하는 것을 특징으로 하는 리소스 래핑 방법.
7. The method of claim 6,
The inquiry request is
A resource wrapping method, comprising specifying a procedure to be performed with postfix received on a virtual resource that handles a lookup request and appended to the ID of the virtual resource.
외부 기기와 통신하는 통신부; 및
NGSI-LD(Next Generation Service Interface - Linked Data) 플랫폼의 표준을 따르는 NGSI-LD 데이터의 Entity, Property 및 Relationship을 리소스들로 각각 생성하고, NGSI-LD 데이터의 Entity ID를 저장하며 Entity를 지시하는 Entity 리소스를 가리키는 제1 리소스를 생성하는 프로세서;를 포함하고,
Entity 리소스는,
Property를 지시하는 Property 리소스와 Relationship을 지시하는 Relationship 리소스를 하위 리소스로 갖으며,
Property, Relationship을 지시하는 리소스는,
자녀 리소스로, 다른 Property, Relationship을 지시하는 리소스를 가지는 것을 특징으로 하는 M2M 플랫폼.
a communication unit communicating with an external device; and
Entity that creates Entity, Property, and Relationship of NGSI-LD data according to the NGSI-LD (Next Generation Service Interface - Linked Data) platform standard as resources, stores the Entity ID of NGSI-LD data, and indicates the entity A processor that generates a first resource pointing to the resource; includes;
Entity resources are:
It has a Property resource indicating Property and a Relationship resource indicating Relationship as sub-resources,
Resources indicating Property and Relationship are,
M2M platform, characterized in that it has resources indicating other properties and relationships as child resources.
KR1020190126717A 2019-10-14 2019-10-14 NGSI-LD API Wrapping Method KR102270481B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020190126717A KR102270481B1 (en) 2019-10-14 2019-10-14 NGSI-LD API Wrapping Method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020190126717A KR102270481B1 (en) 2019-10-14 2019-10-14 NGSI-LD API Wrapping Method

Publications (2)

Publication Number Publication Date
KR20210043865A KR20210043865A (en) 2021-04-22
KR102270481B1 true KR102270481B1 (en) 2021-06-29

Family

ID=75731167

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020190126717A KR102270481B1 (en) 2019-10-14 2019-10-14 NGSI-LD API Wrapping Method

Country Status (1)

Country Link
KR (1) KR102270481B1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102476744B1 (en) * 2021-10-19 2022-12-12 한국전자기술연구원 Data interworking method between oneM2M system and NGSI-LD system
WO2023080261A1 (en) * 2021-11-02 2023-05-11 한국전자기술연구원 Method for linkage between onem2m and ngsi-ld standard platforms using semantic ontology
WO2023128141A1 (en) * 2021-12-30 2023-07-06 한국전자기술연구원 Method of preventing overlap of data retrieval request for collecting distributed data in multi-data platform distributed environment
WO2023128006A1 (en) * 2021-12-30 2023-07-06 한국전자기술연구원 Data request processing method based on cached data platform information in multiple data platform distributed environment
KR102406979B1 (en) * 2021-12-30 2022-06-10 한국전자기술연구원 Data request processing method based on cached data platform information in distributed data platform environment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130324260A1 (en) 2012-06-01 2013-12-05 Zynga Inc. Cross-promotion api
KR101845195B1 (en) * 2017-03-30 2018-04-05 전자부품연구원 Multiple Resource Subscriptions Association Method in an M2M system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9397878B2 (en) * 2013-01-29 2016-07-19 Qualcomm Incorporated Cross-platform module that is shared by client applications for access to rich communications suite resources on a client device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130324260A1 (en) 2012-06-01 2013-12-05 Zynga Inc. Cross-promotion api
KR101845195B1 (en) * 2017-03-30 2018-04-05 전자부품연구원 Multiple Resource Subscriptions Association Method in an M2M system

Also Published As

Publication number Publication date
KR20210043865A (en) 2021-04-22

Similar Documents

Publication Publication Date Title
KR102270481B1 (en) NGSI-LD API Wrapping Method
US11095711B2 (en) DNS Resolution of internal tenant-specific domain addresses in a multi-tenant computing environment
US20210320896A1 (en) Domain name server allocation method and apparatus
WO2015081786A1 (en) Method and apparatus for implementing subscription notification
US8489637B2 (en) User-based DNS server access control
CN108255615A (en) Across language call method, server and storage medium
CN110198530B (en) Flow-free service scheduling processing method, device, equipment and storage medium
CN104378452A (en) Method, device and system for domain name resolution
CN105450585A (en) Information transmission method and device
CN104123313B (en) Obtain the method and server of guide to visitors information
CN110851082A (en) Container butt joint optical fiber network storage method
CN108207012A (en) A kind of flow control methods, device, terminal and system
CN204695386U (en) Towards the management information system of many tenants
CN103618758B (en) Web server and system resource access control method thereof
CN110049503B (en) Method and equipment for acquiring data
CN113556359A (en) Communication protocol conversion method, device, system and gateway device
KR20190103585A (en) Semantic Resource Discovery Method in M2M System
WO2017000669A1 (en) Centralised management control method, apparatus, and related device for domain name resource record caching
CN108241696A (en) Obtain the method, apparatus and system of map datum
US11205049B2 (en) Method for managing semantic information on M2M/IoT platform
CN113497764B (en) Service routing method, system, computer storage medium and electronic device
CN106326296A (en) Data query method and device
CN101640701A (en) Method for inquiring telephone number mapping domain name server Enumdns
KR102108651B1 (en) Method for interlocking M2M platform using LoRa communication and system using the same
KR102433954B1 (en) NGSI-LD API Subscription Wrapping Method

Legal Events

Date Code Title Description
E701 Decision to grant or registration of patent right
GRNT Written decision to grant