Emiliano Viotti
Emiliano Viotti

Reputation: 1709

Primitive types supported by Fiware Orion Context Broker?

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.

This is the only piece of information that I found about that in NGSI docs:

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.

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?

I would appreciate some list like this from FIWARE Cepheus CEP doc.

Thank you very much in advance

Upvotes: 1

Views: 1019

Answers (2)

Jose Manuel Cantera
Jose Manuel Cantera

Reputation: 853

the type is informative as has been said in this thread. You can use any JSON data type: number, string, boolean, array or object to represent your values.

Upvotes: 0

fgalan
fgalan

Reputation: 12322

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

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

Upvotes: 2

Related Questions