Fiware Orion Context Broker支持的基本类型? [英] Primitive types supported by Fiware Orion Context Broker?

查看:56
本文介绍了Fiware Orion Context Broker支持的基本类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经尝试了一段时间,在FIWARE的官方文档中找到了Orion支持的上下文实体属性的原始类型.

I have been trying for some time to find in the official documentation of FIWARE which are the primitive types supported by Orion for the attributes of a context entity.

这是我在 NGSI文档:

属性类型表示属性值的NGSI值类型.请注意,FIWARE NGSI具有自己的属性值类型系统,因此NGSI值类型与JSON类型不同.

The attribute type represents the NGSI value type of the attribute value. Note that FIWARE NGSI has its own type system for attribute values, so NGSI value types are not the same as JSON types.

我尝试使用整数",浮点",文本"之类的类型创建上下文实体,并且一切正常.但是我不知道Orion是否关心属性类型?

I tried to create context entities using types like "integer", "float", "text" and everything works apparently fine. But I dont know if Orion take care about attributes types?

我希望在 FIWARE Cepheus CEP中找到一些类似的列表doc .

非常感谢您

推荐答案

属性类型(以及元数据类型)始终使用JSON字符串作为原始类型.除了在

Attribute types (along with metadata types) are always use JSON string as primitive type. Orion interpret them in an opaque way (i.e. without paying any attention to the type string) except in the cases described in "Special Attribute Types" in the NGSIv2 specification, which are by the time being:

  • DateTime
  • geo:point
  • geo:line
  • geo:box
  • geo:polygon
  • geo:json
  • DateTime
  • geo:point
  • geo:line
  • geo:box
  • geo:polygon
  • geo:json

请参阅参考文档以了解其含义.

Please have a look to the refered documentation to know their meanings.

这篇关于Fiware Orion Context Broker支持的基本类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆