query-ce5a1ef19a182316557c1ecac7d5861f

rq turtle/ttl

TODO

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item ?name ?v1 WHERE {
  ?site schema:isPartOf <https://zh.wikisource.org/>;
        schema:name ?name;
        schema:about ?item.
  ?item p:P31 ?a;
        p:P31 ?b;
        wdt:P31 wd:Q96323943.
  ?a ps:P31 ?v1.
  ?b ps:P31 ?v2.
  FILTER(?v1=?v2)
  FILTER(?a != ?b)
  }

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?a") v2("?b") v7("?item"):::projected v6("?name"):::projected v5("?site") v3("?v1"):::projected v4("?v2") c2([https://zh.wikisource.org/]):::iri c7(["wd:Q96323943"]):::iri f0[["?a != ?b"]] f0 --> v1 f0 --> v2 f1[["?v1 = ?v2"]] f1 --> v3 f1 --> v4 v5 --"schema:isPartOf"--> c2 v5 --"schema:name"--> v6 v5 --"schema:about"--> v7 v7 --"p:P31"--> v1 v7 --"p:P31"--> v2 v7 --"p:direct/P31"--> c7 v1 --"p:statement/P31"--> v3 v2 --"p:statement/P31"--> v4