fairgenomes / fairgenomes-semantic-model

FAIR Genomes semantic metadata model. The core is a YAML file, which is transformed into all other desired output formats.
Other
12 stars 7 forks source link

Make units a lookup #141

Open joerivandervelde opened 2 years ago

joerivandervelde commented 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
}
REPLACE: "http://purl.obolibrary.org/obo/(.+?)_(.+?)"\t"(.+?)"
BY: \3\t\3\t\1\t\2\thttp://purl.obolibrary.org/obo/\1_\2