query-fe7f38b0e3442f7d18c2648d37d947a4

rq turtle/ttl

People with The Peerage IDs, enwiki pages, and a familiar description pattern

Currently over 1,300 as of 21 Feb 2022.

SELECT DISTINCT ?item ?itemLabel ?d { ?item wdt:P4638 ?id; schema:description ?d . FILTER( lang(?d) = "en" && strstarts(?d, "(1") ) FILTER EXISTS { [] schema:about ?item ; schema:isPartOf https://en.wikipedia.org/ } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# People with The Peerage IDs, enwiki pages, and a familiar description pattern
# Currently over 1,300 as of 21 Feb 2022.
SELECT DISTINCT ?item ?itemLabel ?d 
{
  ?item wdt:P4638 ?id; schema:description ?d .
  FILTER( lang(?d) = "en" && strstarts(?d, "(1") )
  FILTER EXISTS { [] schema:about ?item ; schema:isPartOf <https://en.wikipedia.org/> }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?d"):::projected v3("?id") v1("?item"):::projected a1((" ")) c3([https://en.wikipedia.org/]):::iri c9(["bd:serviceParam"]):::iri c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[[" "]] subgraph f0e0["Exists Clause"] e0a1 --"schema:about"--> e0v1 e0a1 --"schema:isPartOf"--> e0c3 e0v1("?item"):::projected e0a1((" ")):::projected e0c3([https://en.wikipedia.org/]):::iri end f0--EXISTS--> f0e0 f0 --> a1 f0 --> c1 f0 --> v1 f0 --> c2 f0 --> c3 a1 --"schema:about"--> v1 a1 --"schema:isPartOf"--> c3 f1[["?d = 'en'starts-with(?d,'(1')"]] f1 --> v2 v1 --"wdt:P4638"--> v3 v1 --"schema:description"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end