query-3b858b2531272fbb9a2fa568861b515c

rq turtle/ttl

title:SBN IDs from BNCF not qualified SELECT DISTINCT ?item ?itemLabel ?vid ?ind WHERE { ?item wdt:P31 wd:Q5 ; p:P396 [ ps:P396 ?vid ; pq:P1810 ?ind ] . FILTER(CONTAINS(?vid, "CFI")) FILTER(!REGEX(?ind, "<")) SERVICE wikibase:label { bd:serviceParam wikibase:language "it,en". } } ORDER BY ?itemLabel

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title:SBN IDs from BNCF not qualified
SELECT DISTINCT ?item ?itemLabel ?vid ?ind
WHERE {
  ?item wdt:P31 wd:Q5 ; p:P396 [ ps:P396 ?vid ; pq:P1810 ?ind ] .
  FILTER(CONTAINS(?vid, "CFI"))
  FILTER(!REGEX(?ind, "<"))
  SERVICE wikibase:label { bd:serviceParam wikibase:language "it,en". }
}
ORDER BY ?itemLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?ind"):::projected v4("?item"):::projected v1("?itemLabel"):::projected v3("?vid"):::projected a1((" ")) c9(["bd:serviceParam"]):::iri c11(["it,en"]):::literal c4(["wd:Q5"]):::iri f0[["not regex(?ind,'<')"]] f0 --> v2 f1[["contains(?vid,'CFI')"]] f1 --> v3 v4 --"p:direct/P31"--> c4 a1 --"p:statement/P396"--> v3 a1 --"p:qualifier/P1810"--> v2 v4 --"p:P396"--> a1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end