@prefix ex: <http://example.org/#>.
@prefix http: <http://www.w3.org/2011/http#>.

{
  ?a1 ex:rel1 ?b1.
}
=>
{
  _:request http:methodName "GET";
            http:requestURI ?a1;
            http:resp [ http:body ?b1 ].
  ?a1 ex:rel2 ?b1.
  ?a2 ex:rel2 ?b2.
}.

{
  ?a1 ex:rel2 ?b1.
  ?a2 ex:rel2 ?b2.
}
=>
{
  _:request http:methodName "GET";
            http:requestURI ?a1;
            http:resp [ http:body ?b1 ].
  ?a1 ex:rel3 ?b1.
  ?a2 ex:rel3 ?b2.
}.

{
  ?a1 ex:rel3 ?b1.
  ?a2 ex:rel3 ?b2.
}
=>
{
  _:request http:methodName "GET";
            http:requestURI ?a1;
            http:resp [ http:body ?b1 ].
  ?a1 ex:rel4 ?b1.
  ?a2 ex:rel4 ?b2.
  ?a1 ex:relGoal ?b1.
}.
