Skip to content

Commit 658de42

Browse files
authored
Update generated SSSOM schema files (#388)
Last commit before #189! This is the usual update with `make all` (generating all downstream python files). This is going to be the final model update before sssom 1.0.
1 parent 73a7f66 commit 658de42

File tree

13 files changed

+720
-305
lines changed

13 files changed

+720
-305
lines changed

project/excel/sssom_schema.xlsx

-4 Bytes
Binary file not shown.

project/graphql/sssom_schema.graphql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# metamodel_version: 1.7.0
12
type ExtensionDefinition
23
{
34
slotName: Ncname!
@@ -7,13 +8,13 @@ type ExtensionDefinition
78

89
type Mapping
910
{
10-
subjectId: EntityReference!
11+
subjectId: EntityReference
1112
subjectLabel: String
1213
subjectCategory: String
1314
predicateId: EntityReference!
1415
predicateLabel: String
1516
predicateModifier: PredicateModifierEnum
16-
objectId: EntityReference!
17+
objectId: EntityReference
1718
objectLabel: String
1819
objectCategory: String
1920
mappingJustification: EntityReference!

project/jsonld/sssom_schema.context.jsonld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"comments": {
33
"description": "Auto generated by LinkML jsonld context generator",
4-
"generation_date": "2024-08-06T18:58:48",
4+
"generation_date": "2024-08-09T22:25:39",
55
"source": "sssom_schema.yaml"
66
},
77
"@context": {

project/jsonld/sssom_schema.jsonld

Lines changed: 114 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,13 @@
426426
},
427427
{
428428
"text": "rdfs literal",
429-
"meaning": "rdfs:Literal"
429+
"description": "This value indicate that the entity being mapped is not a semantic entity with a distinct identifier, but is instead represented entirely by its literal label. This value MUST NOT be used in the predicate_type slot.",
430+
"meaning": "rdfs:Literal",
431+
"see_also": [
432+
"https://mapping-commons.github.io/sssom/spec-model/#literal-mappings",
433+
"https://github.com/mapping-commons/sssom/issues/234",
434+
"https://github.com/mapping-commons/sssom/blob/master/examples/schema/literals.sssom.tsv"
435+
]
430436
},
431437
{
432438
"text": "rdfs datatype",
@@ -715,7 +721,6 @@
715721
"Mapping"
716722
],
717723
"range": "EntityReference",
718-
"required": true,
719724
"@type": "SlotDefinition"
720725
},
721726
{
@@ -966,7 +971,6 @@
966971
"Mapping"
967972
],
968973
"range": "EntityReference",
969-
"required": true,
970974
"@type": "SlotDefinition"
971975
},
972976
{
@@ -2185,6 +2189,110 @@
21852189
],
21862190
"slot_usage": {},
21872191
"class_uri": "http://www.w3.org/2002/07/owl#Axiom",
2192+
"rules": [
2193+
{
2194+
"preconditions": {
2195+
"slot_conditions": [
2196+
{
2197+
"name": "subject_type",
2198+
"equals_string": "rdfs literal",
2199+
"@type": "SlotDefinition"
2200+
}
2201+
],
2202+
"@type": "AnonymousClassExpression"
2203+
},
2204+
"postconditions": {
2205+
"slot_conditions": [
2206+
{
2207+
"name": "subject_label",
2208+
"required": true,
2209+
"@type": "SlotDefinition"
2210+
}
2211+
],
2212+
"@type": "AnonymousClassExpression"
2213+
},
2214+
"@type": "ClassRule"
2215+
},
2216+
{
2217+
"preconditions": {
2218+
"slot_conditions": [
2219+
{
2220+
"name": "subject_type",
2221+
"none_of": [
2222+
{
2223+
"equals_string": "rdfs literal",
2224+
"@type": "AnonymousSlotExpression"
2225+
}
2226+
],
2227+
"@type": "SlotDefinition"
2228+
}
2229+
],
2230+
"@type": "AnonymousClassExpression"
2231+
},
2232+
"postconditions": {
2233+
"slot_conditions": [
2234+
{
2235+
"name": "subject_id",
2236+
"required": true,
2237+
"@type": "SlotDefinition"
2238+
}
2239+
],
2240+
"@type": "AnonymousClassExpression"
2241+
},
2242+
"@type": "ClassRule"
2243+
},
2244+
{
2245+
"preconditions": {
2246+
"slot_conditions": [
2247+
{
2248+
"name": "object_type",
2249+
"equals_string": "rdfs literal",
2250+
"@type": "SlotDefinition"
2251+
}
2252+
],
2253+
"@type": "AnonymousClassExpression"
2254+
},
2255+
"postconditions": {
2256+
"slot_conditions": [
2257+
{
2258+
"name": "object_label",
2259+
"required": true,
2260+
"@type": "SlotDefinition"
2261+
}
2262+
],
2263+
"@type": "AnonymousClassExpression"
2264+
},
2265+
"@type": "ClassRule"
2266+
},
2267+
{
2268+
"preconditions": {
2269+
"slot_conditions": [
2270+
{
2271+
"name": "object_type",
2272+
"none_of": [
2273+
{
2274+
"equals_string": "rdfs literal",
2275+
"@type": "AnonymousSlotExpression"
2276+
}
2277+
],
2278+
"@type": "SlotDefinition"
2279+
}
2280+
],
2281+
"@type": "AnonymousClassExpression"
2282+
},
2283+
"postconditions": {
2284+
"slot_conditions": [
2285+
{
2286+
"name": "object_id",
2287+
"required": true,
2288+
"@type": "SlotDefinition"
2289+
}
2290+
],
2291+
"@type": "AnonymousClassExpression"
2292+
},
2293+
"@type": "ClassRule"
2294+
}
2295+
],
21882296
"@type": "ClassDefinition"
21892297
},
21902298
{
@@ -2315,9 +2423,9 @@
23152423
],
23162424
"metamodel_version": "1.7.0",
23172425
"source_file": "sssom_schema.yaml",
2318-
"source_file_date": "2024-08-06T18:58:28",
2319-
"source_file_size": 31410,
2320-
"generation_date": "2024-08-06T18:58:48",
2426+
"source_file_date": "2024-08-09T22:23:57",
2427+
"source_file_size": 32836,
2428+
"generation_date": "2024-08-09T22:25:39",
23212429
"@type": "SchemaDefinition",
23222430
"@context": [
23232431
"project/jsonld/sssom_schema.context.jsonld",

project/jsonschema/sssom_schema.schema.json

Lines changed: 94 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,100 @@
4343
},
4444
"Mapping": {
4545
"additionalProperties": false,
46+
"allOf": [
47+
{
48+
"if": {
49+
"properties": {
50+
"subject_type": {
51+
"const": "rdfs literal"
52+
}
53+
},
54+
"required": [
55+
"subject_type"
56+
]
57+
},
58+
"then": {
59+
"properties": {
60+
"subject_label": {}
61+
},
62+
"required": [
63+
"subject_label"
64+
]
65+
}
66+
},
67+
{
68+
"if": {
69+
"properties": {
70+
"subject_type": {
71+
"not": {
72+
"anyOf": [
73+
{
74+
"const": "rdfs literal"
75+
}
76+
]
77+
}
78+
}
79+
},
80+
"required": [
81+
"subject_type"
82+
]
83+
},
84+
"then": {
85+
"properties": {
86+
"subject_id": {}
87+
},
88+
"required": [
89+
"subject_id"
90+
]
91+
}
92+
},
93+
{
94+
"if": {
95+
"properties": {
96+
"object_type": {
97+
"const": "rdfs literal"
98+
}
99+
},
100+
"required": [
101+
"object_type"
102+
]
103+
},
104+
"then": {
105+
"properties": {
106+
"object_label": {}
107+
},
108+
"required": [
109+
"object_label"
110+
]
111+
}
112+
},
113+
{
114+
"if": {
115+
"properties": {
116+
"object_type": {
117+
"not": {
118+
"anyOf": [
119+
{
120+
"const": "rdfs literal"
121+
}
122+
]
123+
}
124+
}
125+
},
126+
"required": [
127+
"object_type"
128+
]
129+
},
130+
"then": {
131+
"properties": {
132+
"object_id": {}
133+
},
134+
"required": [
135+
"object_id"
136+
]
137+
}
138+
}
139+
],
46140
"description": "Represents an individual mapping between a pair of entities",
47141
"properties": {
48142
"author_id": {
@@ -301,9 +395,7 @@
301395
}
302396
},
303397
"required": [
304-
"subject_id",
305398
"predicate_id",
306-
"object_id",
307399
"mapping_justification"
308400
],
309401
"title": "Mapping",

project/prefixmap/sssom_schema.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
"Mapping": {
1515
"@id": "owl:Axiom"
1616
}
17-
}
17+
}

project/protobuf/sssom_schema.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
syntax="proto3";
2+
package
3+
// metamodel_version: 1.7.0
14
// A definition of an extension (non-standard) slot.
25
message ExtensionDefinition
36
{

0 commit comments

Comments
 (0)