Skip to content

Commit

Permalink
Merge pull request #151 from sib-swiss/tarcisiotmf-patch-1-1
Browse files Browse the repository at this point in the history
limit query results
  • Loading branch information
tarcisiotmf authored Dec 10, 2024
2 parents f3abd36 + 6f8238a commit 04d7696
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions examples/dbgi/007.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,8 @@ PREFIX emi: <https://purl.org/emi#>
PREFIX sosa: <http://www.w3.org/ns/sosa/>
SELECT DISTINCT ?ik ?wd_id ?taxon ?taxon_name
WHERE {
SERVICE <https://query.wikidata.org/sparql> {
?wd_id wdt:P31 wd:Q113145171 ;
wdt:P703 ?taxon .
?taxon wdt:P225 ?taxon_name .
}
{
SELECT DISTINCT ?ik ?chemblid ?name ?type ?value ?wd_id
WHERE {
{SELECT ?ik ?wd_id
WHERE {
?sample a emi:ExtractSample ;
sosa:isSampleOf* ?organe ;
Expand All @@ -50,7 +44,12 @@ WHERE {
?ik2d emi:hasSMILES ?smiles ;
emi:isInChIKey2DOf ?ik .
?ik emi:isInChIKeyOf ?wd_id .
}
} LIMIT 50
}
SERVICE <https://query.wikidata.org/sparql> {
?wd_id wdt:P31 wd:Q113145171 ;
wdt:P703 ?taxon .
?taxon wdt:P225 ?taxon_name .
}
}""" ;
schema:target <https://biosoda.unil.ch/emi/sparql/> ;
Expand Down

0 comments on commit 04d7696

Please sign in to comment.