query-cd4bad8488a45c6eb893cb9f3d90f8ef

rq turtle/ttl

ESPs que tenen el mot "nucli" a la seva descripciĆ³

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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?idescat ?item ?itemDescription ?itemLabel ?muniLabel WHERE {
  ?item wdt:P31 wd:Q3055118;
        wdt:P131* wd:Q5705;
#        wdt:P131 ?muni;
        wdt:P4335 ?idescat.
        FILTER (STRLEN(?idescat)=13)
#  MINUS {?muni wdt:P31 wd:Q33146843}

  SERVICE wikibase:label
    {
      bd:serviceParam wikibase:language "ca,es,en" .
      ?item rdfs:label ?itemLabel .
      ?item schema:description ?itemDescription .
    }

  FILTER (CONTAINS(?itemDescription, "ucli"))
#  ?item wdt:P31 wd:Q11939023
#  MINUS {?item wdt:P2044 ?what}.

}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?idescat"):::projected v3("?item"):::projected v1("?itemDescription"):::projected v4("?itemLabel"):::projected c6(["wd:Q5705"]):::iri c4(["wd:Q3055118"]):::iri c9(["bd:serviceParam"]):::iri c11(["ca,es,en"]):::literal f0[["contains(?itemDescription,'ucli')"]] f0 --> v1 f1[["string-length(?idescat) = '13^^xsd:integer'"]] f1 --> v2 v3 --"wdt:P31"--> c4 v3 --"wdt:P131"--> c6 v3 --"wdt:P4335"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 v3 --"rdfs:label"--> v4 v3 --"schema:description"--> v1 end