documento generado automáticamente
Descripción global: Este Recurso especifica el color real en el espacio RGB representado como una matriz de enteros.Cada valor de color se describe con un componente Rojo, Verde, Azul.Estos valores de color se codifican como una matriz de valores enteros ([R,G,B]).El valor de color mínimo y máximo por componente puede describirse mediante la Propiedad 'range'.Cuando se omite 'range', entonces el 'range' es [0,255].
versión: 0.0.1
[*] Si no hay un tipo en un atributo es porque puede tener varios tipos o diferentes formatos/patrones.
address[object]
: La dirección postal . Model: https://schema.org/addressaddressCountry[string]
: El país. Por ejemplo, España . Model: https://schema.org/addressCountryaddressLocality[string]
: La localidad en la que se encuentra la dirección postal, y que está en la región . Model: https://schema.org/addressLocalityaddressRegion[string]
: La región en la que se encuentra la localidad, y que está en el país . Model: https://schema.org/addressRegiondistrict[string]
: Un distrito es un tipo de división administrativa que, en algunos países, gestiona el gobierno localpostOfficeBoxNumber[string]
: El número del apartado de correos para las direcciones de apartados postales. Por ejemplo, 03578 . Model: https://schema.org/postOfficeBoxNumberpostalCode[string]
: El código postal. Por ejemplo, 24004 . Model: https://schema.org/https://schema.org/postalCodestreetAddress[string]
: La dirección . Model: https://schema.org/streetAddressstreetNr[string]
: Número que identifica una propiedad específica en una vía pública
alternateName[string]
: Un nombre alternativo para este artículoareaServed[string]
: La zona geográfica en la que se presta un servicio o se ofrece un artículo . Model: https://schema.org/TextdataProvider[string]
: Una secuencia de caracteres que identifica al proveedor de la entidad de datos armonizadadateCreated[date-time]
: Fecha de creación de la entidad. Normalmente será asignada por la plataforma de almacenamientodateModified[date-time]
: Marca de tiempo de la última modificación de la entidad. Suele ser asignada por la plataforma de almacenamientodescription[string]
: Descripción de este artículoid[*]
: Identificador único de la entidadif[array]
: El conjunto de interfaces OCF que admite este recursolocation[*]
: Referencia Geojson al elemento. Puede ser Point, LineString, Polygon, MultiPoint, MultiLineString o MultiPolygon.n[string]
: Nombre descriptivo del recursoname[string]
: El nombre de este artículoowner[array]
: Una lista que contiene una secuencia de caracteres codificada en JSON que hace referencia a los identificadores únicos de los propietarios.range[array]
: El rango válido para la Propiedad en el Recurso como un entero. El primer valor de la matriz es el valor mínimo, el segundo valor de la matriz es el valor máximorgbValue[array]
: El valor RGB; el primer elemento es el R, el segundo el G, el tercero el Brt[array]
: El tipo de recursoseeAlso[*]
: lista de uri que apuntan a recursos adicionales sobre el artículosource[string]
: Secuencia de caracteres que indica la fuente original de los datos de la entidad en forma de URL. Se recomienda que sea el nombre de dominio completo del proveedor de origen o la URL del objeto de origen.step[number]
: Valor de paso a través del rango definido cuando el rango es un número entero. Este es el incremento para valores válidos a través del rango; así que si el rango es 0..10 y el paso es 2 entonces los valores válidos son 0,2,4,6,8,10type[string]
: Tipo de entidad NGSI. Tiene que ser ColourRGB
Propiedades requeridas
id
rgbValue
type
Modelo de datos adaptado del original creado por la Open Connectivity Foundation. Repositorio original en https://github.com/openconnectivityfoundation/IoTDataModels
Ordenados alfabéticamente (pulse para más detalles)
full yaml details
ColourRGB:
description: 'This Resource specifies the actual colour in the RGB space represented as an array of integers.Each colour value is described with a Red, Green, Blue component.These colour values are encoded as an array of integer values ([R,G,B]).The minimum and maximum colour value per component may be described by the Property ''range''.When ''range'' is omitted, then the ''range'' is [0,255].'
properties:
address:
description: The mailing address
properties:
addressCountry:
description: 'The country. For example, Spain'
type: string
x-ngsi:
model: https://schema.org/addressCountry
type: Property
addressLocality:
description: 'The locality in which the street address is, and which is in the region'
type: string
x-ngsi:
model: https://schema.org/addressLocality
type: Property
addressRegion:
description: 'The region in which the locality is, and which is in the country'
type: string
x-ngsi:
model: https://schema.org/addressRegion
type: Property
district:
description: 'A district is a type of administrative division that, in some countries, is managed by the local government'
type: string
x-ngsi:
type: Property
postOfficeBoxNumber:
description: 'The post office box number for PO box addresses. For example, 03578'
type: string
x-ngsi:
model: https://schema.org/postOfficeBoxNumber
type: Property
postalCode:
description: 'The postal code. For example, 24004'
type: string
x-ngsi:
model: https://schema.org/https://schema.org/postalCode
type: Property
streetAddress:
description: The street address
type: string
x-ngsi:
model: https://schema.org/streetAddress
type: Property
streetNr:
description: Number identifying a specific property on a public street
type: string
x-ngsi:
type: Property
type: object
x-ngsi:
model: https://schema.org/address
type: Property
alternateName:
description: An alternative name for this item
type: string
x-ngsi:
type: Property
areaServed:
description: The geographic area where a service or offered item is provided
type: string
x-ngsi:
model: https://schema.org/Text
type: Property
dataProvider:
description: A sequence of characters identifying the provider of the harmonised data entity
type: string
x-ngsi:
type: Property
dateCreated:
description: Entity creation timestamp. This will usually be allocated by the storage platform
format: date-time
type: string
x-ngsi:
type: Property
dateModified:
description: Timestamp of the last modification of the entity. This will usually be allocated by the storage platform
format: date-time
type: string
x-ngsi:
type: Property
description:
description: A description of this item
type: string
x-ngsi:
type: Property
id:
anyOf:
- description: Identifier format of any NGSI entity
maxLength: 256
minLength: 1
pattern: ^[\w\-\.\{\}\$\+\*\[\]`|~^@!,:\\]+$
type: string
x-ngsi:
type: Property
- description: Identifier format of any NGSI entity
format: uri
type: string
x-ngsi:
type: Property
description: Unique identifier of the entity
x-ngsi:
type: Property
if:
description: The OCF Interface set supported by this Resource
items:
enum:
- oic.if.a
- oic.if.baseline
type: string
minItems: 2
readOnly: true
type: array
uniqueItems: true
x-ngsi:
type: Property
location:
description: 'Geojson reference to the item. It can be Point, LineString, Polygon, MultiPoint, MultiLineString or MultiPolygon'
oneOf:
- description: Geojson reference to the item. Point
properties:
bbox:
items:
type: number
minItems: 4
type: array
coordinates:
items:
type: number
minItems: 2
type: array
type:
enum:
- Point
type: string
required:
- type
- coordinates
title: GeoJSON Point
type: object
x-ngsi:
type: GeoProperty
- description: Geojson reference to the item. LineString
properties:
bbox:
items:
type: number
minItems: 4
type: array
coordinates:
items:
items:
type: number
minItems: 2
type: array
minItems: 2
type: array
type:
enum:
- LineString
type: string
required:
- type
- coordinates
title: GeoJSON LineString
type: object
x-ngsi:
type: GeoProperty
- description: Geojson reference to the item. Polygon
properties:
bbox:
items:
type: number
minItems: 4
type: array
coordinates:
items:
items:
items:
type: number
minItems: 2
type: array
minItems: 4
type: array
type: array
type:
enum:
- Polygon
type: string
required:
- type
- coordinates
title: GeoJSON Polygon
type: object
x-ngsi:
type: GeoProperty
- description: Geojson reference to the item. MultiPoint
properties:
bbox:
items:
type: number
minItems: 4
type: array
coordinates:
items:
items:
type: number
minItems: 2
type: array
type: array
type:
enum:
- MultiPoint
type: string
required:
- type
- coordinates
title: GeoJSON MultiPoint
type: object
x-ngsi:
type: GeoProperty
- description: Geojson reference to the item. MultiLineString
properties:
bbox:
items:
type: number
minItems: 4
type: array
coordinates:
items:
items:
items:
type: number
minItems: 2
type: array
minItems: 2
type: array
type: array
type:
enum:
- MultiLineString
type: string
required:
- type
- coordinates
title: GeoJSON MultiLineString
type: object
x-ngsi:
type: GeoProperty
- description: Geojson reference to the item. MultiLineString
properties:
bbox:
items:
type: number
minItems: 4
type: array
coordinates:
items:
items:
items:
items:
type: number
minItems: 2
type: array
minItems: 4
type: array
type: array
type: array
type:
enum:
- MultiPolygon
type: string
required:
- type
- coordinates
title: GeoJSON MultiPolygon
type: object
x-ngsi:
type: GeoProperty
x-ngsi:
type: GeoProperty
n:
description: Friendly name of the Resource
maxLength: 64
readOnly: true
type: string
x-ngsi:
type: Property
name:
description: The name of this item
type: string
x-ngsi:
type: Property
owner:
description: A List containing a JSON encoded sequence of characters referencing the unique Ids of the owner(s)
items:
anyOf:
- description: Identifier format of any NGSI entity
maxLength: 256
minLength: 1
pattern: ^[\w\-\.\{\}\$\+\*\[\]`|~^@!,:\\]+$
type: string
x-ngsi:
type: Property
- description: Identifier format of any NGSI entity
format: uri
type: string
x-ngsi:
type: Property
description: Unique identifier of the entity
x-ngsi:
type: Property
type: array
x-ngsi:
type: Property
range:
description: 'The valid range for the Property in the Resource as an integer. The first value in the array is the minimum value, the second value in the array is the maximum value'
items:
type: integer
maxItems: 2
minItems: 2
readOnly: true
type: array
x-ngsi:
type: Property
rgbValue:
description: 'The RGB value; the first item is the R, second the G, third the B'
items:
type: integer
maxItems: 3
minItems: 3
type: array
x-ngsi:
type: Property
rt:
description: The Resource Type
items:
enum:
- oic.r.colour.rgb
maxLength: 64
type: string
minItems: 1
readOnly: true
type: array
uniqueItems: true
x-ngsi:
type: Property
seeAlso:
description: list of uri pointing to additional resources about the item
oneOf:
- items:
format: uri
type: string
minItems: 1
type: array
- format: uri
type: string
x-ngsi:
type: Property
source:
description: 'A sequence of characters giving the original source of the entity data as a URL. Recommended to be the fully qualified domain name of the source provider, or the URL to the source object'
type: string
x-ngsi:
type: Property
step:
description: 'Step value across the defined range when the range is an integer. This is the increment for valid values across the range; so if range is 0..10 and step is 2 then valid values are 0,2,4,6,8,10'
readOnly: true
type: number
x-ngsi:
type: Property
type:
description: NGSI entity type. It has to be ColourRGB
enum:
- ColourRGB
type: string
x-ngsi:
type: Property
required:
- rgbValue
- id
- type
type: object
x-derived-from: https://raw.githubusercontent.com/openconnectivityfoundation/IoTDataModels/master/ColourRGBResURI.swagger.json
x-disclaimer: 'Redistribution and use in source and binary forms, with or without modification, are permitted provided that the license conditions are met. Copyleft (c) 2022 Contributors to Smart Data Models Program'
x-license-url: https://github.com/smart-data-models/dataModel.OCF/blob/master/ColourRGB/LICENSE.md
x-model-schema: https://smart-data-models.github.io/dataModel.OCF/ColourRGB/schema.json
x-model-tags: OCF
x-version: 0.0.1
He aquí un ejemplo de un ColourRGB en formato JSON-LD como key-values. Esto es compatible con NGSI-v2 cuando se utiliza options=keyValues
y devuelve los datos de contexto de una entidad individual.
show/hide example
{
"id": "urn:ngsi-ld:ColourRGB:id:KJWY:68382916",
"dateCreated": "2006-08-05T19:36:08Z",
"dateModified": "1995-09-26T08:55:09Z",
"source": "That line reveal big. Reach picture feel note",
"name": "Need Republican nice risk. Evening Republican right then. Trade team less research.",
"alternateName": "Name five now ahead attack. Continue vote behavior a maintain. Himself if Congress large land education.",
"description": "Myself risk finally this discussion. Citizen beautiful want room force sure draw several.",
"dataProvider": "Watch author own stop east point.",
"owner": [
"urn:ngsi-ld:ColourRGB:items:WTEF:42428519",
"urn:ngsi-ld:ColourRGB:items:BGJN:78474606"
],
"seeAlso": [
"urn:ngsi-ld:ColourRGB:items:YDVE:88023157"
],
"location": {
"type": "Point",
"coordinates": [
37.353019,
142.932264
]
},
"address": {
"streetAddress": "Carry thing probably consumer billion less. Account source against. Affect keep happy election cell not.",
"addressLocality": "Important if before senior. Baby prevent possible behavior dark place",
"addressRegion": "Money sing body natural development. Environmental PM chance call son.",
"addressCountry": "Camera foreign behind short prepare already field. Various pick stock year.",
"postalCode": "Discover act feeling control beat newspaper. Wind",
"postOfficeBoxNumber": "West environment appear toward fish. Structure consider early. These first until place character.",
"streetNr": "Over true plant sit pattern. Field also rule program big loss song.",
"district": "Science through own. Surface very hand house."
},
"areaServed": "Establish president meeti",
"rt": [
"oic.r.colour.rgb"
],
"rgbValue": [
864,
864,
864
],
"n": "American whole magazine truth stop w",
"range": [
864,
864
],
"step": 864,
"if": [
"oic.if.baseline",
"oic.if.a"
],
"type": "ColourRGB"
}
He aquí un ejemplo de un ColourRGB en formato JSON-LD normalizado. Esto es compatible con NGSI-v2 cuando no se utilizan opciones y devuelve los datos de contexto de una entidad individual.
show/hide example
{
"id": "urn:ngsi-ld:ColourRGB:id:KJWY:68382916",
"dateCreated": {
"type": "DateTime",
"value": "2006-08-05T19:36:08Z"
},
"dateModified": {
"type": "DateTime",
"value": "1995-09-26T08:55:09Z"
},
"source": {
"type": "Text",
"value": "That line reveal big. Reach picture feel note"
},
"name": {
"type": "Text",
"value": "Need Republican nice risk. Evening Republican right then. Trade team less research."
},
"alternateName": {
"type": "Text",
"value": "Name five now ahead attack. Continue vote behavior a maintain. Himself if Congress large land education."
},
"description": {
"type": "Text",
"value": "Myself risk finally this discussion. Citizen beautiful want room force sure draw several."
},
"dataProvider": {
"type": "Text",
"value": "Watch author own stop east point."
},
"owner": {
"type": "StructuredValue",
"value": [
"urn:ngsi-ld:ColourRGB:items:WTEF:42428519",
"urn:ngsi-ld:ColourRGB:items:BGJN:78474606"
]
},
"seeAlso": {
"type": "StructuredValue",
"value": [
"urn:ngsi-ld:ColourRGB:items:YDVE:88023157"
]
},
"location": {
"type": "geo:json",
"value": {
"type": "Point",
"coordinates": [
37.353019,
142.932264
]
}
},
"address": {
"type": "StructuredValue",
"value": {
"streetAddress": "Carry thing probably consumer billion less. Account source against. Affect keep happy election cell not.",
"addressLocality": "Important if before senior. Baby prevent possible behavior dark place",
"addressRegion": "Money sing body natural development. Environmental PM chance call son.",
"addressCountry": "Camera foreign behind short prepare already field. Various pick stock year.",
"postalCode": "Discover act feeling control beat newspaper. Wind",
"postOfficeBoxNumber": "West environment appear toward fish. Structure consider early. These first until place character.",
"streetNr": "Over true plant sit pattern. Field also rule program big loss song.",
"district": "Science through own. Surface very hand house."
}
},
"areaServed": {
"type": "Text",
"value": "Establish president meeti"
},
"rt": {
"type": "StructuredValue",
"value": [
"oic.r.colour.rgb"
]
},
"rgbValue": {
"type": "StructuredValue",
"value": [
864,
864,
864
]
},
"n": {
"type": "Text",
"value": "American whole magazine truth stop w"
},
"range": {
"type": "StructuredValue",
"value": [
864,
864
]
},
"step": {
"type": "Number",
"value": 864
},
"if": {
"type": "StructuredValue",
"value": [
"oic.if.baseline",
"oic.if.a"
]
},
"type": "ColourRGB"
}
He aquí un ejemplo de un ColourRGB en formato JSON-LD como key-values. Esto es compatible con NGSI-LD cuando se utiliza options=keyValues
y devuelve los datos de contexto de una entidad individual.
show/hide example
{
"id": "urn:ngsi-ld:ColourRGB:id:KJWY:68382916",
"dateCreated": "2006-08-05T19:36:08Z",
"dateModified": "1995-09-26T08:55:09Z",
"source": "That line reveal big. Reach picture feel note",
"name": "Need Republican nice risk. Evening Republican right then. Trade team less research.",
"alternateName": "Name five now ahead attack. Continue vote behavior a maintain. Himself if Congress large land education.",
"description": "Myself risk finally this discussion. Citizen beautiful want room force sure draw several.",
"dataProvider": "Watch author own stop east point.",
"owner": [
"urn:ngsi-ld:ColourRGB:items:WTEF:42428519",
"urn:ngsi-ld:ColourRGB:items:BGJN:78474606"
],
"seeAlso": [
"urn:ngsi-ld:ColourRGB:items:YDVE:88023157"
],
"location": {
"type": "Point",
"coordinates": [
37.353019,
142.932264
]
},
"address": {
"streetAddress": "Carry thing probably consumer billion less. Account source against. Affect keep happy election cell not.",
"addressLocality": "Important if before senior. Baby prevent possible behavior dark place",
"addressRegion": "Money sing body natural development. Environmental PM chance call son.",
"addressCountry": "Camera foreign behind short prepare already field. Various pick stock year.",
"postalCode": "Discover act feeling control beat newspaper. Wind",
"postOfficeBoxNumber": "West environment appear toward fish. Structure consider early. These first until place character.",
"streetNr": "Over true plant sit pattern. Field also rule program big loss song.",
"district": "Science through own. Surface very hand house."
},
"areaServed": "Establish president meeti",
"rt": [
"oic.r.colour.rgb"
],
"rgbValue": [
864,
864,
864
],
"n": "American whole magazine truth stop w",
"range": [
864,
864
],
"step": 864,
"if": [
"oic.if.baseline",
"oic.if.a"
],
"type": "ColourRGB",
"@context": [
"https://smartdatamodels.org/context.jsonld"
]
}
He aquí un ejemplo de un ColourRGB en formato JSON-LD normalizado. Esto es compatible con NGSI-LD cuando no se utilizan opciones y devuelve los datos de contexto de una entidad individual.
show/hide example
{
"id": "urn:ngsi-ld:ColourRGB:id:KJWY:68382916",
"dateCreated": {
"type": "Property",
"value": {
"@type": "DateTime",
"@value": "2006-08-05T19:36:08Z"
}
},
"dateModified": {
"type": "Property",
"value": {
"@type": "DateTime",
"@value": "1995-09-26T08:55:09Z"
}
},
"source": {
"type": "Property",
"value": "That line reveal big. Reach picture feel note"
},
"name": {
"type": "Property",
"value": "Need Republican nice risk. Evening Republican right then. Trade team less research."
},
"alternateName": {
"type": "Property",
"value": "Name five now ahead attack. Continue vote behavior a maintain. Himself if Congress large land education."
},
"description": {
"type": "Property",
"value": "Myself risk finally this discussion. Citizen beautiful want room force sure draw several."
},
"dataProvider": {
"type": "Property",
"value": "Watch author own stop east point."
},
"owner": {
"type": "Property",
"value": [
"urn:ngsi-ld:ColourRGB:items:WTEF:42428519",
"urn:ngsi-ld:ColourRGB:items:BGJN:78474606"
]
},
"seeAlso": {
"type": "Property",
"value": [
"urn:ngsi-ld:ColourRGB:items:YDVE:88023157"
]
},
"location": {
"type": "GeoProperty",
"value": {
"type": "Point",
"coordinates": [
37.353019,
142.932264
]
}
},
"address": {
"type": "Property",
"value": {
"streetAddress": "Carry thing probably consumer billion less. Account source against. Affect keep happy election cell not.",
"addressLocality": "Important if before senior. Baby prevent possible behavior dark place",
"addressRegion": "Money sing body natural development. Environmental PM chance call son.",
"addressCountry": "Camera foreign behind short prepare already field. Various pick stock year.",
"postalCode": "Discover act feeling control beat newspaper. Wind",
"postOfficeBoxNumber": "West environment appear toward fish. Structure consider early. These first until place character.",
"streetNr": "Over true plant sit pattern. Field also rule program big loss song.",
"district": "Science through own. Surface very hand house."
}
},
"areaServed": {
"type": "Property",
"value": "Establish president meeti"
},
"rt": {
"type": "Property",
"value": [
"oic.r.colour.rgb"
]
},
"rgbValue": {
"type": "Property",
"value": [
864,
864,
864
]
},
"n": {
"type": "Property",
"value": "American whole magazine truth stop w"
},
"range": {
"type": "Property",
"value": [
864,
864
]
},
"step": {
"type": "Property",
"value": 864
},
"if": {
"type": "Property",
"value": [
"oic.if.baseline",
"oic.if.a"
]
},
"type": "ColourRGB",
"@context": [
"https://smartdatamodels.org/context.jsonld"
]
}
Consulte FAQ 10 para obtener una respuesta sobre cómo tratar las unidades de magnitud.