Note that there are some explanatory texts on larger screens.

plurals
  1. POGet all Wikipedia Infobox Templates and all Pages using them
    primarykey
    data
    text
    <p>Given a Wikipedia page like <a href="http://en.wikipedia.org/wiki/Stack_Overflow" rel="nofollow noreferrer">Wikipedia: Stack Overflow</a> there are often Infoboxes (mostly on the right hand at the top of the page). Example screenshot:</p> <p><img src="https://i.stack.imgur.com/dSyX2.png" alt="Stackoverflow Infobox at Wikipedia"></p> <ol> <li><p>DBPedia lists all these attributes as RDF triples. You can see the example at <a href="http://dbpedia.org/page/Stack_Overflow" rel="nofollow noreferrer">DBPedia: Stack Overflow</a>. There you see the property <code>dbpprop:wikiPageUsesTemplate</code> with the value <code>dbpedia:Template:Infobox_website</code> which is interesting. I want to know which Wikipedia pages use this template. How can i do that and list all pages which use the Infobox_website template? Preferably with a SPARQL query but i am open to other easy solutions.</p></li> <li><p>Next thing is a list of all Infobox Templates. <a href="http://en.wikipedia.org/wiki/Category:Infobox_templates" rel="nofollow noreferrer">Wikipedia: Category Infobox Templates</a> shows the hierarchy of the desired Wikipedia categories - that looks like what i am seeking. But i want all of these in a machine readable format, on one page. Maybe DBPedia is the right thing here too? At <a href="http://dbpedia.org/page/Category:Infobox_templates" rel="nofollow noreferrer">DBPedia: Category Infox Templates</a> and <a href="http://dbpedia.org/page/Category:INFOBOX" rel="nofollow noreferrer">DBPedia: INFOBOX</a> i find very few information. But these are looking very promising. How can i use SPARQL to find all Infobox Types so that i can do step 1 repeatedly for each of them?</p></li> </ol> <p>You can use this for testing the SPARQL queries: <a href="http://dbpedia.org/snorql/" rel="nofollow noreferrer">http://dbpedia.org/snorql/</a></p> <h2>Update 1</h2> <p>I seem to have solved problem number 1: <a href="http://dbpedia.org/snorql/?query=SELECT%20*%20WHERE%20%7B%20%20?page%20dbpedia2:wikiPageUsesTemplate%20%3Chttp://dbpedia.org/resource/Template:Infobox_website%3E%20.%20%20?page%20dbpedia2:name%20?name%20.%7D" rel="nofollow noreferrer">SPARQL: list all pages with Infobox_website</a></p> <h2>Update 2</h2> <p>Also, this seems to be the query for problem number 2: <a href="http://dbpedia.org/snorql/?query=SELECT%20DISTINCT%20?template%20WHERE%20%7B%0D%0A%20%20?page%20dbpedia2:wikiPageUsesTemplate%20?template%20.%20%0D%0A%20%20FILTER%20%28regex%28?template,%20%22Infobox%22%29%29%20.%0D%0A%7D%0D%0AORDER%20BY%20?template%0D%0A" rel="nofollow noreferrer">SPARQL: list all Infoboxes</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload