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

How can I get all metabolite/compound IDs in all WikiPathways pathways? #19

Open
kozo2 opened this issue Oct 5, 2023 · 2 comments
Open
Assignees

Comments

@kozo2
Copy link

kozo2 commented Oct 5, 2023

If anyone knows the SPARQL for the title, please let me know!
Also, I'd like to add that SPARQL to this repository!

@egonw egonw self-assigned this Feb 26, 2024
@egonw
Copy link
Member

egonw commented Feb 26, 2024

hi @kozo2, sorry, I seem to have missed this one

@egonw
Copy link
Member

egonw commented Feb 26, 2024

Something like this?

select distinct ?wpid ?wikidata (str(?label) as ?Metabolite) where {
  ?Metabolite a wp:Metabolite ; 
    rdfs:label ?label ;
    wp:bdbWikidata ?wikidata ;
    dcterms:isPartOf ?pathway .
  ?pathway a wp:Pathway ; dcterms:identifier ?wpid .
}

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

2 participants