document generated automatically
Global description: Object modelling a feed registry for a livestock farm.
version: 0.0.1
[*] If there is not a type in an attribute is because it could have several types or different formats/patterns
address[object]
: The mailing address . Model: https://schema.org/addressaddressCountry[string]
: The country. For example, Spain . Model: https://schema.org/addressCountryaddressLocality[string]
: The locality in which the street address is, and which is in the region . Model: https://schema.org/addressLocalityaddressRegion[string]
: The region in which the locality is, and which is in the country . Model: https://schema.org/addressRegiondistrict[string]
: A district is a type of administrative division that, in some countries, is managed by the local governmentpostOfficeBoxNumber[string]
: The post office box number for PO box addresses. For example, 03578 . Model: https://schema.org/postOfficeBoxNumberpostalCode[string]
: The postal code. For example, 24004 . Model: https://schema.org/https://schema.org/postalCodestreetAddress[string]
: The street address . Model: https://schema.org/streetAddress
alternateName[string]
: An alternative name for this itemamount[number]
: Amount of feed supplied to animalsareaServed[string]
: The geographic area where a service or offered item is provided . Model: https://schema.org/TextdataProvider[string]
: A sequence of characters identifying the provider of the harmonised data entitydate[date-time]
: Date of supply of food to animalsdateCreated[date-time]
: Entity creation timestamp. This will usually be allocated by the storage platformdateModified[date-time]
: Timestamp of the last modification of the entity. This will usually be allocated by the storage platformdeliveryNote[string]
: Description of the feed registrydescription[string]
: A description of this itemfarm[uri]
: Farm where the operation is carried out. https://github.com/smart-data-models/dataModel.Agrifood/blob/master/AgriFarm/schema.jsonid[*]
: Unique identifier of the entitylocation[*]
: Geojson reference to the item. It can be Point, LineString, Polygon, MultiPoint, MultiLineString or MultiPolygonname[string]
: The name of this itemowner[array]
: A List containing a JSON encoded sequence of characters referencing the unique Ids of the owner(s)seeAlso[*]
: list of uri pointing to additional resources about the itemsource[string]
: 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 objectsupplier[string]
: Supplier of the feedtype[string]
: NGSI entity type. It has to be FeedRegistry
Required properties
id
name
type
Sorted alphabetically (click for details)
full yaml details
FeedRegistry:
description: Object modelling a feed registry for a livestock farm.
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
amount:
description: Amount of feed supplied to animals
type: number
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
date:
description: Date of supply of food to animals
format: date-time
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
deliveryNote:
description: Description of the feed registry
type: string
x-ngsi:
type: Property
description:
description: A description of this item
type: string
x-ngsi:
type: Property
farm:
description: 'Farm where the operation is carried out. https://github.com/smart-data-models/dataModel.Agrifood/blob/master/AgriFarm/schema.json'
format: uri
type: string
x-ngsi:
type: Relationship
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
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
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
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
supplier:
description: Supplier of the feed
type: string
x-ngsi:
type: Property
type:
description: NGSI entity type. It has to be FeedRegistry
enum:
- FeedRegistry
type: string
x-ngsi:
type: Property
required:
- id
- type
- name
type: object
x-derived-from: ""
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.Agrifood/blob/master/FeedRegistry/LICENSE.md
x-model-schema: https://smart-data-models.github.io/dataModel.Agrifood/FeedRegistry/schema.json
x-model-tags: I4Trust
x-version: 0.0.1
Here is an example of a FeedRegistry in JSON-LD format as key-values. This is compatible with NGSI-v2 when using options=keyValues
and returns the context data of an individual entity.
show/hide example
{
"id": "urn:ngsi-ld:FeedRegistry:ca3f1295-500c-4aa3-b745-d143097d5c01",
"type": "FeedRegistry",
"name": "Biona tacos Campero Vacuno 40 kg",
"date": "2022-01-01T01:20:00Z",
"farm": "urn:ngsi-ld:AgriFarm:72d9fb43-53f8-4ec8-a33c-fa931360259a",
"amount": 1230,
"supplier": "GEPISA",
"deliveryNote": "Primera entrega 2022"
}
Here is an example of a FeedRegistry in JSON-LD format as normalized. This is compatible with NGSI-v2 when not using options and returns the context data of an individual entity.
show/hide example
{
"id": "urn:ngsi-ld:FeedRegistry:ca3f1295-500c-4aa3-b745-d143097d5c01",
"type": "FeedRegistry",
"name": {
"type": "Text",
"value": "Biona tacos Campero Vacuno 40 kg"
},
"date": {
"type": "DateTime",
"value": "2022-01-01T01:20:00Z"
},
"farm": {
"type": "Text",
"value": "urn:ngsi-ld:AgriFarm:72d9fb43-53f8-4ec8-a33c-fa931360259a"
},
"amount": {
"type": "Number",
"value": 1230
},
"supplier": {
"type": "Text",
"value": "GEPISA"
},
"deliveryNote": {
"type": "Text",
"value": "Primera entrega 2022"
}
}
Here is an example of a FeedRegistry in JSON-LD format as key-values. This is compatible with NGSI-LD when using options=keyValues
and returns the context data of an individual entity.
show/hide example
{
"id": "urn:ngsi-ld:FeedRegistry:ca3f1295-500c-4aa3-b745-d143097d5c01",
"type": "FeedRegistry",
"name": "Biona tacos Campero Vacuno 40 kg",
"date": "2022-01-01T01:20:00Z",
"farm": "urn:ngsi-ld:AgriFarm:72d9fb43-53f8-4ec8-a33c-fa931360259a",
"amount": 1230,
"supplier": "GEPISA",
"deliveryNote": "Primera entrega 2022",
"@context": [
"https://smart-data-models.github.io/dataModel.Agrifood/context.jsonld",
"https://raw.githubusercontent.com/smart-data-models/dataModel.Agrifood/master/context.jsonld"
]
}
Here is an example of a FeedRegistry in JSON-LD format as normalized. This is compatible with NGSI-LD when not using options and returns the context data of an individual entity.
show/hide example
{
"id": "urn:ngsi-ld:FeedRegistry:ca3f1295-500c-4aa3-b745-d143097d5c01",
"type": "FeedRegistry",
"name": {
"type": "Property",
"value": "Biona tacos Campero Vacuno 40 kg"
},
"date": {
"type": "Property",
"value": {
"@type": "Date-Time",
"@value": "2022-01-01T01:20:00Z"
}
},
"farm": {
"type": "Relationship",
"object": "urn:ngsi-ld:AgriFarm:72d9fb43-53f8-4ec8-a33c-fa931360259a"
},
"amount": {
"type": "Property",
"value": 1230
},
"supplier": {
"type": "Property",
"value": "GEPISA"
},
"deliveryNote": {
"type": "Property",
"value": "Primera entrega 2022"
},
"@context": [
"https://smart-data-models.github.io/dataModel.Agrifood/context.jsonld",
"https://raw.githubusercontent.com/smart-data-models/dataModel.Agrifood/master/context.jsonld"
]
}
See FAQ 10 to get an answer on how to deal with magnitude units