# baseURI: http://www.workingontologist.org/Examples/Chapter12/vegetarian

@prefix xsd:     <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
@prefix veg:       <http://www.workingontologist.org/Examples/Chapter12/vegetarian#> .
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix owl:     <http://www.w3.org/2002/07/owl#> .

<http://www.workingontologist.org/Examples/Chapter12/vegetarian>
      a       owl:Ontology .

veg:Person a owl:Class ; rdfs:label "Person" .
veg:Food a owl:Class ; rdfs:label "Food" .
veg:eats rdfs:domain veg:Person ; rdfs:label "eats" .
veg:eats rdfs:range veg:Food ; rdfs:label "eats" .

veg:Maverick veg:eats veg:Steak; rdfs:label "Maverick" .

veg:Vegetarian a owl:Class ; rdfs:label "Vegetarian" ;
            rdfs:subClassOf veg:Person .
veg:VegetarianFood a owl:Class ; rdfs:label "VegetarianFood" ;
            rdfs:subClassOf veg:Food .


veg:Jen a veg:Vegetarian ; rdfs:label "Jen" ;
     veg:eats veg:Hummus .



veg:Vegetarian rdfs:subClassOf
      [ a owl:Restriction; rdfs:label "eats only VegetarianFood" ;
        owl:onProperty veg:eats;
        owl:allValuesFrom veg:VegetarianFood ] .



