How can I get all columns accost from "list of country's by" for example? I dont want the results but I want all the information accost from the country column for each result page. like using dbpedia or something.

asked 05 Dec '12, 06:11

ashlee104's gravatar image

ashlee104
111
accept rate: 0%


I'm not entirely sure I understand your question. Do you want to be able to get the table headings from a page like - http://en.wikipedia.org/wiki/List_of_countries_by_population? eg. rank, country, population, date? But not specifically the population of China etc. I don't think that dbpedia specifically extracts data from tables yet (and if they did, I wouldn't imagine that they'd model it as a table). You could scrape the pages yourself.

Alternatively you could query dbpedia for the properties that it has about the topic of interest eg. Countries

SELECT DISTINCT ?label ?property WHERE {?country a http://dbpedia.org/ontology/Country. ?country ?property ?value. ?property rdfs:label ?label}

http://dbpedia.org/sparql?default-graph-uri=http%3A%2F%2Fdbpedia.org&query=SELECT+DISTINCT+%3Flabel+%3Fproperty%0D%0AWHERE+%0D%0A%7B%3Fcountry+a+%3Chttp%3A%2F%2Fdbpedia.org%2Fontology%2FCountry%3E.%0D%0A%3Fcountry+%3Fproperty+%3Fvalue.%0D%0A%3Fproperty+rdfs%3Alabel+%3Flabel%7D+&format=text%2Fhtml&timeout=0&debug=on

permanent link

answered 05 Dec '12, 22:24

Sweet%20Burlap's gravatar image

Sweet Burlap
2.7k38
accept rate: 18%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×275

question asked: 05 Dec '12, 06:11

question was seen: 906 times

last updated: 05 Dec '12, 22:24