On 12/7/13 6:52 PM, Timothy Lebo wrote:
DBPedia,

The following query for the number of universities in each country is a bit 
“ugly”. For example,

1) Countries are identified with URIs or Strings, and the same country is 
identified in many different ways.
2) The country “20” has three universities :-)

I’m not very familiar with the workflow that DBPedia has, but I’m curious what 
I could do to fix the results as “upstream” as possible.
Is there a “how to help” page somewhere that I could read?
Or, could someone provide me a few pointers to get started?

Thanks for your consideration.

Regards,
Tim Lebo


http://dbpedia.org/sparql

{{{
prefix dbpedia: <http://dbpedia.org/resource/>
prefix dbo:     <http://dbpedia.org/ontology/>
prefix dbp:     <http://dbpedia.org/property/>

select ?country count(distinct ?university) as ?count
where {
            ?university dbo:type dbpedia:Public_university
   optional{?university dbp:country ?country}
}
group by ?country
order by desc(?count)
}}}


Query results: http://bit.ly/1brlE6z


Tim,

dbp: is a legacy namespace for properties.
dbo: is the current namespace for properties.

Thus, you would be looking at something like: http://bit.ly/1iNlwE1 .

--

Regards,

Kingsley Idehen 
Founder & CEO
OpenLink Software
Company Web: http://www.openlinksw.com
Personal Weblog: http://www.openlinksw.com/blog/~kidehen
Twitter Profile: https://twitter.com/kidehen
Google+ Profile: https://plus.google.com/+KingsleyIdehen/about
LinkedIn Profile: http://www.linkedin.com/in/kidehen





Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Dbpedia-discussion mailing list
Dbpedia-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to