# $Id: OptionalPathQ.n3 463 2005-02-06 12:27:34Z josd $
# PxButton | es  | euler --nope --think sample.n3 /sfcvs/2003/03swap/rdfs-rules.n3 --query OptionalPathQ.n3
# PxButton | cwm | cwm sample.n3 /sfcvs/2003/03swap/rdfs-rules.n3 --think --query"=OptionalPathQ.n3"

@prefix owl: <http://www.w3.org/2002/07/owl#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix q: <http://www.w3.org/2004/ql#>.
@prefix : <http://eulersharp.sourceforge.net/2004/04test/sample#>.

[]
q:select {<> q:answer (?P ?M ?N _:E)};
q:where  {?P :author ?S. ?S rdfs:member ?M. ?M :name ?N}.

[]
q:select {<> q:answer (?P ?M ?N ?E)};
q:where  {?P :author ?S. ?S rdfs:member ?M. ?M :name ?N; :email ?E}.
