Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>DBpedia contains information from Wikipedia, and has a SPARQL endpoint. There are some relevant categories in Wikipedia that might help you find the sort of information that you are looking for. For instance, we can select individual news sites and get 302 results:</p> <pre><code>SELECT * WHERE { ?newsSite dcterms:subject category:News_websites . } </code></pre> <p><a href="http://dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org&amp;query=SELECT+%2a+WHERE+%7B+%0D%0A++%3FnewsSite+dcterms%3Asubject+category%3ANews_websites+.%0D%0A%7D+&amp;format=text%2Fhtml&amp;CXML_redir_for_subjs=121&amp;CXML_redir_for_hrefs=&amp;timeout=30000&amp;debug=on" rel="nofollow">SPARQL results</a></p> <p>It is a bit more difficult to reliably get out other pieces of information, since some information might not be available for a page, or the same information might be present on different pages with different properties. For instance, some of those pages record their news site with <code>dbpprop:web</code></p> <pre><code>SELECT * WHERE { ?newsSite dcterms:subject category:News_websites . OPTIONAL { ?newsSite dbpprop:web ?web } } </code></pre> <p><a href="http://dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org&amp;query=++++SELECT+%2a+WHERE+%7B+%0D%0A++++++%3FnewsSite+dcterms%3Asubject+category%3ANews_websites+.%0D%0A++++++OPTIONAL+%7B+%3FnewsSite+dbpprop%3Aweb+%3Fweb+%7D%0D%0A++++%7D+&amp;format=text%2Fhtml&amp;CXML_redir_for_subjs=121&amp;CXML_redir_for_hrefs=&amp;timeout=30000&amp;debug=on" rel="nofollow">SPARQL results</a></p> <p>Others use <code>dbpprop:website</code>. You could just replace <code>dbpprop:web</code> in the previous query with <code>dbpprop:web|dbpprop:website</code>, although that runs somewhat slowly on the DBpedia endpoint. You can be more verbose and use this instead:</p> <pre><code>SELECT ?newsSite ?web WHERE { ?newsSite dcterms:subject category:News_websites . OPTIONAL { { ?newsSite dbpprop:web ?web } UNION { ?newsSite dbpprop:website ?web } } } </code></pre> <p><a href="http://dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org&amp;query=++++SELECT+%3FnewsSite+%3Fweb+WHERE+%7B+%0D%0A++++++%3FnewsSite+dcterms%3Asubject+category%3ANews_websites+.%0D%0A++++++OPTIONAL+%7B+%0D%0A++++++++%7B+%3FnewsSite+dbpprop%3Aweb+%3Fweb+%7D%0D%0A++++++++UNION%0D%0A++++++++%7B+%3FnewsSite+dbpprop%3Awebsite+%3Fweb+%7D%0D%0A++++++%7D%0D%0A++++%7D+&amp;format=text%2Fhtml&amp;CXML_redir_for_subjs=121&amp;CXML_redir_for_hrefs=&amp;timeout=30000&amp;debug=on" rel="nofollow">SPARQL results</a></p> <p>This still only gets websites for a handful of these pages. Some more use <code>dbpprop:url</code>, so we have the following:</p> <pre><code>SELECT ?newsSite ?web WHERE { ?newsSite dcterms:subject category:News_websites . OPTIONAL { { ?newsSite dbpprop:web ?web } UNION { ?newsSite dbpprop:website ?web } UNION { ?newsSite dbpprop:url ?web } } } </code></pre> <p><a href="http://dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org&amp;query=++++SELECT+%3FnewsSite+%3Fweb+WHERE+%7B+%0D%0A++++++%3FnewsSite+dcterms%3Asubject+category%3ANews_websites+.%0D%0A++++++OPTIONAL+%7B+%0D%0A++++++++%7B+%3FnewsSite+dbpprop%3Aweb+%3Fweb+%7D%0D%0A++++++++UNION%0D%0A++++++++%7B+%3FnewsSite+dbpprop%3Awebsite+%3Fweb+%7D%0D%0A++++++++UNION+%0D%0A++++++++%7B+%3FnewsSite+dbpprop%3Aurl+%3Fweb+%7D%0D%0A++++++%7D%0D%0A++++%7D+&amp;format=text%2Fhtml&amp;CXML_redir_for_subjs=121&amp;CXML_redir_for_hrefs=&amp;timeout=30000&amp;debug=on" rel="nofollow">SPARQL results</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.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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