@prefix : <urn:test#test.owl/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@base <urn:test#test.owl/> .
<urn:test#test.owl/> rdf:type owl:Ontology .
:q rdf:type owl:Class .
:t rdf:type owl:Class ; rdfs:subClassOf :q .