$schema: http://json-schema.org/schema#
$schemaVersion: 0.0.7
modelTags: ''
$id: https://smart-data-models.github.io/dataModel.Agrifood/AgriCrop/schema.json
title: Smart Data Models - Agri Food
description: This entity contains a harmonised description of a generic crop. This
  entity is primarily associated with the agricultural vertical and related IoT applications.
type: object
allOf:
- $ref: https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons
- $ref: https://smart-data-models.github.io/dataModel.Agrifood/agrifood-schema.json#/definitions/AgriFood-Commons
- properties:
    type:
      type: string
      enum:
      - AgriCrop
      description: Property. NGSI Entity Type. it has to be AgriCrop
      x-jsonld-id: '@type'
    agroVocConcept:
      type: string
      format: uri
      description: Property. Model:'http://schema.org/URL'. The link with the defined
        concept into the AgroVoc vocabulary
      x-jsonld-id: https://smartdatamodels.org/dataModel.Agrifood/agroVocConcept
    hasAgriSoil:
      type: array
      description: Relationship. Model:'http://schema.org/URL'. Reference to the recommended
        types of soil suitable for growing this crop
      items:
        anyOf:
        - type: string
          minLength: 1
          maxLength: 256
          pattern: ^[\w\-\.\{\}\$\+\*\[\]`|~^@!,:\\]+$
          description: Property. Identifier format of any NGSI entity
        - type: string
          format: uri
          description: Property. Identifier format of any NGSI entity
      x-jsonld-id: https://smartdatamodels.org/dataModel.Agrifood/hasAgriSoil
    hasAgriFertiliser:
      type: array
      description: Relationship. Model:'http://schema.org/URL'. Reference to the recommended
        types of fertiliser suitable for growing this crop
      items:
        anyOf:
        - type: string
          minLength: 1
          maxLength: 256
          pattern: ^[\w\-\.\{\}\$\+\*\[\]`|~^@!,:\\]+$
          description: Property. Identifier format of any NGSI entity
        - type: string
          format: uri
          description: Property. Identifier format of any NGSI entity
      x-jsonld-id: https://smartdatamodels.org/dataModel.Agrifood/hasAgriFertiliser
    hasAgriPest:
      type: array
      description: Relationship. Reference to the pests known to attack this crop.
        Model:'https://schema.org/URL'
      items:
        anyOf:
        - type: string
          minLength: 1
          maxLength: 256
          pattern: ^[\w\-\.\{\}\$\+\*\[\]`|~^@!,:\\]+$
          description: Property. Identifier format of any NGSI entity
        - type: string
          format: uri
          description: Property. Identifier format of any NGSI entity
      x-jsonld-id: https://smartdatamodels.org/dataModel.Agrifood/hasAgriPest
    harvestingInterval:
      type: array
      description: 'Property. Model:''http://schema.org/URL''. A list of the recommended
        harvesting interval date(s) for this crop. Specified using ISO8601 repeating
        date intervals: <br/><br/>**interval, description**<br/><br/>Where **interval**
        is in the form of **start date/end date**<br/><br/>--MM-DD/--MM-DD<br/><br/>Meaning
        repeat each year from this start date to this end date'
      items:
        type: object
        properties:
          dateRange:
            type: string
            pattern: ^-[0-1][0-9]-[0-3][0-9]/-[0-1][0-9]-[0-3][0-9]$
            description: Property. Range of dates in a string format
            x-jsonld-id: https://smartdatamodels.org/dataModel.Agrifood/dateRange
          description:
            type: string
            description: Property. Descriptions of the range dates
            x-jsonld-id: http://purl.org/dc/terms/description
      minItems: 2
      maxItems: 2
      x-jsonld-id: https://smartdatamodels.org/dataModel.Agrifood/harvestingInterval
    plantingFrom:
      type: array
      description: 'Property. Model:''http://schema.org/URL''. A list of the recommended
        planting interval date(s) for this crop. Specified using ISO8601 repeating
        date intervals: <br/><br/>**interval, description**<br/><br/>Where **interval**
        is in the form of **start date/end date**<br/><br/>--MM-DD/--MM-DD<br/><br/>Meaning
        repeat each year from this start date to this end date'
      items:
        type: object
        properties:
          dateRange:
            type: string
            pattern: ^-[0-1][0-9]-[0-3][0-9]/-[0-1][0-9]-[0-3][0-9]$
            description: Property. Range of dates in a string format
            x-jsonld-id: https://smartdatamodels.org/dataModel.Agrifood/dateRange
          description:
            type: string
            description: Property. Descriptions of the range dates
            x-jsonld-id: http://purl.org/dc/terms/description
      minItems: 2
      maxItems: 2
      x-jsonld-id: https://smartdatamodels.org/dataModel.Agrifood/plantingFrom
    wateringFrequency:
      type: string
      description: 'Property. Model:''http://schema.org/URL''. Units:''''. A description
        of the recommended watering schedule. A choice from an enumerated list. One
        of: **daily, weekly, biweekly, monthly, onDemand, other**. Enum:''daily, weekly,
        biweekly, monthly, onDemand,    other'''
      enum:
      - daily
      - weekly
      - biweekly
      - monthly
      - onDemand
      - other
required:
- id
- type
- name
x-jsonld-extra-terms:
  AgriApp: https://smartdatamodels.org/dataModel.Agrifood/AgriApp
  AgriCrop: https://smartdatamodels.org/dataModel.Agrifood/AgriCrop
  AgriFarm: https://smartdatamodels.org/dataModel.Agrifood/AgriFarm
  AgriGreenhouse: https://smartdatamodels.org/dataModel.Agrifood/AgriGreenhouse
  AgriParcel: https://smartdatamodels.org/dataModel.Agrifood/AgriParcel
  AgriParcelOperation: https://smartdatamodels.org/dataModel.Agrifood/AgriParcelOperation
  AgriParcelRecord: https://smartdatamodels.org/dataModel.Agrifood/AgriParcelRecord
  AgriPest: https://smartdatamodels.org/dataModel.Agrifood/AgriPest
  AgriProductType: https://smartdatamodels.org/dataModel.Agrifood/AgriProductType
  AgriSoil: https://smartdatamodels.org/dataModel.Agrifood/AgriSoil
  Animal: https://smartdatamodels.org/dataModel.Agrifood/Animal
  AnimalDisease: https://smartdatamodels.org/dataModel.Agrifood/AnimalDisease
  AnimalMovement: https://smartdatamodels.org/dataModel.Agrifood/AnimalMovement
  Carcass: https://smartdatamodels.org/dataModel.Agrifood/Carcass
  Compartment: https://smartdatamodels.org/dataModel.Agrifood/Compartment
  FeedRegistry: https://smartdatamodels.org/dataModel.Agrifood/FeedRegistry
  MeatProduct: https://smartdatamodels.org/dataModel.Agrifood/MeatProduct
  Pen: https://smartdatamodels.org/dataModel.Agrifood/Pen
  VeterinarianTreatment: https://smartdatamodels.org/dataModel.Agrifood/VeterinarianTreatment
  additionalInfo: https://smartdatamodels.org/dataModel.Agrifood/additionalInfo
  address: https://smartdatamodels.org/address
  addressCountry: https://smartdatamodels.org/addressCountry
  addressLocality: https://smartdatamodels.org/addressLocality
  addressRegion: https://smartdatamodels.org/addressRegion
  alternateName: https://smartdatamodels.org/alternateName
  amount: https://smartdatamodels.org/dataModel.Agrifood/amount
  animal: https://smartdatamodels.org/dataModel.Agrifood/animal
  animals: https://smartdatamodels.org/dataModel.Agrifood/animals
  application: https://smartdatamodels.org/dataModel.Agrifood/application
  applicationEntityId: https://smartdatamodels.org/dataModel.Agrifood/applicationEntityId
  appliedProduct: https://smartdatamodels.org/dataModel.Agrifood/appliedProduct
  area: https://smartdatamodels.org/dataModel.Agrifood/area
  areaServed: https://smartdatamodels.org/areaServed
  arrivalTimestamp: https://smartdatamodels.org/dataModel.Agrifood/arrivalTimestamp
  atmosphericPressure: https://smartdatamodels.org/dataModel.Agrifood/atmosphericPressure
  availabilityRestriction: https://smartdatamodels.org/availabilityRestriction
  availableLanguage: https://smartdatamodels.org/availableLanguage
  avgGrowth: https://smartdatamodels.org/dataModel.Agrifood/avgGrowth
  avgWeight: https://smartdatamodels.org/dataModel.Agrifood/avgWeight
  bbox:
    x-jsonld-container: '@list'
    x-jsonld-id: geojson:bbox
  belongsTo: https://smartdatamodels.org/dataModel.Agrifood/belongsTo
  birthdate: https://smartdatamodels.org/dataModel.Agrifood/birthdate
  breed: https://smartdatamodels.org/dataModel.Agrifood/breed
  buildingId: https://smartdatamodels.org/dataModel.Agrifood/buildingId
  calvedBy: https://smartdatamodels.org/dataModel.Agrifood/calvedBy
  carcass: https://smartdatamodels.org/dataModel.Agrifood/carcass
  category: https://smartdatamodels.org/dataModel.Agrifood/category
  co2: https://smartdatamodels.org/dataModel.Agrifood/co2
  companyId: https://smartdatamodels.org/dataModel.Agrifood/companyId
  compartmentId: https://smartdatamodels.org/dataModel.Agrifood/compartmentId
  contactOption: https://smartdatamodels.org/contactOption
  contactPoint: https://smartdatamodels.org/contactPoint
  contactType: https://smartdatamodels.org/contactType
  coordinates:
    x-jsonld-container: '@list'
    x-jsonld-id: geojson:coordinates
  cropStatus: https://smartdatamodels.org/dataModel.Agrifood/cropStatus
  dailyLight: https://smartdatamodels.org/dataModel.Agrifood/dailyLight
  dataProvider: https://smartdatamodels.org/dataProvider
  date: https://smartdatamodels.org/dataModel.Agrifood/date
  dateCreated: https://smartdatamodels.org/dateCreated
  dateModified: https://smartdatamodels.org/dateModified
  deadAnimalsSinceDateOfArrival: https://smartdatamodels.org/dataModel.Agrifood/deadAnimalsSinceDateOfArrival
  deliveryNote: https://smartdatamodels.org/dataModel.Agrifood/deliveryNote
  depth: https://smartdatamodels.org/dataModel.Agrifood/depth
  diagnosticTest: https://smartdatamodels.org/dataModel.Agrifood/diagnosticTest
  disease: https://smartdatamodels.org/dataModel.Agrifood/disease
  district: https://smartdatamodels.org/district
  drainFlow: https://smartdatamodels.org/dataModel.Agrifood/drainFlow
  email: https://smartdatamodels.org/email
  empty: https://smartdatamodels.org/dataModel.Agrifood/empty
  endedAt: https://smartdatamodels.org/dataModel.Agrifood/endedAt
  endpoint: https://uri.etsi.org/ngsi-ld/endpoint
  farm: https://smartdatamodels.org/dataModel.Agrifood/farm
  farmId: https://smartdatamodels.org/dataModel.Agrifood/farmId
  faxNumber: https://smartdatamodels.org/faxNumber
  fedWith: https://smartdatamodels.org/dataModel.Agrifood/fedWith
  feedConsumption: https://smartdatamodels.org/dataModel.Agrifood/feedConsumption
  hasAgriCrop: https://smartdatamodels.org/dataModel.Agrifood/hasAgriCrop
  hasAgriParcel: https://smartdatamodels.org/dataModel.Agrifood/hasAgriParcel
  hasAgriParcelChildren: https://smartdatamodels.org/dataModel.Agrifood/hasAgriParcelChildren
  hasAgriParcelParent: https://smartdatamodels.org/dataModel.Agrifood/hasAgriParcelParent
  hasAgriProductType: https://smartdatamodels.org/dataModel.Agrifood/hasAgriProductType
  hasAgriProductTypeChildren: https://smartdatamodels.org/dataModel.Agrifood/hasAgriProductTypeChildren
  hasAgriProductTypeParent: https://smartdatamodels.org/dataModel.Agrifood/hasAgriProductTypeParent
  hasAirQualityObserved: https://smartdatamodels.org/dataModel.Agrifood/hasAirQualityObserved
  hasBuilding: https://smartdatamodels.org/dataModel.Agrifood/hasBuilding
  hasDevice: https://smartdatamodels.org/dataModel.Agrifood/hasDevice
  hasOperator: https://smartdatamodels.org/dataModel.Agrifood/hasOperator
  hasProvider: https://smartdatamodels.org/dataModel.Agrifood/hasProvider
  hasWaterQualityObserved: https://smartdatamodels.org/dataModel.Agrifood/hasWaterQualityObserved
  hasWeatherObserved: https://smartdatamodels.org/dataModel.Agrifood/hasWeatherObserved
  healthCondition: https://smartdatamodels.org/dataModel.Agrifood/healthCondition
  humidity: https://smartdatamodels.org/dataModel.Agrifood/humidity
  id: '@id'
  initialWeight: https://smartdatamodels.org/dataModel.Agrifood/initialWeight
  irrigationRecord: https://smartdatamodels.org/dataModel.Agrifood/irrigationRecord
  irrigationSystemType: https://smartdatamodels.org/dataModel.Agrifood/irrigationSystemType
  landLocation: https://smartdatamodels.org/dataModel.Agrifood/landLocation
  lastPlantedAt: https://smartdatamodels.org/dataModel.Agrifood/lastPlantedAt
  lastUpdate: https://smartdatamodels.org/dataModel.Agrifood/lastUpdate
  leafRelativeHumidity: https://smartdatamodels.org/dataModel.Agrifood/leafRelativeHumidity
  leafTemperature: https://smartdatamodels.org/dataModel.Agrifood/leafTemperature
  leafWetness: https://smartdatamodels.org/dataModel.Agrifood/leafWetness
  legalId: https://smartdatamodels.org/dataModel.Agrifood/legalId
  locatedAt: https://smartdatamodels.org/dataModel.Agrifood/locatedAt
  location: https://uri.etsi.org/ngsi-ld/location
  luminosity: https://smartdatamodels.org/dataModel.Agrifood/luminosity
  maxValue: https://smartdatamodels.org/dataModel.Agrifood/maxValue
  minValue: https://smartdatamodels.org/dataModel.Agrifood/minValue
  movement: https://smartdatamodels.org/dataModel.Agrifood/movement
  name: https://smartdatamodels.org/name
  numAnimals: https://smartdatamodels.org/dataModel.Agrifood/numAnimals
  operationType: https://smartdatamodels.org/dataModel.Agrifood/operationType
  ownedBy: https://smartdatamodels.org/dataModel.Agrifood/ownedBy
  owner: https://smartdatamodels.org/owner
  parameter: https://smartdatamodels.org/dataModel.Agrifood/parameter
  parcel: https://smartdatamodels.org/dataModel.Agrifood/parcel
  parentCompartmentId: https://smartdatamodels.org/dataModel.Agrifood/parentCompartmentId
  pen: https://smartdatamodels.org/dataModel.Agrifood/pen
  phaseOutPeriod: https://smartdatamodels.org/dataModel.Agrifood/phaseOutPeriod
  phenologicalCondition: https://smartdatamodels.org/dataModel.Agrifood/phenologicalCondition
  plannedEndAt: https://smartdatamodels.org/dataModel.Agrifood/plannedEndAt
  plannedStartAt: https://smartdatamodels.org/dataModel.Agrifood/plannedStartAt
  postOfficeBoxNumber: https://smartdatamodels.org/postOfficeBoxNumber
  postalCode: https://smartdatamodels.org/postalCode
  productSupported: https://smartdatamodels.org/productSupported
  quantity: https://smartdatamodels.org/dataModel.Agrifood/quantity
  relatedSource: https://smartdatamodels.org/dataModel.Agrifood/relatedSource
  relativeHumidity: https://smartdatamodels.org/dataModel.Agrifood/relativeHumidity
  reportedAt: https://smartdatamodels.org/dataModel.Agrifood/reportedAt
  reproductiveCondition: https://smartdatamodels.org/dataModel.Agrifood/reproductiveCondition
  result: https://smartdatamodels.org/dataModel.Agrifood/result
  root: https://smartdatamodels.org/dataModel.Agrifood/root
  seeAlso: https://smartdatamodels.org/seeAlso
  sex: https://smartdatamodels.org/dataModel.Agrifood/sex
  siredBy: https://smartdatamodels.org/dataModel.Agrifood/siredBy
  soilMoistureEC: https://smartdatamodels.org/dataModel.Agrifood/soilMoistureEC
  soilMoistureVwc: https://smartdatamodels.org/dataModel.Agrifood/soilMoistureVwc
  soilSalinity: https://smartdatamodels.org/dataModel.Agrifood/soilSalinity
  soilTemperature: https://smartdatamodels.org/dataModel.Agrifood/soilTemperature
  soilTextureType: https://smartdatamodels.org/dataModel.Agrifood/soilTextureType
  solarRadiation: https://smartdatamodels.org/dataModel.Agrifood/solarRadiation
  source: https://smartdatamodels.org/source
  species: https://smartdatamodels.org/dataModel.Agrifood/species
  startedAt: https://smartdatamodels.org/dataModel.Agrifood/startedAt
  status: https://uri.etsi.org/ngsi-ld/status
  streetAddress: https://smartdatamodels.org/streetAddress
  streetNr: https://smartdatamodels.org/streetNr
  supplier: https://smartdatamodels.org/dataModel.Agrifood/supplier
  telephone: https://smartdatamodels.org/telephone
  temperature: https://smartdatamodels.org/dataModel.Agrifood/temperature
  unitText: https://smartdatamodels.org/dataModel.Agrifood/unitText
  url: https://smartdatamodels.org/url
  value: https://uri.etsi.org/ngsi-ld/hasValue
  version: https://smartdatamodels.org/dataModel.Agrifood/version
  veterinarian: https://smartdatamodels.org/dataModel.Agrifood/veterinarian
  veterinarianTreatment: https://smartdatamodels.org/dataModel.Agrifood/veterinarianTreatment
  waterConsumption: https://smartdatamodels.org/dataModel.Agrifood/waterConsumption
  waterSource: https://smartdatamodels.org/dataModel.Agrifood/waterSource
  weight: https://smartdatamodels.org/dataModel.Agrifood/weight
  weightStDev: https://smartdatamodels.org/dataModel.Agrifood/weightStDev
  welfareCondition: https://smartdatamodels.org/dataModel.Agrifood/welfareCondition
  workOrder: https://smartdatamodels.org/dataModel.Agrifood/workOrder
  workRecord: https://smartdatamodels.org/dataModel.Agrifood/workRecord
x-jsonld-prefixes:
  ngsi-ld: https://uri.etsi.org/ngsi-ld/
