$schema: https://json-schema.org/draft/2020-12/schema
title: SeaDOTs Property Relationship
description: 'Directed, weighted relationship between two observed properties or indicators.
  The relationship is evidence-bearing: every link can carry a weight, model, experiment,
  evidence URI, and explanation.

  '
type: object
required:
- id
- type
- fromProperty
- toProperty
- weight
properties:
  id:
    type: string
    format: uri-reference
    x-jsonld-id: '@id'
  type:
    oneOf:
    - type: string
      const: PropertyRelationship
    - type: array
      contains:
        const: PropertyRelationship
    x-jsonld-id: '@type'
  name:
    type: string
    x-jsonld-id: https://schema.org/name
  fromProperty:
    type: string
    format: uri-reference
    x-jsonld-id: https://w3id.org/ogc/hosted/seadots/prop-rel/fromProperty
    x-jsonld-type: '@id'
  toProperty:
    type: string
    format: uri-reference
    x-jsonld-id: https://w3id.org/ogc/hosted/seadots/prop-rel/toProperty
    x-jsonld-type: '@id'
  weight:
    type: object
    required:
    - value
    properties:
      value:
        type: number
        minimum: -1
        maximum: 1
        x-jsonld-id: http://qudt.org/schema/qudt/numericValue
      unit:
        type: string
        default: dimensionless
        x-jsonld-id: http://qudt.org/schema/qudt/unit
        x-jsonld-type: '@id'
    additionalProperties: true
    x-jsonld-id: https://w3id.org/ogc/hosted/seadots/prop-rel/hasWeight
  explanation:
    type: string
    x-jsonld-id: https://schema.org/explanation
  evidence:
    oneOf:
    - type: string
      format: uri-reference
    - type: array
      items:
        type: string
        format: uri-reference
    x-jsonld-id: http://www.w3.org/ns/prov#wasDerivedFrom
    x-jsonld-type: '@id'
    x-jsonld-container: '@set'
  model:
    type: object
    properties:
      id:
        type: string
        x-jsonld-id: http://purl.org/dc/terms/identifier
      uri:
        type: string
        format: uri-reference
        x-jsonld-id: '@id'
      name:
        type: string
        x-jsonld-id: https://schema.org/name
    additionalProperties: true
    x-jsonld-id: http://www.w3.org/ns/prov#wasAttributedTo
  experiment:
    type: object
    properties:
      id:
        type: string
        x-jsonld-id: http://purl.org/dc/terms/identifier
      uri:
        type: string
        format: uri-reference
        x-jsonld-id: '@id'
      start:
        type: string
        format: date-time
        x-jsonld-id: http://www.w3.org/ns/prov#startedAtTime
        x-jsonld-type: http://www.w3.org/2001/XMLSchema#dateTime
      end:
        type: string
        format: date-time
        x-jsonld-id: http://www.w3.org/ns/prov#endedAtTime
        x-jsonld-type: http://www.w3.org/2001/XMLSchema#dateTime
    additionalProperties: true
    x-jsonld-id: http://www.w3.org/ns/prov#wasGeneratedBy
additionalProperties: true
x-jsonld-extra-terms:
  PropertyRelationship: https://w3id.org/ogc/hosted/seadots/prop-rel/PropertyRelationship
x-jsonld-prefixes:
  prop-rel: https://w3id.org/ogc/hosted/seadots/prop-rel/
  schema: https://schema.org/
  qudt: http://qudt.org/schema/qudt/
  prov: http://www.w3.org/ns/prov#
  dct: http://purl.org/dc/terms/
  xsd: http://www.w3.org/2001/XMLSchema#
  sosa: http://www.w3.org/ns/sosa/
