query-f36d955acd63b558fbc646797fbb3976

rq turtle/ttl

String searchHello, does this query work well ?

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdno: <http://www.wikidata.org/prop/novalue/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
select ?item ?itemLabel where { 
?item  rdfs:label ?label .
    ?item p:P31 ?instance .
    ?instance a wdno:P31 . #no instance set
FILTER( LANG(?label) = "en" ) .
FILTER( CONTAINS(?label, "siege") ) . #look for word inside the label
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } .
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?instance") v2("?item"):::projected v1("?label") c6(["p:novalue/P31"]):::iri c8(["bd:serviceParam"]):::iri c2(["en"]):::literal f0[["contains(?label,'siege')"]] f0 --> v1 f1[["?label = 'en'"]] f1 --> v1 v2 --"rdfs:label"--> v1 v2 --"p:P31"--> v3 v3 --"a"--> c6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c2 end