<> a <http://www.w3.org/2000/10/swap/log#N3Document> .

@prefix dc: <http://purl.org/dc/elements/1.1/>.
<> dc:description """comput xplanet arcs from an itinerary""",
"$Id: itinArcs.n3,v 1.3 2002/06/04 06:34:36 connolly Exp $";
dc:relation <airportLookup.n3>.

@prefix log: <http://www.w3.org/2000/10/swap/log#> .
@prefix str: <http://www.w3.org/2000/10/swap/string#> .

@prefix apt: <http://www.daml.org/2001/10/html/airport-ont#>.

@prefix t: <http://www.w3.org/2001/07dc-bos/grokNavItin#> .

@prefix : <itinArcs#>.

this log:forAll :LAT1, :LON1, :LAT2, :LON2, :NUM, :YMD,
  :K, :TXT, :IT, :P, :Q, :X, :Y.



# report lat/long of flights...
{ [ t:air [
      t:LV [
        t:place [
          apt:latitude :LAT1;
          apt:longitude :LON1;
        ];
      ];
      t:AR [
        t:place [
          apt:latitude :LAT2;
          apt:longitude :LON2;
        ];
      ];
      t:flightNum :NUM;
      t:date :YMD;
  ] ].

  (:YMD :NUM) str:concatenation :K.
  (:LAT1 " " :LON1 " " :LAT2 " " :LON2 " color=blue\n") str:concatenation :TXT.
}
 log:implies { :K log:outputString :TXT }.

