<?xml version="1.0"?>
<!DOCTYPE rdf:RDF [
  <!ENTITY xsd "http://www.w3.org/2001/XMLSchema">
  <!ENTITY tns "http://www.csc.ncsu.edu/faculty/mpsingh/books/SOC/lst/description/companies.owl#">
  <!ENTITY places "http://www.csc.ncsu.edu/faculty/mpsingh/books/SOC/lst/description/places.owl#">
  <!ENTITY life "http://www.csc.ncsu.edu/faculty/mpsingh/books/SOC/lst/description/life.owl#">
]>
<rdf:RDF
    xmlns:owl="http://www.w3.org/2002/07/owl#"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" 
    xmlns:life="&life;"
    xmlns:places="&places;"
    xml:base="&tns;"
    xmlns:co="&tns;"
>

<owl:Ontology rdf:about="">
  <rdfs:comment>
    An ontology dealing with companies at different places
  </rdfs:comment>
  <owl:imports rdf:resource="&places;"/>
  <owl:imports rdf:resource="&life;"/>
</owl:Ontology>

<owl:Class rdf:ID="Company"/>

<owl:ObjectProperty rdf:ID="locatedIn">
  <rdfs:domain rdf:resource="#Company"/>
  <rdfs:range rdf:resource="&places;Country"/>
</owl:ObjectProperty>

<owl:ObjectProperty rdf:ID="hasEmployer">
  <rdfs:domain rdf:resource="&life;Person"/>
  <rdfs:range rdf:resource="#Company"/>
</owl:ObjectProperty>

<owl:Class rdf:ID="EuropeanCompany">
  <rdfs:subClassOf rdf:resource="#Company"/>
  <rdfs:subClassOf>
    <owl:Restriction>
      <owl:onProperty rdf:resource="#locatedIn"/>
      <owl:allValuesFrom rdf:resource="&places;EuropeanCountry"/>
    </owl:Restriction>
  </rdfs:subClassOf>
</owl:Class>

<owl:Class rdf:ID="USACompany">
  <rdfs:subClassOf rdf:resource="#Company"/>
  <rdfs:subClassOf>
    <owl:Restriction>
      <owl:onProperty rdf:resource="#locatedIn"/>
      <owl:hasValue rdf:resource="&places;USA"/>
    </owl:Restriction>
  </rdfs:subClassOf>
</owl:Class>

<owl:Class rdf:ID="DistributedCompany">
  <rdfs:subClassOf rdf:resource="#Company"/>
  <rdfs:subClassOf>
    <owl:Restriction>
      <owl:onProperty rdf:resource="#locatedIn"/>
      <owl:minCardinality
        rdf:datatype="&xsd;#nonNegativeInteger">
       2
      </owl:minCardinality>
    </owl:Restriction>
  </rdfs:subClassOf>
</owl:Class>

<owl:Class rdf:ID="UnemployedPerson">
  <rdfs:subClassOf rdf:resource="&life;Person"/>
  <rdfs:subClassOf>
    <owl:Restriction>
      <owl:onProperty rdf:resource="#hasEmployer"/>
      <owl:maxCardinality
        rdf:datatype="&xsd;#nonNegativeInteger">
       0
      </owl:maxCardinality>
    </owl:Restriction>
  </rdfs:subClassOf>
</owl:Class>

</rdf:RDF>

