Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make units a lookup #141

Open
joerivandervelde opened this issue Jun 16, 2022 · 0 comments
Open

Make units a lookup #141

joerivandervelde opened this issue Jun 16, 2022 · 0 comments

Comments

@joerivandervelde
Copy link
Collaborator

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant