问题描述
我已经尝试了一段时间,在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文档:
我尝试使用整数",浮点",文本"之类的类型创建上下文实体,并且一切正常.但是我不知道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字符串作为原始类型.除了在 NGSIv2规范,目前是:
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支持的基本类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!