After executing a select statement like:

select ?person ?LastName ?FirstName ?Street ?City ?State ?Zip
where {?person :LastName; :FirstName ?FirstName; :Address ?Address .
                     ?Address :Street ?Street; :City ?City; :State ?State;
:Zip ?Zip}

and iterating through the ResultSet I can get (each person can have
multiple addresses linked via a blank node):
<person1> "Smith" "John" "3 RDF Road" "Semantic" "New York" "12345"
<person1> "Smith" "John" "22 Linked Lane" "Data City" "New York" "22113"

Is there any way to get the underlying TriplePaths (defined in the where
clause of the Select) for each QuerySolution as I iterate through the
ResultSet, something like:

qs.getTriple("City") ;
   <_:b1> :City "Semantic" .
qs = rs.next();
qs.getTriple("City");
   <_:b2> :City "Data City" .

or possibly even iterators of Triples since each solution variable could be
part of multiple TriplePaths.

  - Erich

Reply via email to