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

testing with a few initial oma sparql querries #3

Merged
merged 4 commits into from
May 23, 2024
Merged

Conversation

alpae
Copy link
Collaborator

@alpae alpae commented May 21, 2024

starting to add the oma sparql examples to this repo. for now only seeking feedback if this is the intended way to integrate them.

@alpae
Copy link
Collaborator Author

alpae commented May 21, 2024

@JervenBolleman , how should I include namespace prefixes that are unique to OMA? should they go directly into the query? I've seen there is also a prefixes.ttl file in the root directory, and some tools define a prefixes.ttl file in the sub-directory as well. what's the best way in your view?

@JervenBolleman
Copy link
Collaborator

Hi @alpae , Prefixes should not be in the queries but in a project specific prefixes.ttl. If they are common enough they should go to the top level prefixes.

@alpae
Copy link
Collaborator Author

alpae commented May 21, 2024

thanks. ok, will give it a try and ping you once I think it's ready for merge.

@alpae
Copy link
Collaborator Author

alpae commented May 23, 2024

Hi @JervenBolleman , I think I added all the existing and a few new example queries to the repo. Would be happy if you could merge if you think things are ok

prefix sh: <http://www.w3.org/ns/shacl#>
prefix rdfs:<http://www.w3.org/2000/01/rdf-schema#>
prefix schema:<https://schema.org/>
ex:1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't have to use numbers. You can name them e.g. ex:rat-proteins.

prefix sh: <http://www.w3.org/ns/shacl#>
prefix rdfs:<http://www.w3.org/2000/01/rdf-schema#>
prefix schema:<https://schema.org/>
ex:1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This ex:1 must be different and unique for all files.

ex:1
a sh:SPARQLSelectExecutable, sh:SPARQLExecutable ;
sh:prefixes _:sparql_examples_prefixes ;
schema:target <https://sparql.omabrowser.org/sparql/> ;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can also work on the uniprot sparql endpoint and the bgee one. you can add <https://sparql.uniprot.org/sparql/> , <https://www.bgee.org/sparql/> as extra targets.

@JervenBolleman JervenBolleman merged commit 4feea8c into master May 23, 2024
2 checks passed
@alpae alpae deleted the oma branch May 23, 2024 11:49
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

Successfully merging this pull request may close these issues.

2 participants