How to get data from Wikipedia table using dbpedia SPARQL

I can do queries like finding capital or currencies of countries, but the problem is getting the table data. I want to extract data from tables from this . This corresponds to dbpedia's this .

Now if you look at the dbpedia page, there is no relationship for the tabular data that I could query. What am I missing here?

Edit: There is a project that I think is currently in development. Is there any other way besides scraping

+3


source to share


1 answer


This answer probably won't help you right away, but I think it should work.
Instead of "querying a table", think of it this way:
You are looking for all Indian states (each one is DBPedia), their GDP and possibly other attributes.
GDPR is (or should be ) an attribute of a government entity - the List page is just a convenient aggregation and should not serve as a master copy.

Something like:

select ?state ?gdp WHERE {
  ?state dbo:country dbr:India .
  ?state ?hasGDP ?gdp 
} 
ORDER by ?gdp

      



Unfortunately, status pages in DBPedia do not currently have a property ?hasDGP

(on similar lines, as they do dbo:populationTotal

).

Because of these missing links, you will probably revert to using paper clips as an alternative.

+2


source







All Articles