Hi all,

I am trying to learn more about the Semantic Web, in particular SPARQL thus I set out on a simple task; to list all the countries in the World that are currently classed as such and then get a cumulative population. Should get around 200 countries and about 7 billion people in the end I assumed.

http://octogo.co.uk/cw/ shows my progress so far, I have got ~840 URI's, some are mislabeled in Wikipedia with Country Infoboxes which is fine (I have corrected a couple of these but obviously not synced), but others are marked up with Infobox Former Subdivision which according to my calculation should map to the AdministrativeRegion class, http://mappings.dbpedia.org/index.php/Mapping:Infobox_former_subdivision. Does anyone know why they are appearing in this query?

    PREFIX dbo:<http://dbpedia.org/ontology/>
    PREFIX dbp:<http://dbpedia.org/property/>

    select distinct ?country
    where {
        ?country a dbo:Country .
        OPTIONAL { ?country dbo:dissolutionYear ?x } .
        FILTER (!bound(?x))
    }
    ORDER BY ?country

In particular:

   * http://dbpedia.org/resource/Acadia
   * http://dbpedia.org/resource/Erina_Shire
   * http://dbpedia.org/resource/Viipuri_Province

Many thanks,
Alex
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to