-
Notifications
You must be signed in to change notification settings - Fork 15
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
Conversation
@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? |
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. |
thanks. ok, will give it a try and ping you once I think it's ready for merge. |
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 |
There was a problem hiding this comment.
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.
oma/02-all-species.ttl
Outdated
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 |
There was a problem hiding this comment.
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/> ; |
There was a problem hiding this comment.
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.
starting to add the oma sparql examples to this repo. for now only seeking feedback if this is the intended way to integrate them.