query-8520ebb850e514aea194fc3059b28da9

rq turtle/ttl

A complete table

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?publicationdate ?cited_work ?follows ?basedon ?influencedby ?inspiredby 
WHERE
{
   {?item wdt:P31 wd:Q1643932} UNION {?item wdt:P31 wd:Q2164067} 
   ?item wdt:P577 ?_date.
   BIND(str(YEAR(?_date)) AS ?publicationdate)
   OPTIONAL {?item wdt:P2860 ?cited_work. }
   OPTIONAL {?item wdt:P155 ?follows. }  
   OPTIONAL {?item wdt:P144 ?basedon. }  
   OPTIONAL {?item wdt:P737 ?influencedby. } 
   OPTIONAL {?item wdt:P941 ?inspiredby. } 

   SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
  FILTER EXISTS { {?cited_work wdt:P31 wd:Q1643932} UNION {?cited_work wdt:P31 wd:Q2164067} }
  FILTER EXISTS { {?follows wdt:P31 wd:Q1643932} UNION {?follows wdt:P31 wd:Q2164067} }  
  FILTER EXISTS { {?basedon wdt:P31 wd:Q1643932} UNION {?basedon wdt:P31 wd:Q2164067} }  
  FILTER EXISTS { {?influencedby wdt:P31 wd:Q1643932} UNION {?influencedby wdt:P31 wd:Q2164067} }  
  FILTER EXISTS { {?inspiredby wdt:P31 wd:Q1643932} UNION {?inspiredby wdt:P31 wd:Q2164067} }  
}
ORDER BY ?publicationdate ?item

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v8("?_date") v5("?basedon"):::projected v7("?cited_work"):::projected v6("?follows"):::projected v4("?influencedby"):::projected v3("?inspiredby"):::projected v2("?item"):::projected v9("?publicationdate"):::projected c2(["wd:Q1643932"]):::iri c13(["en"]):::literal c3(["wd:Q2164067"]):::iri c11(["bd:serviceParam"]):::iri f0[[" "]] subgraph f0e0["Exists Clause"] subgraph unione00[" Union "] subgraph unione00l[" "] style unione00l fill:#abf,stroke-dasharray: 3 3; e0v1 --"wdt:P31"--> e0c3 end subgraph unione00r[" "] style unione00r fill:#abf,stroke-dasharray: 3 3; e0v1 --"wdt:P31"--> e0c2 end unione00r <== or ==> unione00l end e0v1("?inspiredby"):::projected e0c3(["wd:Q2164067"]):::iri e0c2(["wd:Q1643932"]):::iri end f0--EXISTS--> f0e0 f0 --> v3 f0 --> c1 f0 --> c2 f0 --> c3 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P31"--> c3 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P31"--> c2 end union0r <== or ==> union0l end f1[[" "]] subgraph f1e1["Exists Clause"] subgraph unione10[" Union "] subgraph unione10l[" "] style unione10l fill:#abf,stroke-dasharray: 3 3; e1v1 --"wdt:P31"--> e1c3 end subgraph unione10r[" "] style unione10r fill:#abf,stroke-dasharray: 3 3; e1v1 --"wdt:P31"--> e1c2 end unione10r <== or ==> unione10l end e1v1("?influencedby"):::projected e1c3(["wd:Q2164067"]):::iri e1c2(["wd:Q1643932"]):::iri end f1--EXISTS--> f1e1 f1 --> v4 f1 --> c1 f1 --> c2 f1 --> c3 subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; v4 --"wdt:P31"--> c3 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v4 --"wdt:P31"--> c2 end union1r <== or ==> union1l end f2[[" "]] subgraph f2e2["Exists Clause"] subgraph unione20[" Union "] subgraph unione20l[" "] style unione20l fill:#abf,stroke-dasharray: 3 3; e2v1 --"wdt:P31"--> e2c3 end subgraph unione20r[" "] style unione20r fill:#abf,stroke-dasharray: 3 3; e2v1 --"wdt:P31"--> e2c2 end unione20r <== or ==> unione20l end e2v1("?basedon"):::projected e2c3(["wd:Q2164067"]):::iri e2c2(["wd:Q1643932"]):::iri end f2--EXISTS--> f2e2 f2 --> v5 f2 --> c1 f2 --> c2 f2 --> c3 subgraph union2[" Union "] subgraph union2l[" "] style union2l fill:#abf,stroke-dasharray: 3 3; v5 --"wdt:P31"--> c3 end subgraph union2r[" "] style union2r fill:#abf,stroke-dasharray: 3 3; v5 --"wdt:P31"--> c2 end union2r <== or ==> union2l end f3[[" "]] subgraph f3e3["Exists Clause"] subgraph unione30[" Union "] subgraph unione30l[" "] style unione30l fill:#abf,stroke-dasharray: 3 3; e3v1 --"wdt:P31"--> e3c3 end subgraph unione30r[" "] style unione30r fill:#abf,stroke-dasharray: 3 3; e3v1 --"wdt:P31"--> e3c2 end unione30r <== or ==> unione30l end e3v1("?follows"):::projected e3c3(["wd:Q2164067"]):::iri e3c2(["wd:Q1643932"]):::iri end f3--EXISTS--> f3e3 f3 --> v6 f3 --> c1 f3 --> c2 f3 --> c3 subgraph union3[" Union "] subgraph union3l[" "] style union3l fill:#abf,stroke-dasharray: 3 3; v6 --"wdt:P31"--> c3 end subgraph union3r[" "] style union3r fill:#abf,stroke-dasharray: 3 3; v6 --"wdt:P31"--> c2 end union3r <== or ==> union3l end f4[[" "]] subgraph f4e4["Exists Clause"] subgraph unione40[" Union "] subgraph unione40l[" "] style unione40l fill:#abf,stroke-dasharray: 3 3; e4v1 --"wdt:P31"--> e4c3 end subgraph unione40r[" "] style unione40r fill:#abf,stroke-dasharray: 3 3; e4v1 --"wdt:P31"--> e4c2 end unione40r <== or ==> unione40l end e4v1("?cited_work"):::projected e4c3(["wd:Q2164067"]):::iri e4c2(["wd:Q1643932"]):::iri end f4--EXISTS--> f4e4 f4 --> v7 f4 --> c1 f4 --> c2 f4 --> c3 subgraph union4[" Union "] subgraph union4l[" "] style union4l fill:#abf,stroke-dasharray: 3 3; v7 --"wdt:P31"--> c3 end subgraph union4r[" "] style union4r fill:#abf,stroke-dasharray: 3 3; v7 --"wdt:P31"--> c2 end union4r <== or ==> union4l end subgraph union5[" Union "] subgraph union5l[" "] style union5l fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P31"--> c3 end subgraph union5r[" "] style union5r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P31"--> c2 end union5r <== or ==> union5l end v2 --"wdt:P577"--> v8 bind5[/"str(year-from-dateTime(?_date))"/] v8 --o bind5 bind5 --as--o v9 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P2860".-> v7 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P155".-> v6 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P144".-> v5 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P737".-> v4 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P941".-> v3 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end