Open joerivandervelde opened 2 years ago
Compose list of unit ontology terms:
use http://sparql.hegroup.org/sparql/
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX skos: <http://www.w3.org/2004/02/skos/core#> SELECT DISTINCT ?s str(?l) WHERE { ?s rdfs:subClassOf* <http://purl.obolibrary.org/obo/NCIT_C42568> . ?s rdfs:label ?l }
Remove any “unit of” lines
Remove parent term NCIT_C42568
Apply regexp:
REPLACE: "http://purl.obolibrary.org/obo/(.+?)_(.+?)"\t"(.+?)" BY: \3\t\3\t\1\t\2\thttp://purl.obolibrary.org/obo/\1_\2
Compose list of unit ontology terms:
use http://sparql.hegroup.org/sparql/
Remove any “unit of” lines
Remove parent term NCIT_C42568
Apply regexp: