Hi list! Regarding this query:
PREFIX owl: <http://www.w3.org/2002/07/owl#> PREFIX dbo: <http://dbpedia.org/ontology/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT DISTINCT ?uri ?name ?summary where { ?uri rdfs:label ?name ; rdfs:comment ?summary ; dbo:country <http://dbpedia.org/resource/Portugal> . FILTER( lang(?name) = 'pt' && lang(?summary) = 'pt' ) } ORDER BY ?uri This should list 'things' in portuguese where country is Portugal. However I would expect each 'thing' or URI to have exactly one label and one short/long abstract per language. As this entry shows ( http://dbpedia.org/snorql/?describe=http://dbpedia.org/resource/Universidade_Lus%25C3%25B3fona ) 'Universidade Lusófona' has several labels and abstracts with lang = 'pt'. When inspecting the dumps I can see that each entry for this resource URI has 1 label and 1 short and long abstract, as expected. Where are this extra labels / abstracts comming? Is this because of redirects? How could I modify the query above to return at most one entry for each URI? TIA for any clarifications! ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ Dbpedia-discussion mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion
