Hi Olivier,

On 07/01/2013 11:58 PM, Olivier Austina wrote:
> Hi,
> I want to get one value from a list values of a predicat. For example 
> in this query, I want to get area of country form DBpedia. Some area 
> are repeated more then once.
> How to do to get just one value for each country?
> PREFIX endbp:<http://dbpedia.org/property/>
>  PREFIX res: <http://dbpedia.org/resource/>
>  SELECT distinct ?area ?countryLabel
>   WHERE{
>             ?country1  rdf:type dbpedia-owl:Country;
>
>             dbpedia-owl:areaTotal  ?area;
>             rdfs:label ?countryLabel.
>             FILTER( lang(?countryLabel) = "en" )
> }

The point is that some countries have several values for areaTotal e.g. 
Luxembourg [1].
This because, in the Wikipedia page [2], you can find two values for the 
area, one is in square kilometer and one is in square mile, which when 
converted might produce slightly different values.

>
> Thanks
>
> Regards
> Olivier

[1] http://dbpedia.org/resource/Luxembourg
[2] http://en.wikipedia.org/w/index.php?title=Luxembourg&action=edit

-- 
Kind Regards
Mohamed Morsey
Department of Computer Science
University of Leipzig
http://aksw.org/MohamedMorsey


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to