Skip to content

Commit 0ff31e4

Browse files
authored
Fix SSSOM Schema not having bijective prefix map (#302)
There are issues in mapping-commons/sssom-py#397 because the base schema does not have a valid prefix map - `dc` and `dcterms` are both used as prefixes for the same URI prefix. This happens because LinkML makes some inference about what needs to be there - there are some assorted uses throughout the schema definition with both DC and DCTERMS. This PR updates the schema to only use DCTERMS and puts explicit entries for DCTERMS in the prefix map to address this. It then regenerates the whole project.
1 parent a553df4 commit 0ff31e4

File tree

10 files changed

+370
-365
lines changed

10 files changed

+370
-365
lines changed

project/excel/sssom_schema.xlsx

0 Bytes
Binary file not shown.

project/jsonld/sssom_schema.context.jsonld

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
22
"comments": {
33
"description": "Auto generated by LinkML jsonld context generator",
4-
"generation_date": "2023-07-25T09:55:30",
4+
"generation_date": "2023-07-25T10:05:02",
55
"source": "sssom_schema.yaml"
66
},
77
"@context": {
8-
"dc": "http://purl.org/dc/terms/",
98
"dcterms": "http://purl.org/dc/terms/",
109
"linkml": "https://w3id.org/linkml/",
1110
"oboInOwl": "http://www.geneontology.org/formats/oboInOwl#",
@@ -30,7 +29,7 @@
3029
},
3130
"creator_id": {
3231
"@type": "rdfs:Resource",
33-
"@id": "dc:creator"
32+
"@id": "dcterms:creator"
3433
},
3534
"curation_rule": {
3635
"@type": "rdfs:Resource"
@@ -73,7 +72,7 @@
7372
"@type": "rdfs:Resource"
7473
},
7574
"mapping_set_description": {
76-
"@id": "dc:description"
75+
"@id": "dcterms:description"
7776
},
7877
"mapping_set_id": {
7978
"@type": "@id"
@@ -86,7 +85,7 @@
8685
"@id": "prov:wasDerivedFrom"
8786
},
8887
"mapping_set_title": {
89-
"@id": "dc:title"
88+
"@id": "dcterms:title"
9089
},
9190
"mapping_set_version": {
9291
"@id": "owl:versionInfo"
@@ -143,7 +142,7 @@
143142
},
144143
"publication_date": {
145144
"@type": "xsd:date",
146-
"@id": "dc:created"
145+
"@id": "dcterms:created"
147146
},
148147
"registry_confidence": {
149148
"@type": "xsd:double"

project/jsonld/sssom_schema.jsonld

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
],
1212
"license": "https://creativecommons.org/publicdomain/zero/1.0/",
1313
"prefixes": [
14+
{
15+
"prefix_prefix": "dcterms",
16+
"prefix_reference": "http://purl.org/dc/terms/"
17+
},
1418
{
1519
"prefix_prefix": "linkml",
1620
"prefix_reference": "https://w3id.org/linkml/"
@@ -1816,9 +1820,9 @@
18161820
],
18171821
"metamodel_version": "1.7.0",
18181822
"source_file": "sssom_schema.yaml",
1819-
"source_file_date": "2023-07-25T09:52:38",
1820-
"source_file_size": 25654,
1821-
"generation_date": "2023-07-25T09:55:31",
1823+
"source_file_date": "2023-07-25T10:02:33",
1824+
"source_file_size": 25711,
1825+
"generation_date": "2023-07-25T10:05:03",
18221826
"@type": "SchemaDefinition",
18231827
"@context": [
18241828
"project/jsonld/sssom_schema.context.jsonld",

0 commit comments

Comments
 (0)