@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix test: <http://www.daml.org/2003/06/ruletests/test-ont#> .
@prefix airport-ont: <http://www.daml.org/2001/09/html/airport-ont#> .
@prefix airport: <http://www.daml.org/cgi-bin/airport?> .
@prefix map: <http://www.daml.org/2001/06/map/map-ont#> .
@prefix : <#> .

<> a test:Test;
   owl:versionInfo "$Id: translation-1.n3,v 1.1 2003/06/25 10:27:33 mdean Exp $";
   rdfs:comment "ontology translation/rewriting for visualization (with creation of bnodes)".

airport:GEG
  a airport-ont:Airport;
  airport-ont:name "Spokane Intl";
  airport-ont:latitude "47.6197";
  airport-ont:longitude "-117.5336".

:layer a map:DrawingLayer.

:map a map:Map;
     map:name "Airports";
     map:layer :layer.

{ ?airport a airport-ont:Airport;
           airport-ont:latitude ?lat;
           airport-ont:longitude ?lon;
           airport-ont:name ?name }
=>
{ 
  :layer map:object [a map:Point;
                     map:location [a map:Location;
                                   map:latitude ?lat;
                                   map:longitude ?lon];
                     map:underlyingObject ?airport;
                     map:label ?name].
}
.

{ :layer map:object ?object }
=>
{ <> test:successful "true" }
.
