@prefix rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd:  <http://www.w3.org/2001/XMLSchema#> .
@prefix ex:   <http://example.org/> .

ex:Animal a rdfs:Class ;
    rdfs:label "Animal" ;
    rdfs:comment "The class of all animals." .

ex:Dog a rdfs:Class ;
    rdfs:subClassOf ex:Animal ;
    rdfs:label "Dog" ;
    rdfs:comment "A domestic dog, Canis lupus familiaris." .

ex:Cat a rdfs:Class ;
    rdfs:subClassOf ex:Animal ;
    rdfs:label "Cat" ;
    rdfs:comment "A domestic cat, Felis catus." .

ex:Person a rdfs:Class ;
    rdfs:label "Person" ;
    rdfs:comment "A human being." .

ex:name a rdf:Property ;
    rdfs:domain ex:Animal ;
    rdfs:range xsd:string ;
    rdfs:label "name" ;
    rdfs:comment "The name of an animal." .

ex:hasPet a rdf:Property ;
    rdfs:domain ex:Person ;
    rdfs:range ex:Animal ;
    rdfs:label "has pet" ;
    rdfs:comment "Relates a person to their pet animal." .
