query-f62f096410113a667cccc2d97d4b41c2

rq turtle/ttl

Query in SPARQL - extraction from descriptionHello, I failed to program that in wikidata query, could you fix that please? SELECT ?item ?itemLabel ?itemDescription WHERE { ?item wdt:P31 wd:Q5. ?item wdt:P27 wd:Q142. SERVICE wikibase:label { bd:serviceParam wikibase:language "fr". } FILTER(regex(str(?itemDescription), "poète français" ) ). } .15:27, 23 May 2020‎ (UTC)) at contribs • talk (176.153.20.155 comment was added byunsignedThe preceding –

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?itemDescription WHERE {
  ?item schema:description 'poète français'@fr .
  ?item wdt:P31 wd:Q5 .
  ?item wdt:P27 wd:Q142 .
  SERVICE wikibase:label { bd:serviceParam wikibase:language 'fr' }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected c8(["bd:serviceParam"]):::iri c2([spoète français^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"]):::literal c4(["wd:Q5"]):::iri c10(["fr"]):::literal c6(["wd:Q142"]):::iri v1 --"schema:description"--> c2 v1 --"wdt:P31"--> c4 v1 --"wdt:P27"--> c6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end