@prefix rdf: . @prefix rdfs: . @prefix owl: . @prefix test: . @prefix airport: . @prefix fips: . @prefix : <#> . <> a test:Test; owl:versionInfo "$Id: domesticflight-1.n3,v 1.3 2003/07/01 21:47:33 mdean Exp $"; rdfs:comment "using rules to define classes outside OWL DL". :Flight a owl:Class. :ua1495 a :Flight; :origin airport:ORD; :destination airport:GEG. airport:ORD :country fips:US. airport:GEG :country fips:US. { ?x :origin ?o; :destination ?d. ?o :country ?c. ?d :country ?c } => { ?x a :DomesticFlight }. { :ua1495 a :DomesticFlight } => { <> test:successful "true" } .