$schema: https://json-schema.org/draft/2020-12/schema
$defs:
  conceptOrId:
    oneOf:
    - $ref: https://opengeospatial.github.io/bblocks/annotated-schemas/ogc-utils/iri-or-curie/schema.yaml
    - $ref: '#'
  conceptOrIdArray:
    oneOf:
    - $ref: '#/$defs/conceptOrId'
    - type: array
      items:
        $ref: '#/$defs/conceptOrId'
type: object
properties:
  topConceptOf:
    $ref: https://ogcincubator.github.io/bblocks-skos/build/annotated/skos/conceptScheme/schema.yaml#/$defs/conceptSchemeOrIdArray
    x-jsonld-id: skos:topConceptOf
    x-jsonld-type: '@id'
  inScheme:
    $ref: https://ogcincubator.github.io/bblocks-skos/build/annotated/skos/conceptScheme/schema.yaml#/$defs/conceptSchemeOrIdArray
    x-jsonld-id: skos:inScheme
    x-jsonld-type: '@id'
  broaderConcepts:
    $ref: '#/$defs/conceptOrIdArray'
    x-jsonld-id: skos:broaderConcepts
    x-jsonld-type: '@id'
  narrowerConcepts:
    $ref: '#/$defs/conceptOrIdArray'
    x-jsonld-id: skos:narrowerConcepts
    x-jsonld-type: '@id'
  relatedConcepts:
    $ref: '#/$defs/conceptOrIdArray'
    x-jsonld-id: skos:relatedConcepts
    x-jsonld-type: '@id'
  closeMatches:
    $ref: '#/$defs/conceptOrIdArray'
  exactMatches:
    $ref: '#/$defs/conceptOrIdArray'
  broadMatches:
    $ref: '#/$defs/conceptOrIdArray'
  narrowMatches:
    $ref: '#/$defs/conceptOrIdArray'
  relatedMatches:
    $ref: '#/$defs/conceptOrIdArray'
  collections:
    $ref: https://ogcincubator.github.io/bblocks-skos/build/annotated/skos/collection/schema.yaml#/$defs/collectionOrIdArray
    x-jsonld-id: skos:collections
    x-jsonld-type: '@id'
allOf:
- $ref: https://ogcincubator.github.io/bblocks-skos/build/annotated/skos/common/schema.yaml
oneOf:
- not:
    required:
    - skosType
- required:
  - skosType
  properties:
    skosType:
      const: Concept
x-jsonld-extra-terms:
  closeMatch:
    x-jsonld-id: skos:closeMatch
    x-jsonld-type: '@id'
  exactMatch:
    x-jsonld-id: skos:exactMatch
    x-jsonld-type: '@id'
  broadMatch:
    x-jsonld-id: skos:broadMatch
    x-jsonld-type: '@id'
  narrowMatch:
    x-jsonld-id: skos:narrowMatch
    x-jsonld-type: '@id'
  relatedMatch:
    x-jsonld-id: skos:relatedMatch
    x-jsonld-type: '@id'
