Skip to content

Commit a6ec00e

Browse files
committed
Assign a property to ALL enum values.
Ensure that all enum values throughout the specification have an explicit property assigned to them. This is important for consistency of the RDF serialisation.
1 parent 1fb4b8b commit a6ec00e

File tree

1 file changed

+26
-8
lines changed

1 file changed

+26
-8
lines changed

src/sssom_schema/schema/sssom_schema.yaml

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,12 @@ default_range: string
2727
enums:
2828
sssom_version_enum:
2929
permissible_values:
30-
"1.0": SSSOM specification version 1.0
31-
"1.1": SSSOM specification version 1.1
30+
"1.0":
31+
meaning: sssom:version1.0
32+
description: SSSOM specification version 1.0
33+
"1.1":
34+
meaning: sssom:version1.1
35+
description: SSSOM specification version 1.1
3236
entity_type_enum:
3337
permissible_values:
3438
owl class:
@@ -59,22 +63,36 @@ enums:
5963
rdf property:
6064
meaning: rdf:Property
6165
composed entity expression:
66+
meaning: sssom:ComposedEntityExpression
6267
description: This value indicates that the entity ID does not represent a single entity, but a composite involving several individual entities. This value MUST NOT be used in the predicate_type slot. This specifications does not prescribe how an ID representing a composite entity should be interpreted; this is left at the discretion of applications.
6368
see_also:
6469
- https://github.com/mapping-commons/sssom/issues/402
6570
- https://github.com/mapping-commons/sssom/blob/master/examples/schema/composite-entities.sssom.tsv
6671

6772
predicate_modifier_enum:
6873
permissible_values:
74+
meaning: sssom:NegatedPredicate
6975
Not: Negating the mapping predicate. The meaning of the triple becomes subject_id is not a predicate_id match to object_id.
7076
mapping_cardinality_enum:
7177
permissible_values:
72-
"1:1": One-to-one mapping
73-
"1:n": One-to-many mapping
74-
"n:1": Many-to-one mapping
75-
"1:0": One-to-none mapping
76-
"0:1": None-to-one mapping
77-
"n:n": Many-to-many mapping
78+
"1:1":
79+
meaning: sssom:Cardinality_1_1
80+
description: One-to-one mapping
81+
"1:n":
82+
meaning: sssom:Cardinality_1_n
83+
description: One-to-many mapping
84+
"n:1":
85+
meaning: sssom:Cardinality_n_1
86+
description: Many-to-one mapping
87+
"1:0":
88+
meaning: sssom:Cardinality_1_0
89+
description: One-to-none mapping
90+
"0:1":
91+
meaning: sssom:Cardinality_0_1
92+
description: None-to-one mapping
93+
"n:n":
94+
meaning: sssom:Cardinality_n_n
95+
description: Many-to-many mapping
7896

7997
types:
8098
EntityReference:

0 commit comments

Comments
 (0)