query-878384c1cfb5828a1a1d4bc3b5a93bf3

rq turtle/ttl

Wikisource pages linked to humans that aren't in the right namespace

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?person ?wspage WHERE {
  ?person wdt:P31 wd:Q5.
  ?sitelink schema:about ?person; schema:isPartOf <https://en.wikisource.org/>; schema:name ?wspage.
  FILTER (!STRSTARTS(?wspage, "Author:")).
  FILTER (!STRSTARTS(?wspage, "Portal:")).
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?person"):::projected v3("?sitelink") v1("?wspage"):::projected c4(["wd:Q5"]):::iri c7([https://en.wikisource.org/]):::iri f0[["not starts-with(?wspage,'Portal:')"]] f0 --> v1 f1[["not starts-with(?wspage,'Author:')"]] f1 --> v1 v2 --"wdt:P31"--> c4 v3 --"schema:about"--> v2 v3 --"schema:isPartOf"--> c7 v3 --"schema:name"--> v1