Hi Olivier,
On 07/02/2013 02:40 AM, Olivier Austina wrote:
Hi,
How to get only the first value of a multi-valued property with
BDpedia in SPARQL.
for example the predicate <http://dbpedia.org/ontology/areaTotal> have
sometimes more than 1 value. Thanks
You can simply use LIMIT, to get only 1 value, e.g.:
SELECT * WHERE { dbpedia:France dbpedia-owl:areaTotal ?area.} LIMIT 1
Regards
Olivier
--
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