query-a71df966672b84d4469d0dec4d6fa3a7

rq turtle/ttl

Sample query to start a list of values for property P5698

Remove some of the "#" below to see if it helps you

sample variables defined below (but commented out)

item wdt:P569 ?dob .

?item wdt:P17 ?country .

SELECT ?item ?itemLabel ?value ?beneficial_insects ?parent_taxon ?parent_taxonLabel WHERE { ?item wdt:P5698 ?value. SERVICE wikibase:label { bd:serviceParam wikibase:language "en,en". } ?beneficial_insects wdt:P301 wd:Q8194294. OPTIONAL { ?beneficial_insects wdt:P171 ?parent_taxon. } } LIMIT 100

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Sample query to start a list of values for property P5698
#Remove some of the "#" below to see if it helps you
#sample variables defined below (but commented out)
#item wdt:P569 ?dob . 
#   ?item wdt:P17 ?country .
SELECT ?item ?itemLabel ?value ?beneficial_insects ?parent_taxon ?parent_taxonLabel WHERE {
  ?item wdt:P5698 ?value.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en,en". }
  ?beneficial_insects wdt:P301 wd:Q8194294.
  OPTIONAL { ?beneficial_insects wdt:P171 ?parent_taxon. }
}
LIMIT 100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?beneficial_insects"):::projected v1("?item"):::projected v4("?parent_taxon"):::projected v2("?value"):::projected c3(["bd:serviceParam"]):::iri c7(["wd:Q8194294"]):::iri c5(["en,en"]):::literal v1 --"wdt:P5698"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c3 --"wikibase:language"--> c5 end v3 --"wdt:P301"--> c7 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P171".-> v4 end