Skip to content

Commit

Permalink
mappable entity separate from entity
Browse files Browse the repository at this point in the history
  • Loading branch information
ahwagner authored Aug 22, 2023
1 parent 38b42c3 commit 61dc2c0
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions schema/core-source.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ $defs:
type: string
description: >-
A free-text description of the entity.
mapping:
type: array
ordered: false
items:
$ref: "#/$defs/Mapping"
extensions:
type: array
ordered: true
Expand All @@ -37,6 +32,16 @@ $defs:
discriminator:
propertyName: type

MappableEntity:
type: object
inherits: Entity
heritableProperties:
mappings:
type: array
ordered: false
items:
$ref: "#/$defs/Mapping"

Mapping:
type: object
inherits: Entity
Expand All @@ -53,9 +58,9 @@ $defs:
code:
$ref: '#/$defs/Code'
description: Symbol in syntax defined by the terminology system.
mapping:
relation:
description: >-
A mapping between concepts as defined by the Simple Knowledge Organization System (SKOS).
A mapping relation between concepts as defined by the Simple Knowledge Organization System (SKOS).
type: string
enum:
- closeMatch
Expand All @@ -64,7 +69,7 @@ $defs:
- narrowMatch
- relatedMatch
required:
- mapping
- relation
- code
- system

Expand Down

0 comments on commit 61dc2c0

Please sign in to comment.