Hi, this is the first time I have used dbpedia and am running into some
problems.
I am trying to query a list of languages and am trying to get the
following properties:
Name
Rank
Foaf:Page
Speakers
Although all pages on Wikipedia have all of the properties I am looking
for, dbpedia does not or the properties don't make sense.
I am using the following sparql query:
SELECT ?lang ?name ?rank ?page ?speakers WHERE {
?lang ?p <http://dbpedia.org/ontology/Language> .
?lang dbpedia2:name ?name .
?lang foaf:page ?page .
?lang dbpedia2:rank ?rank.
}
order by ?rank
This finds most of what I am looking for but there a couple of
inconsistencies: in particular the rank property of the modern English
language is showing a url to another site.
If I use the following query to try to get the number of speakers then
the result is cut dramatically:
SELECT ?lang ?name ?rank ?page ?speakers WHERE {
?lang ?p <http://dbpedia.org/ontology/Language> .
?lang dbpedia2:name ?name .
?lang foaf:page ?page .
?lang dbpedia2:rank ?rank.
?lang dbpedia2:speakers ?speakers.
}
order by ?rank
In particular here, many languages are missing as there is no rank
property yet the Wikipedia pages show the property.
As I said I am new to this so am unsure whether this is to be expected
or not.
If it is then is there a way around this. Basically I need to query
languages and get the properties mentioned above.
Any help would be greatly appreciated.
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion