query-ce1b871c9da169c3986dd95877835d44
Data-driven semantic clustering
Use at
- https://query.wikidata.org/sparql
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
#defaultView:Graph
SELECT ?item1 ?item1Label ?item2 ?item2Label WHERE {
VALUES ?item1Label {"Congressional Black Caucus"@en
"Barack Obama"@en
"Michelle Obama"@en
"University of Chicago"@en
"Time Person of the Year"@en
"Democratic Party"@en
"White House"@en
"Hillary Clinton"@en
"Aragorn"@en
"C. S. Lewis"@en
"J. R. R. Tolkien"@en
"University of Oxford"@en
"World War I"@en
"Battle of the Somme"@en
"British Army"@en
"The Lord of the Rings"@en}
VALUES ?item2Label {"Congressional Black Caucus"@en
"Barack Obama"@en
"Michelle Obama"@en
"University of Chicago"@en
"Time Person of the Year"@en
"Democratic Party"@en
"White House"@en
"Hillary Clinton"@en
"Aragorn"@en
"C. S. Lewis"@en
"J. R. R. Tolkien"@en
"University of Oxford"@en
"World War I"@en
"Battle of the Somme"@en
"British Army"@en
"The Lord of the Rings"@en}
?item1 rdfs:label ?item1Label.
?item2 rdfs:label ?item2Label.
?item1 ?prop ?item2
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item1"):::projected
v1("?item1Label"):::projected
v4("?item2"):::projected
v2("?item2Label"):::projected
v5("?prop")
bind0[/VALUES ?item1Label/]
bind0-->v1
bind00([sCongressional Black Caucus^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind00 --> bind0
bind01([sBarack Obama^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind01 --> bind0
bind02([sMichelle Obama^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind02 --> bind0
bind03([sUniversity of Chicago^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind03 --> bind0
bind04([sTime Person of the Year^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind04 --> bind0
bind05([sDemocratic Party^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind05 --> bind0
bind06([sWhite House^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind06 --> bind0
bind07([sHillary Clinton^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind07 --> bind0
bind08([sAragorn^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind08 --> bind0
bind09([sC. S. Lewis^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind09 --> bind0
bind010([sJ. R. R. Tolkien^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind010 --> bind0
bind011([sUniversity of Oxford^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind011 --> bind0
bind012([sWorld War I^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind012 --> bind0
bind013([sBattle of the Somme^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind013 --> bind0
bind014([sBritish Army^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind014 --> bind0
bind015([sThe Lord of the Rings^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind015 --> bind0
bind1[/VALUES ?item2Label/]
bind1-->v2
bind10([sCongressional Black Caucus^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind10 --> bind1
bind11([sBarack Obama^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind11 --> bind1
bind12([sMichelle Obama^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind12 --> bind1
bind13([sUniversity of Chicago^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind13 --> bind1
bind14([sTime Person of the Year^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind14 --> bind1
bind15([sDemocratic Party^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind15 --> bind1
bind16([sWhite House^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind16 --> bind1
bind17([sHillary Clinton^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind17 --> bind1
bind18([sAragorn^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind18 --> bind1
bind19([sC. S. Lewis^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind19 --> bind1
bind110([sJ. R. R. Tolkien^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind110 --> bind1
bind111([sUniversity of Oxford^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind111 --> bind1
bind112([sWorld War I^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind112 --> bind1
bind113([sBattle of the Somme^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind113 --> bind1
bind114([sBritish Army^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind114 --> bind1
bind115([sThe Lord of the Rings^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>"])
bind115 --> bind1
v3 --"rdfs:label"--> v1
v4 --"rdfs:label"--> v2
v3 -->v5--> v4