From 6f8238a2137177ec7f81a487d90c6d7851d315e0 Mon Sep 17 00:00:00 2001 From: tarcisiotmf Date: Tue, 10 Dec 2024 18:05:06 +0100 Subject: [PATCH] limit query results --- examples/dbgi/007.ttl | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/examples/dbgi/007.ttl b/examples/dbgi/007.ttl index 0a80c401f..0b93b7619 100644 --- a/examples/dbgi/007.ttl +++ b/examples/dbgi/007.ttl @@ -16,14 +16,8 @@ PREFIX emi: PREFIX sosa: SELECT DISTINCT ?ik ?wd_id ?taxon ?taxon_name -WHERE { - SERVICE { - ?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 ; @@ -50,7 +44,12 @@ WHERE { ?ik2d emi:hasSMILES ?smiles ; emi:isInChIKey2DOf ?ik . ?ik emi:isInChIKeyOf ?wd_id . - } + } LIMIT 50 + } + SERVICE { + ?wd_id wdt:P31 wd:Q113145171 ; + wdt:P703 ?taxon . + ?taxon wdt:P225 ?taxon_name . } }""" ; schema:target ;