Skip to content

Commit

Permalink
Fix SSSOM Schema not having bijective prefix map (#302)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cthoyt committed Jul 25, 2023
1 parent a553df4 commit 0ff31e4
Show file tree
Hide file tree
Showing 10 changed files with 370 additions and 365 deletions.
Binary file modified project/excel/sssom_schema.xlsx
Binary file not shown.
11 changes: 5 additions & 6 deletions project/jsonld/sssom_schema.context.jsonld
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"comments": {
"description": "Auto generated by LinkML jsonld context generator",
"generation_date": "2023-07-25T09:55:30",
"generation_date": "2023-07-25T10:05:02",
"source": "sssom_schema.yaml"
},
"@context": {
"dc": "http://purl.org/dc/terms/",
"dcterms": "http://purl.org/dc/terms/",
"linkml": "https://w3id.org/linkml/",
"oboInOwl": "http://www.geneontology.org/formats/oboInOwl#",
Expand All @@ -30,7 +29,7 @@
},
"creator_id": {
"@type": "rdfs:Resource",
"@id": "dc:creator"
"@id": "dcterms:creator"
},
"curation_rule": {
"@type": "rdfs:Resource"
Expand Down Expand Up @@ -73,7 +72,7 @@
"@type": "rdfs:Resource"
},
"mapping_set_description": {
"@id": "dc:description"
"@id": "dcterms:description"
},
"mapping_set_id": {
"@type": "@id"
Expand All @@ -86,7 +85,7 @@
"@id": "prov:wasDerivedFrom"
},
"mapping_set_title": {
"@id": "dc:title"
"@id": "dcterms:title"
},
"mapping_set_version": {
"@id": "owl:versionInfo"
Expand Down Expand Up @@ -143,7 +142,7 @@
},
"publication_date": {
"@type": "xsd:date",
"@id": "dc:created"
"@id": "dcterms:created"
},
"registry_confidence": {
"@type": "xsd:double"
Expand Down
10 changes: 7 additions & 3 deletions project/jsonld/sssom_schema.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
],
"license": "https://creativecommons.org/publicdomain/zero/1.0/",
"prefixes": [
{
"prefix_prefix": "dcterms",
"prefix_reference": "http://purl.org/dc/terms/"
},
{
"prefix_prefix": "linkml",
"prefix_reference": "https://w3id.org/linkml/"
Expand Down Expand Up @@ -1816,9 +1820,9 @@
],
"metamodel_version": "1.7.0",
"source_file": "sssom_schema.yaml",
"source_file_date": "2023-07-25T09:52:38",
"source_file_size": 25654,
"generation_date": "2023-07-25T09:55:31",
"source_file_date": "2023-07-25T10:02:33",
"source_file_size": 25711,
"generation_date": "2023-07-25T10:05:03",
"@type": "SchemaDefinition",
"@context": [
"project/jsonld/sssom_schema.context.jsonld",
Expand Down
Loading

0 comments on commit 0ff31e4

Please sign in to comment.