$schema: https://json-schema.org/draft/2020-12/schema
title: Reef Aggregation Index (AF_i)
description: 'Per-taxon dimensionless reef aggregation index used by the reef-biomass
  equation. Treated as an OIM variable / indicator binding.

  '
allOf:
- $ref: https://ogcincubator.github.io/geodcat-ogcapi-records/build/annotated/geo/geodcat/geodcat-records/schema.yaml
properties:
  properties:
    type: object
    required:
    - reefAggregationIndex
    properties:
      reefAggregationIndex:
        type: object
        required:
        - name
        - source
        - format
        - data
        properties:
          name:
            type: string
            x-jsonld-id: http://purl.org/dc/terms/title
          description:
            type: string
            x-jsonld-id: http://purl.org/dc/terms/description
          role:
            type: string
            description: Usually `coefficient (per taxon)`.
            x-jsonld-id: https://w3id.org/ogc/hosted/seadots/reef-aggregation-index#role
          source:
            type: string
            x-jsonld-id: http://www.w3.org/ns/dcat#accessURL
            x-jsonld-type: '@id'
          format:
            type: string
            x-jsonld-id: http://purl.org/dc/terms/format
          vocabularyTerm:
            type: string
            format: uri
            x-jsonld-id: http://www.w3.org/2004/02/skos/core#exactMatch
            x-jsonld-type: '@id'
          data:
            type: object
            required:
            - perTaxon
            - provenance
            properties:
              units:
                type: string
                description: Always `dimensionless`.
                x-jsonld-id: http://qudt.org/schema/qudt/unit
              perTaxon:
                type: array
                items:
                  type: object
                  required:
                  - scientificName
                  - AF_i
                  properties:
                    scientificName:
                      type: string
                      x-jsonld-id: http://rs.tdwg.org/dwc/terms/scientificName
                    aphiaID:
                      type: integer
                      x-jsonld-id: http://rs.tdwg.org/dwc/terms/taxonID
                    AF_i:
                      type: number
                      minimum: 0
                      description: Dimensionless aggregation index consumed by the
                        reef-biomass equation.
                      x-jsonld-id: https://w3id.org/indicators/marine/parameters/reef-aggregation-index
                      x-jsonld-type: http://qudt.org/schema/qudt/DimensionlessQuantity
                    validityScope:
                      type: string
                      x-jsonld-id: http://purl.org/dc/terms/coverage
                    evidence:
                      type: string
                      format: uri
                      x-jsonld-id: http://www.w3.org/ns/prov#wasInfluencedBy
                      x-jsonld-type: '@id'
                x-jsonld-id: https://w3id.org/ogc/hosted/seadots/reef-aggregation-index#perTaxon
                x-jsonld-container: '@set'
              provenance:
                type: object
                required:
                - values
                properties:
                  values:
                    type: string
                    enum:
                    - retrieved
                    - illustrative
                    - mixed
                    x-jsonld-id: https://w3id.org/ogc/hosted/seadots/reef-aggregation-index#provenanceValues
                  primarySource:
                    type: object
                    properties:
                      doi:
                        type: string
                        x-jsonld-id: https://w3id.org/ogc/hosted/seadots/reef-aggregation-index#doi
                      url:
                        type: string
                        format: uri
                        x-jsonld-id: http://www.w3.org/ns/dcat#accessURL
                        x-jsonld-type: '@id'
                      citation:
                        type: string
                        x-jsonld-id: http://purl.org/dc/terms/bibliographicCitation
                      supportingFigure:
                        type: string
                        x-jsonld-id: https://w3id.org/ogc/hosted/seadots/reef-aggregation-index#supportingFigure
                    x-jsonld-id: http://purl.org/dc/terms/source
                  nearestAuthoritativeSource:
                    type: object
                    properties:
                      url:
                        type: string
                        format: uri
                        x-jsonld-id: http://www.w3.org/ns/dcat#accessURL
                        x-jsonld-type: '@id'
                      note:
                        type: string
                        x-jsonld-id: http://www.w3.org/2004/02/skos/core#note
                    x-jsonld-id: https://w3id.org/ogc/hosted/seadots/reef-aggregation-index#nearestAuthoritativeSource
                  verificationGap:
                    type: string
                    x-jsonld-id: https://w3id.org/ogc/hosted/seadots/reef-aggregation-index#verificationGap
                  note:
                    type: string
                    x-jsonld-id: http://www.w3.org/2004/02/skos/core#note
                x-jsonld-id: http://www.w3.org/ns/prov#wasDerivedFrom
            x-jsonld-id: https://w3id.org/ogc/hosted/seadots/reef-aggregation-index#data
        x-jsonld-id: https://w3id.org/ogc/hosted/seadots/reef-aggregation-index#reefAggregationIndex
    x-jsonld-id: https://purl.org/geojson/vocab#properties
x-jsonld-extra-terms:
  id: '@id'
  type: '@type'
  geometry: https://purl.org/geojson/vocab#geometry
  Feature: https://purl.org/geojson/vocab#Feature
  links:
    x-jsonld-id: http://www.w3.org/ns/iana/link-relations/relation
    x-jsonld-container: '@set'
  href: '@id'
  rel: https://purl.org/geojson/vocab#rel
  title: http://purl.org/dc/terms/title
  created: http://purl.org/dc/terms/created
  updated: http://purl.org/dc/terms/modified
  language: http://purl.org/dc/terms/language
  code: http://purl.org/dc/terms/identifier
  license: http://purl.org/dc/terms/license
  keywords:
    x-jsonld-id: http://www.w3.org/ns/dcat#keyword
    x-jsonld-container: '@set'
  themes:
    x-jsonld-id: http://www.w3.org/ns/dcat#theme
    x-jsonld-container: '@set'
  concepts:
    x-jsonld-id: http://www.w3.org/2004/02/skos/core#Concept
    x-jsonld-container: '@set'
  scheme: http://www.w3.org/2004/02/skos/core#inScheme
  label: http://www.w3.org/2004/02/skos/core#prefLabel
  formats:
    x-jsonld-id: http://purl.org/dc/terms/format
    x-jsonld-container: '@set'
  mediaType: http://purl.org/dc/terms/format
x-jsonld-vocab: https://w3id.org/ogc/hosted/seadots/reef-aggregation-index#
x-jsonld-prefixes:
  dcterms: http://purl.org/dc/terms/
  dcat: http://www.w3.org/ns/dcat#
  skos: http://www.w3.org/2004/02/skos/core#
  seadots: https://w3id.org/ogc/hosted/seadots/reef-aggregation-index#
  qudt: http://qudt.org/schema/qudt/
  dwc: http://rs.tdwg.org/dwc/terms/
  indp: https://w3id.org/indicators/marine/parameters/
  prov: http://www.w3.org/ns/prov#
  indo: https://w3id.org/indicators/marine/obs/
