one-to-n relations
From: =?ISO-8859-1?Q?Marian_D=F6rk?=
Subject: one-to-n relations
Date: Wed, 1 Oct 2008 16:16:38 -0600
Hello everybody,
is there a way to have ARC combine multiple results when the entity
has multiple relations. For example, i am querying for people and
their email addresses:
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX foo: <http://bar.com/foo/>
SELECT ?name ?email
WHERE {
?person a foaf:Person ; foaf:name ?name .
?person foo:email ?email .
}
Using ARC, people having more than one email would show up multiple
times in the row array. However, i would like to have individual
people just showing up once in the rows array and then still have the
multiple emails associated with the people items. Is this possible
with one query?
I am new to Sparql, so i'm sure there is an established method for
this. Thanks for any hints.
Cheers,
Marian