Skip to content

Commit

Permalink
make files - refresh sssom (#204)
Browse files Browse the repository at this point in the history
* make files - refresh sssom

* Updating the contexts

Co-authored-by: Harshad Hegde <[email protected]>
  • Loading branch information
matentzn and hrshdhgd authored Feb 14, 2022
1 parent 83b6038 commit 52ad5ae
Show file tree
Hide file tree
Showing 11 changed files with 584 additions and 303 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PYTHON=python
DEFAULT_PREFIX_MAP="https://raw.githubusercontent.com/bioregistry/bioregistry/main/docs/_data/contexts/obo_synonyms.context.jsonld"
DEFAULT_PREFIX_MAP="https://raw.githubusercontent.com/biopragmatics/bioregistry/main/exports/contexts/obo_synonyms.context.jsonld"
SSSOM_PY="https://raw.githubusercontent.com/mapping-commons/sssom/master/sssom/sssom.py"
SSSOM_YAML="https://raw.githubusercontent.com/mapping-commons/sssom/master/sssom/model/schema/sssom.yaml"
SSSOM_JSON_SCHEMA="https://raw.githubusercontent.com/mapping-commons/sssom/master/sssom/jsonschema/sssom.schema.json"
Expand Down Expand Up @@ -43,6 +43,7 @@ sssom/internal_context.py: schema/sssom.context.jsonld
echo "\"\"\"This module contains an autogenerated copy of the internal SSSOM context.\"\"\"" > $@
echo "" >> $@
echo "# This is autogenerated and super hacky." >> $@
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\",]" >> $@
echo "sssom_context = \"\"\"" >> $@
cat $< >> $@
echo "\"\"\"" >> $@
Expand Down
47 changes: 21 additions & 26 deletions schema/sssom.context.jsonld
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"_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 ",
"_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 ",
"@context": {
"Orphanet": {
"@id": "http://www.orpha.net/ORDO/Orphanet_",
Expand All @@ -23,7 +23,7 @@
"sssom": "http://w3id.org/sssom/",
"@vocab": "http://w3id.org/sssom/",
"author_id": {
"@type": "@id",
"@type": "rdfs:Resource",
"@id": "pav:authoredBy"
},
"comment": {
Expand All @@ -33,7 +33,7 @@
"@type": "xsd:double"
},
"creator_id": {
"@type": "@id",
"@type": "rdfs:Resource",
"@id": "dc:creator"
},
"license": {
Expand Down Expand Up @@ -62,12 +62,15 @@
"@type": "@id"
},
"mapping_set_source": {
"@type": "@id",
"@type": "rdfs:Resource",
"@id": "prov:wasDerivedFrom"
},
"mapping_set_version": {
"@id": "owl:versionInfo"
},
"mapping_source": {
"@type": "rdfs:Resource"
},
"mappings": {
"@type": "@id"
},
Expand All @@ -88,16 +91,11 @@
}
},
"object_id": {
"@type": "@id",
"@type": "rdfs:Resource",
"@id": "owl:annotatedTarget"
},
"object_match_field": {
"@context": {
"@vocab": "@null",
"text": "skos:notation",
"description": "skos:prefLabel",
"meaning": "@id"
}
"@type": "rdfs:Resource"
},
"object_preprocessing": {
"@context": {
Expand All @@ -111,36 +109,36 @@
"@type": "@id"
},
"predicate_id": {
"@type": "@id",
"@type": "rdfs:Resource",
"@id": "owl:annotatedProperty"
},
"predicate_modifier": {
"@context": {
"@vocab": "@null",
"text": "skos:notation",
"description": "skos:prefLabel",
"meaning": "@id"
}
},
"publication_date": {
"@type": "xsd:date",
"@id": "dc:created"
},
"reviewer_id": {
"@type": "@id"
"@type": "rdfs:Resource"
},
"see_also": {
"@id": "rdfs:seeAlso"
},
"semantic_similarity_measure": {
"@type": "@id"
},
"semantic_similarity_score": {
"@type": "xsd:double"
},
"subject_id": {
"@type": "@id",
"@type": "rdfs:Resource",
"@id": "owl:annotatedSource"
},
"subject_match_field": {
"@context": {
"@vocab": "@null",
"text": "skos:notation",
"description": "skos:prefLabel",
"meaning": "@id"
}
"@type": "rdfs:Resource"
},
"subject_preprocessing": {
"@context": {
Expand All @@ -153,9 +151,6 @@
"subject_source": {
"@type": "@id"
},
"subject_source_version": {
"@type": "@id"
},
"Mapping": {
"@id": "owl:Axiom"
}
Expand Down
Loading

0 comments on commit 52ad5ae

Please sign in to comment.