-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testing with a few initial oma sparql querries
- Loading branch information
Showing
4 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
prefix ex: <https://sparql.omabrowser.org/.well-known/sparql-examples/> | ||
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 | ||
a sh:SPARQLSelectExecutable, sh:SPARQLExecutable ; | ||
sh:prefixes _:sparql_examples_prefixes ; | ||
schema:target <https://sparql.omabrowser.org/sparql/> ; | ||
rdfs:comment """Find all Rattus norvegicus' proteins present in OMA RDF database.""" ; | ||
sh:select """SELECT ?protein ?OMA_link | ||
WHERE | ||
{ | ||
?protein a orth:Protein. | ||
?protein orth:organism ?organism. | ||
?inTaxon rdfs:label 'in taxon'@en. | ||
?organism ?inTaxon ?taxon. | ||
?taxon up:scientificName 'Rattus norvegicus'. | ||
?protein rdfs:seeAlso ?OMA_link. | ||
}""" . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
prefix ex: <https://sparql.omabrowser.org/.well-known/sparql-examples/> | ||
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 | ||
a sh:SPARQLSelectExecutable, sh:SPARQLExecutable ; | ||
sh:prefixes _:sparql_examples_prefixes ; | ||
schema:target <https://sparql.omabrowser.org/sparql/> ; | ||
rdfs:comment """Which species are available on OMA database and their scientific names?""" ; | ||
sh:select """SELECT ?species ?sciname WHERE | ||
{ | ||
?species a up:Taxon. | ||
?species up:scientificName ?sciname. | ||
?species up:rank up:Species. | ||
}""" . | ||
|