Skip to content

Commit 52ad5ae

Browse files
matentznhrshdhgd
andauthored
make files - refresh sssom (#204)
* make files - refresh sssom * Updating the contexts Co-authored-by: Harshad Hegde <[email protected]>
1 parent 83b6038 commit 52ad5ae

11 files changed

+584
-303
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PYTHON=python
2-
DEFAULT_PREFIX_MAP="https://raw.githubusercontent.com/bioregistry/bioregistry/main/docs/_data/contexts/obo_synonyms.context.jsonld"
2+
DEFAULT_PREFIX_MAP="https://raw.githubusercontent.com/biopragmatics/bioregistry/main/exports/contexts/obo_synonyms.context.jsonld"
33
SSSOM_PY="https://raw.githubusercontent.com/mapping-commons/sssom/master/sssom/sssom.py"
44
SSSOM_YAML="https://raw.githubusercontent.com/mapping-commons/sssom/master/sssom/model/schema/sssom.yaml"
55
SSSOM_JSON_SCHEMA="https://raw.githubusercontent.com/mapping-commons/sssom/master/sssom/jsonschema/sssom.schema.json"
@@ -43,6 +43,7 @@ sssom/internal_context.py: schema/sssom.context.jsonld
4343
echo "\"\"\"This module contains an autogenerated copy of the internal SSSOM context.\"\"\"" > $@
4444
echo "" >> $@
4545
echo "# This is autogenerated and super hacky." >> $@
46+
echo "multivalued_slots = [\"match_type\", \"creator_id\", \"creator_label\", \"author_id\", \"author_label\", \"reviewer_id\", \"reviewer_label\", \"license\", \"mapping_set_source\", \"subject_match_field\", \"object_match_field\", \"match_string\", \"subject_preprocessing\", \"object_preprocessing\",\"see_also\",]" >> $@
4647
echo "sssom_context = \"\"\"" >> $@
4748
cat $< >> $@
4849
echo "\"\"\"" >> $@

schema/sssom.context.jsonld

Lines changed: 21 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"_comments": "Auto generated from sssom.yaml by jsonldcontextgen.py version: 0.1.1\n Generation date: 2021-10-11 20:25\n Schema: sssom\n \n id: http://w3id.org/sssom/schema/\n description: Datamodel for Simple Standard for Sharing Ontology Mappings (SSSOM)\n license: https://creativecommons.org/publicdomain/zero/1.0/\n ",
2+
"_comments": "Auto generated from sssom.yaml by jsonldcontextgen.py version: 0.1.1\n Generation date: 2022-02-14T15:33:37\n Schema: sssom\n metamodel version: 1.7.0\n model version: None\n \n id: http://w3id.org/sssom/schema/\n description: Datamodel for Simple Standard for Sharing Ontology Mappings (SSSOM)\n license: https://creativecommons.org/publicdomain/zero/1.0/\n ",
33
"@context": {
44
"Orphanet": {
55
"@id": "http://www.orpha.net/ORDO/Orphanet_",
@@ -23,7 +23,7 @@
2323
"sssom": "http://w3id.org/sssom/",
2424
"@vocab": "http://w3id.org/sssom/",
2525
"author_id": {
26-
"@type": "@id",
26+
"@type": "rdfs:Resource",
2727
"@id": "pav:authoredBy"
2828
},
2929
"comment": {
@@ -33,7 +33,7 @@
3333
"@type": "xsd:double"
3434
},
3535
"creator_id": {
36-
"@type": "@id",
36+
"@type": "rdfs:Resource",
3737
"@id": "dc:creator"
3838
},
3939
"license": {
@@ -62,12 +62,15 @@
6262
"@type": "@id"
6363
},
6464
"mapping_set_source": {
65-
"@type": "@id",
65+
"@type": "rdfs:Resource",
6666
"@id": "prov:wasDerivedFrom"
6767
},
6868
"mapping_set_version": {
6969
"@id": "owl:versionInfo"
7070
},
71+
"mapping_source": {
72+
"@type": "rdfs:Resource"
73+
},
7174
"mappings": {
7275
"@type": "@id"
7376
},
@@ -88,16 +91,11 @@
8891
}
8992
},
9093
"object_id": {
91-
"@type": "@id",
94+
"@type": "rdfs:Resource",
9295
"@id": "owl:annotatedTarget"
9396
},
9497
"object_match_field": {
95-
"@context": {
96-
"@vocab": "@null",
97-
"text": "skos:notation",
98-
"description": "skos:prefLabel",
99-
"meaning": "@id"
100-
}
98+
"@type": "rdfs:Resource"
10199
},
102100
"object_preprocessing": {
103101
"@context": {
@@ -111,36 +109,36 @@
111109
"@type": "@id"
112110
},
113111
"predicate_id": {
114-
"@type": "@id",
112+
"@type": "rdfs:Resource",
115113
"@id": "owl:annotatedProperty"
116114
},
115+
"predicate_modifier": {
116+
"@context": {
117+
"@vocab": "@null",
118+
"text": "skos:notation",
119+
"description": "skos:prefLabel",
120+
"meaning": "@id"
121+
}
122+
},
117123
"publication_date": {
118124
"@type": "xsd:date",
119125
"@id": "dc:created"
120126
},
121127
"reviewer_id": {
122-
"@type": "@id"
128+
"@type": "rdfs:Resource"
123129
},
124130
"see_also": {
125131
"@id": "rdfs:seeAlso"
126132
},
127-
"semantic_similarity_measure": {
128-
"@type": "@id"
129-
},
130133
"semantic_similarity_score": {
131134
"@type": "xsd:double"
132135
},
133136
"subject_id": {
134-
"@type": "@id",
137+
"@type": "rdfs:Resource",
135138
"@id": "owl:annotatedSource"
136139
},
137140
"subject_match_field": {
138-
"@context": {
139-
"@vocab": "@null",
140-
"text": "skos:notation",
141-
"description": "skos:prefLabel",
142-
"meaning": "@id"
143-
}
141+
"@type": "rdfs:Resource"
144142
},
145143
"subject_preprocessing": {
146144
"@context": {
@@ -153,9 +151,6 @@
153151
"subject_source": {
154152
"@type": "@id"
155153
},
156-
"subject_source_version": {
157-
"@type": "@id"
158-
},
159154
"Mapping": {
160155
"@id": "owl:Axiom"
161156
}

0 commit comments

Comments
 (0)