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

Automatically add the FYPO namespace to the OWL file #4686

Open
kimrutherford opened this issue Mar 14, 2025 · 0 comments
Open

Automatically add the FYPO namespace to the OWL file #4686

kimrutherford opened this issue Mar 14, 2025 · 0 comments
Assignees

Comments

@kimrutherford
Copy link
Member

Try Jim Balhoff's suggestion from email:


14 Mar 2025, 07:33 Re: [go-ontology] automatic namespace additions

Hi Val,

I think it should be easy, if you are able to run ROBOT in your pipeline. Here you can see I added a 'robot query --update’ step: https://github.com/geneontology/go-ontology/pull/29894/files#diff-1376bbad1ef43bed6c9aed84b7d52471e63c87277b2b3f72ed0a5bdef481b638R204

It uses this SPARQL update: https://github.com/geneontology/go-ontology/pull/29894/files#diff-c94c78b5f711d0fd41011be8b9b0187c39415fd03f8e812f7a13c6915218ee6d

I think yours can be simpler, like:

PREFIX rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
PREFIX rdfs: http://www.w3.org/2000/01/rdf-schema#
PREFIX owl: http://www.w3.org/2002/07/owl#
prefix xsd: http://www.w3.org/2001/XMLSchema#
PREFIX oio: http://www.geneontology.org/formats/oboInOwl#
PREFIX GO: http://purl.obolibrary.org/obo/GO_

INSERT {
?term oio:hasOBONamespace "fission_yeast_phenotype" .
}
WHERE {
?term a owl:Class .
FILTER(isIRI(?term))
FILTER(STRSTARTS(STR(?term), "http://purl.obolibrary.org/obo/FYPO_"))
}

@kimrutherford kimrutherford self-assigned this Mar 14, 2025
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