Open joeflack4 opened 4 months ago
@matentzn @twhetzel I hope I understood correctly what should be done here. I assigned medium urgency to this.
Yes, that is my understanding from the Slack conversation.
For (2), here is a SPARQL query (add_label_as_synonym.sparql) that will take the value of the rdfs:label
and IAO_0000118
properties and add these as exact synonyms to the class with the synonym type GENERATED.
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX oboInOwl: <http://www.geneontology.org/formats/oboInOwl#>
PREFIX obo: <http://purl.obolibrary.org/obo/>
INSERT {
<http://purl.obolibrary.org/obo/mondo#GENERATED> rdf:type owl:AnnotationProperty .
<http://www.geneontology.org/formats/oboInOwl#hasSynonymType> rdf:type owl:AnnotationProperty .
<http://purl.obolibrary.org/obo/mondo#GENERATED> rdfs:subPropertyOf <http://www.geneontology.org/formats/oboInOwl#SynonymTypeProperty> .
?cls oboInOwl:hasExactSynonym ?synonym .
[ rdf:type owl:Axiom ;
owl:annotatedSource ?cls ;
owl:annotatedProperty oboInOwl:hasExactSynonym ;
owl:annotatedTarget ?synonym ;
oboInOwl:hasSynonymType <http://purl.obolibrary.org/obo/mondo#GENERATED> ].
}
WHERE {
VALUES ?property {
rdfs:label
obo:IAO_0000118
}
?cls ?property ?label .
BIND(STR(?label) AS ?synonym)
}
Overview
We discussed the
robot sparql update
fix-labels-with-brackets.ru
(1, 2) `, which is currently part of the component goal for every source.Sub-task list
I think the action items are:
Sub-task details
1. Only apply this update query to OMIM and ICD10CM
Nico wrote:
2. For all other sources, apply a new query
Nico wrote: