<?xml version="1.0"?>
<rdf:RDF
    xmlns:iso="http://www.daml.org/2001/09/countries/iso#"
    xmlns:us-states="http://www.daml.ri.cmu.edu/ont/USRegionState.daml#"
    xmlns:iso-3166-ont="http://www.daml.org/2001/09/countries/iso-3166-ont#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
    xmlns:owl="http://www.w3.org/2002/07/owl#"
    xmlns:tzont="http://www.w3.org/2006/timezone#"
    xmlns:country-ont="http://www.daml.org/2001/09/countries/country-ont#"
    xmlns:core="http://ontology.ist-spice.org/mobile-ontology/1/0/core/0/core.owl#"
    xmlns:time="http://www.w3.org/2006/time#"
    xmlns="http://ontology.ist-spice.org/mobile-ontology/1/0/presence/0/presence.owl#"
    xmlns:uscity="http://www.daml.ri.cmu.edu/ont/USCity.daml#"
    xmlns:state="http://www.daml.ri.cmu.edu/ont/State.daml#"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:protege="http://protege.stanford.edu/plugins/owl/protege#"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
    xmlns:daml="http://www.daml.org/2001/03/daml+oil#"
  xml:base="http://ontology.ist-spice.org/mobile-ontology/1/0/presence/0/presence.owl">
  <owl:Ontology rdf:about="">
    <owl:imports rdf:resource="http://www.w3.org/2006/timezone"/>
    <owl:imports rdf:resource="http://ontology.ist-spice.org/mobile-ontology/1/0/core/0/core.owl"/>
    <owl:imports rdf:resource="http://www.w3.org/2006/time"/>
  </owl:Ontology>
  <rdfs:Class rdf:ID="AbstractConcept"/>
  <rdfs:Class rdf:about="http://ontology.ist-spice.org/mobile-ontology/1/0/core/0/core.owl#User"/>
  <rdfs:Class rdf:about="http://ontology.ist-spice.org/mobile-ontology/1/0/core/0/core.owl#Device"/>
  <rdfs:Class rdf:about="http://ontology.ist-spice.org/mobile-ontology/1/0/core/0/core.owl#Person"/>
  <rdfs:Class rdf:about="http://ontology.ist-spice.org/mobile-ontology/1/0/core/0/core.owl#Place"/>
  <rdfs:Class rdf:about="http://ontology.ist-spice.org/mobile-ontology/1/0/core/0/core.owl#VirtualEntity"/>
  <owl:Class rdf:ID="PrivateCommunicationChannel">
    <rdfs:subClassOf rdf:resource="#AbstractConcept"/>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Models the &lt;privacy&gt; element defined in RFC 4480. Individuals reflect the type of communication that is unlikely to be intercepted. In RFC 4480, audio, text, unknown and video are defined. The mapping is analogous as in activity and mood.</rdfs:comment>
  </owl:Class>
  <owl:Class rdf:ID="ElectronicService">
    <rdfs:subClassOf>
      <owl:Class rdf:ID="PresenceService"/>
    </rdfs:subClassOf>
  </owl:Class>
  <owl:Class rdf:ID="Street">
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Models a street place according to RFC 4480. Individuals will be mapped to &lt;place-type&gt;&lt;pt:street/&gt;&lt;/place-type&gt;.</rdfs:comment>
    <rdfs:subClassOf rdf:resource="http://ontology.ist-spice.org/mobile-ontology/1/0/core/0/core.owl#Place"/>
  </owl:Class>
  <owl:Class rdf:ID="Relationship">
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Models the realtionship element as defined in RFC 4480. Defines the relationship a Person has with the presentity.</rdfs:comment>
    <rdfs:subClassOf rdf:resource="#AbstractConcept"/>
  </owl:Class>
  <owl:Class rdf:ID="PlaceCharacteristics">
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Models the &lt;place-is&gt; element defined in RFC 4480.</rdfs:comment>
    <rdfs:subClassOf rdf:resource="#AbstractConcept"/>
  </owl:Class>
  <owl:Class rdf:ID="PresenceStatus">
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Models the &lt;status&gt; element of a service as defined in RFC 3863.</rdfs:comment>
    <rdfs:subClassOf rdf:resource="#AbstractConcept"/>
  </owl:Class>
  <owl:Class rdf:about="http://www.w3.org/2006/timezone#TimeZone"/>
  <owl:Class rdf:ID="CourierService">
    <rdfs:subClassOf>
      <owl:Class rdf:about="#PresenceService"/>
    </rdfs:subClassOf>
  </owl:Class>
  <owl:Class rdf:ID="Presentity">
    <rdfs:subClassOf rdf:resource="http://ontology.ist-spice.org/mobile-ontology/1/0/core/0/core.owl#VirtualEntity"/>
    <rdfs:subClassOf>
      <owl:Restriction>
        <owl:onProperty>
          <owl:InverseFunctionalProperty rdf:ID="isPublishedByUser"/>
        </owl:onProperty>
        <owl:cardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#int"
        >1</owl:cardinality>
      </owl:Restriction>
    </rdfs:subClassOf>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Models the presence information of a person compliant to RFC 3863 and 4479.</rdfs:comment>
  </owl:Class>
  <owl:Class rdf:ID="UserInput">
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Models the &lt;user-input&gt; element as defined in RFC 4480.</rdfs:comment>
    <owl:versionInfo rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >TODO: How should individuals be named?</owl:versionInfo>
    <rdfs:subClassOf rdf:resource="#AbstractConcept"/>
  </owl:Class>
  <owl:Class rdf:ID="PostalService">
    <rdfs:subClassOf>
      <owl:Class rdf:about="#PresenceService"/>
    </rdfs:subClassOf>
  </owl:Class>
  <owl:Class rdf:ID="Activity">
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >This models the activity element from RFC 4480. An activity can have a note and a time span.</rdfs:comment>
    <rdfs:subClassOf rdf:resource="#AbstractConcept"/>
  </owl:Class>
  <owl:Class rdf:ID="StatusIcon">
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Models the &lt;status-icon&gt; element as defined in RFC 4480.</rdfs:comment>
    <rdfs:subClassOf rdf:resource="http://ontology.ist-spice.org/mobile-ontology/1/0/core/0/core.owl#VirtualEntity"/>
  </owl:Class>
  <owl:Class rdf:about="#PresenceService">
    <rdfs:subClassOf rdf:resource="http://ontology.ist-spice.org/mobile-ontology/1/0/core/0/core.owl#VirtualEntity"/>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Models a service according to RFC 3863 and RFC 4480. Individuals are mapped to the &lt;tuple&gt; element. Subclasses model the &lt;service-class&gt; element. The &lt;contact&gt; element is represented as value of core:hasUniqueIdentifier</rdfs:comment>
  </owl:Class>
  <owl:Class rdf:ID="Class">
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Models the class element defined in RC 4480. Describes the class of a service, device or a person.</rdfs:comment>
    <rdfs:subClassOf rdf:resource="#AbstractConcept"/>
  </owl:Class>
  <owl:Class rdf:ID="Sphere">
    <rdfs:subClassOf rdf:resource="#AbstractConcept"/>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Models the &lt;sphere&gt; element as defined in RFC 4480. Individuals denote the actual sphere. Example of spheres are home, office etc.
Introduced by: Martin Strohbach</rdfs:comment>
  </owl:Class>
  <owl:Class rdf:ID="Mood">
    <rdfs:subClassOf rdf:resource="#AbstractConcept"/>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Models the mood element defined in RFC 4480</rdfs:comment>
  </owl:Class>
  <owl:Class rdf:ID="FreightService">
    <rdfs:subClassOf rdf:resource="#PresenceService"/>
  </owl:Class>
  <owl:Class rdf:ID="TimeOffset">
    <owl:versionInfo rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Models the &lt;time-offset&gt; element as defined  in RFC 4480.
TODO: Decide how to map to individuals, e.g. UTC+n</owl:versionInfo>
    <rdfs:subClassOf rdf:resource="#AbstractConcept"/>
    <rdfs:subClassOf>
      <owl:Restriction>
        <owl:cardinality rdf:datatype="http://www.w3.org/2001/XMLSchema#int"
        >1</owl:cardinality>
        <owl:onProperty>
          <owl:DatatypeProperty rdf:ID="timeOffset"/>
        </owl:onProperty>
      </owl:Restriction>
    </rdfs:subClassOf>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Models the &lt;time-offset&gt; element as defined  in RFC 4480.</rdfs:comment>
  </owl:Class>
  <owl:Class rdf:ID="InPersonService">
    <rdfs:subClassOf rdf:resource="#PresenceService"/>
  </owl:Class>
  <owl:ObjectProperty rdf:ID="hasTimeOffset">
    <rdfs:domain rdf:resource="http://ontology.ist-spice.org/mobile-ontology/1/0/core/0/core.owl#Person"/>
    <owl:versionInfo rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >TODO: consider to model this as a property of a place rather than a person!</owl:versionInfo>
    <rdfs:range>
      <owl:Class>
        <owl:unionOf rdf:parseType="Collection">
          <owl:Class rdf:about="#TimeOffset"/>
          <owl:Class rdf:about="http://www.w3.org/2006/timezone#TimeZone"/>
        </owl:unionOf>
      </owl:Class>
    </rdfs:range>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Relates a Person to a TimeOffset according to RFC 4480.</rdfs:comment>
  </owl:ObjectProperty>
  <owl:ObjectProperty rdf:ID="hasRelationship">
    <rdfs:range rdf:resource="#Relationship"/>
    <rdfs:domain rdf:resource="#PresenceService"/>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Relates the reach information specified by this service to the presentity according to RFC 4480.</rdfs:comment>
  </owl:ObjectProperty>
  <owl:ObjectProperty rdf:ID="hasPlaceCharacteristics">
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Relates a Place to its place chararcteristics according to RFC 4480 (&lt;place-is&gt;).</rdfs:comment>
    <rdfs:domain rdf:resource="http://ontology.ist-spice.org/mobile-ontology/1/0/core/0/core.owl#Place"/>
    <rdfs:range rdf:resource="#PlaceCharacteristics"/>
  </owl:ObjectProperty>
  <owl:ObjectProperty rdf:ID="isValid">
    <owl:versionInfo rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >TODO: This should be factored out in a QoC ontology.
Added by Martin Strohbach</owl:versionInfo>
    <rdfs:domain>
      <owl:Class>
        <owl:unionOf rdf:parseType="Collection">
          <owl:Class rdf:about="#Activity"/>
          <rdfs:Class rdf:about="http://ontology.ist-spice.org/mobile-ontology/1/0/core/0/core.owl#Place"/>
          <owl:Class rdf:about="#Mood"/>
          <owl:Class rdf:about="#PlaceCharacteristics"/>
          <owl:Class rdf:about="#PrivateCommunicationChannel"/>
          <owl:Class rdf:about="#Sphere"/>
          <owl:Class rdf:about="#StatusIcon"/>
          <owl:Class rdf:about="#TimeOffset"/>
        </owl:unionOf>
      </owl:Class>
    </rdfs:domain>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Models the from and until attribute as defined in RFC 4479 in order to "describe the absolute time when the element assumed this value and the absolute  time until which this element is expected to be valid."</rdfs:comment>
    <rdfs:range rdf:resource="http://www.w3.org/2006/time#Interval"/>
  </owl:ObjectProperty>
  <owl:ObjectProperty rdf:ID="hasActivities">
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Relates a person to their activities according to RFC 4480.</rdfs:comment>
    <rdfs:range rdf:resource="#Activity"/>
    <rdfs:domain rdf:resource="http://ontology.ist-spice.org/mobile-ontology/1/0/core/0/core.owl#Person"/>
  </owl:ObjectProperty>
  <owl:ObjectProperty rdf:ID="canBeReachedBy">
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Relates a person to a service. The service defines the reach information for this person. Strictly speaking this property may not be required for OWL-&gt;PIDF mapping, but it is useful from the ontology point of view.</rdfs:comment>
    <rdfs:domain rdf:resource="#Presentity"/>
    <rdfs:range rdf:resource="#PresenceService"/>
  </owl:ObjectProperty>
  <owl:ObjectProperty rdf:ID="isExecutedOn">
    <rdfs:domain rdf:resource="#PresenceService"/>
    <rdfs:range rdf:resource="http://ontology.ist-spice.org/mobile-ontology/1/0/core/0/core.owl#Device"/>
  </owl:ObjectProperty>
  <owl:ObjectProperty rdf:ID="hasStatus">
    <rdfs:domain rdf:resource="#PresenceService"/>
    <rdfs:range rdf:resource="#PresenceStatus"/>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Relates a Service to its Status according to RFC 3863 and RFC 4479.</rdfs:comment>
  </owl:ObjectProperty>
  <owl:ObjectProperty rdf:ID="executes">
    <rdfs:domain rdf:resource="http://ontology.ist-spice.org/mobile-ontology/1/0/core/0/core.owl#Device"/>
    <rdfs:range rdf:resource="#PresenceService"/>
  </owl:ObjectProperty>
  <owl:ObjectProperty rdf:ID="hasPrivateCommunicationChannel">
    <rdfs:domain rdf:resource="http://ontology.ist-spice.org/mobile-ontology/1/0/core/0/core.owl#Person"/>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Relates a person to a private communication channel according to RFC 4480 (&lt;privacy&gt; element).</rdfs:comment>
    <rdfs:range rdf:resource="#PrivateCommunicationChannel"/>
  </owl:ObjectProperty>
  <owl:ObjectProperty rdf:ID="hasMood">
    <rdfs:range rdf:resource="#Mood"/>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Relates the person to its mood according to RFC 4480.</rdfs:comment>
    <rdfs:domain rdf:resource="http://ontology.ist-spice.org/mobile-ontology/1/0/core/0/core.owl#Person"/>
  </owl:ObjectProperty>
  <owl:ObjectProperty rdf:ID="hasPresentity">
    <owl:inverseOf>
      <owl:InverseFunctionalProperty rdf:about="#isPublishedByUser"/>
    </owl:inverseOf>
    <rdfs:range rdf:resource="#Presentity"/>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >relates an entity to zero or multiple presentities</rdfs:comment>
    <rdfs:domain rdf:resource="http://ontology.ist-spice.org/mobile-ontology/1/0/core/0/core.owl#User"/>
  </owl:ObjectProperty>
  <owl:ObjectProperty rdf:ID="hasStatusIcon">
    <rdfs:domain>
      <owl:Class>
        <owl:unionOf rdf:parseType="Collection">
          <rdfs:Class rdf:about="http://ontology.ist-spice.org/mobile-ontology/1/0/core/0/core.owl#Person"/>
          <owl:Class rdf:about="#PresenceService"/>
        </owl:unionOf>
      </owl:Class>
    </rdfs:domain>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Relates a Person or Service to a StatusIcon according to RFC 4480.</rdfs:comment>
    <rdfs:range rdf:resource="#StatusIcon"/>
  </owl:ObjectProperty>
  <owl:ObjectProperty rdf:ID="hasPlace">
    <rdfs:domain rdf:resource="http://ontology.ist-spice.org/mobile-ontology/1/0/core/0/core.owl#Person"/>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Relates a Person to a Place.</rdfs:comment>
    <owl:versionInfo rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >TODO: This property is a candidate for being factored out in some other ontology.</owl:versionInfo>
  </owl:ObjectProperty>
  <owl:ObjectProperty rdf:ID="hasUserInput">
    <rdfs:range rdf:resource="#UserInput"/>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Relates a Person, Service or Device to a UserInput as defined in RFC 4480.</rdfs:comment>
    <rdfs:domain>
      <owl:Class>
        <owl:unionOf rdf:parseType="Collection">
          <rdfs:Class rdf:about="http://ontology.ist-spice.org/mobile-ontology/1/0/core/0/core.owl#Device"/>
          <rdfs:Class rdf:about="http://ontology.ist-spice.org/mobile-ontology/1/0/core/0/core.owl#Person"/>
          <owl:Class rdf:about="#PresenceService"/>
        </owl:unionOf>
      </owl:Class>
    </rdfs:domain>
  </owl:ObjectProperty>
  <owl:ObjectProperty rdf:ID="hasSphere">
    <rdfs:domain rdf:resource="http://ontology.ist-spice.org/mobile-ontology/1/0/core/0/core.owl#Person"/>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Relates Persons to their spheres according to RFC 4480.</rdfs:comment>
    <rdfs:range rdf:resource="#Sphere"/>
  </owl:ObjectProperty>
  <owl:DatatypeProperty rdf:ID="videoCharacteristics">
    <rdfs:domain rdf:resource="#PlaceCharacteristics"/>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Models the video characteristics of a place as defined in RFC 4480. This property must be mapped to the &lt;video&gt; element inside a &lt;place-is&gt; element.</rdfs:comment>
    <rdfs:range>
      <owl:DataRange>
        <owl:oneOf rdf:parseType="Resource">
          <rdf:rest rdf:parseType="Resource">
            <rdf:rest rdf:parseType="Resource">
              <rdf:first rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
              >dark</rdf:first>
              <rdf:rest rdf:parseType="Resource">
                <rdf:first rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
                >unknown</rdf:first>
                <rdf:rest rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
              </rdf:rest>
            </rdf:rest>
            <rdf:first rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
            >ok</rdf:first>
          </rdf:rest>
          <rdf:first rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
          >toobright</rdf:first>
        </owl:oneOf>
      </owl:DataRange>
    </rdfs:range>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:ID="isExecutedOnold">
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:ID="hasServiceClass">
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Models a ServiceClass according to RFC 4480. This property is provided for mapping service class extensions and should not be used with one of the Service subclasses.</rdfs:comment>
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
    <rdfs:domain rdf:resource="#PresenceService"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:about="#timeOffset">
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#int"/>
    <rdfs:domain rdf:resource="#TimeOffset"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:ID="hasServiceDescription">
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Models the &lt;note&gt; element inside a &lt;service-class&gt; element.</rdfs:comment>
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
    <rdfs:domain rdf:resource="#PresenceService"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:ID="hasNote">
    <rdfs:domain>
      <owl:Class>
        <owl:unionOf rdf:parseType="Collection">
          <owl:Class rdf:about="#Activity"/>
          <rdfs:Class rdf:about="http://ontology.ist-spice.org/mobile-ontology/1/0/core/0/core.owl#Person"/>
          <rdfs:Class rdf:about="http://ontology.ist-spice.org/mobile-ontology/1/0/core/0/core.owl#Place"/>
          <owl:Class rdf:about="#Mood"/>
          <owl:Class rdf:about="#PlaceCharacteristics"/>
          <owl:Class rdf:about="#PresenceService"/>
          <owl:Class rdf:about="#Presentity"/>
          <owl:Class rdf:about="#PrivateCommunicationChannel"/>
          <owl:Class rdf:about="#Relationship"/>
        </owl:unionOf>
      </owl:Class>
    </rdfs:domain>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Models the note field defined in RFC 4479 and 4480.</rdfs:comment>
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:ID="hasURI">
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Models the value of a &lt;status-icon&gt; element defined in RFC 4480.</rdfs:comment>
    <rdfs:domain rdf:resource="#StatusIcon"/>
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:ID="textCharacteristics">
    <rdfs:range>
      <owl:DataRange>
        <owl:oneOf rdf:parseType="Resource">
          <rdf:first rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
          >uncomfortable</rdf:first>
          <rdf:rest rdf:parseType="Resource">
            <rdf:first rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
            >inappropriate</rdf:first>
            <rdf:rest rdf:parseType="Resource">
              <rdf:first rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
              >ok</rdf:first>
              <rdf:rest rdf:parseType="Resource">
                <rdf:first rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
                >unknown</rdf:first>
                <rdf:rest rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
              </rdf:rest>
            </rdf:rest>
          </rdf:rest>
        </owl:oneOf>
      </owl:DataRange>
    </rdfs:range>
    <rdfs:domain rdf:resource="#PlaceCharacteristics"/>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Models the text characterstics of a place according to RFC 4480. This property will be mapped to a &lt;text&gt; element inside a &lt;place-is&gt; element.</rdfs:comment>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:ID="audioCharacteristics">
    <rdfs:range>
      <owl:DataRange>
        <owl:oneOf rdf:parseType="Resource">
          <rdf:rest rdf:parseType="Resource">
            <rdf:first rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
            >ok</rdf:first>
            <rdf:rest rdf:parseType="Resource">
              <rdf:first rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
              >quiet</rdf:first>
              <rdf:rest rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
            </rdf:rest>
          </rdf:rest>
          <rdf:first rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
          >noisy</rdf:first>
        </owl:oneOf>
      </owl:DataRange>
    </rdfs:range>
    <rdfs:domain rdf:resource="#PlaceCharacteristics"/>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Models the audio characteristics according to RFC 4480. This property must be mapped to the &lt;audio&gt; property.</rdfs:comment>
  </owl:DatatypeProperty>
  <owl:DatatypeProperty rdf:ID="userInput">
    <rdfs:domain rdf:resource="#UserInput"/>
    <rdfs:range>
      <owl:DataRange>
        <owl:oneOf rdf:parseType="Resource">
          <rdf:rest rdf:parseType="Resource">
            <rdf:first rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
            >idle</rdf:first>
            <rdf:rest rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
          </rdf:rest>
          <rdf:first rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
          >active</rdf:first>
        </owl:oneOf>
      </owl:DataRange>
    </rdfs:range>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    ></rdfs:comment>
  </owl:DatatypeProperty>
  <owl:FunctionalProperty rdf:ID="hasPriority">
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Models the priority of this contact address according to RFC 3863. The priority value must be a value between 0 and 1.</rdfs:comment>
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#float"/>
    <rdfs:domain rdf:resource="#PresenceService"/>
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/>
  </owl:FunctionalProperty>
  <owl:FunctionalProperty rdf:ID="hasBasicValue">
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Models the &lt;basic&gt; element as defined in RFC 3863.</rdfs:comment>
    <rdfs:domain rdf:resource="#PresenceStatus"/>
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/>
    <rdfs:range>
      <owl:DataRange>
        <owl:oneOf rdf:parseType="Resource">
          <rdf:rest rdf:parseType="Resource">
            <rdf:first rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
            >closed</rdf:first>
            <rdf:rest rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
          </rdf:rest>
          <rdf:first rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
          >open</rdf:first>
        </owl:oneOf>
      </owl:DataRange>
    </rdfs:range>
  </owl:FunctionalProperty>
  <owl:FunctionalProperty rdf:ID="starts">
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Models the from attribute as defined in RFC 4480.</rdfs:comment>
  </owl:FunctionalProperty>
  <owl:FunctionalProperty rdf:ID="hasTimestamp">
    <rdfs:domain>
      <owl:Class>
        <owl:unionOf rdf:parseType="Collection">
          <rdfs:Class rdf:about="http://ontology.ist-spice.org/mobile-ontology/1/0/core/0/core.owl#Person"/>
          <owl:Class rdf:about="#PresenceService"/>
        </owl:unionOf>
      </owl:Class>
    </rdfs:domain>
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/>
    <owl:versionInfo rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >TODO: this should be part of the QoC Ontology. 
Added by Martin Strohbach</owl:versionInfo>
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#dateTime"/>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >The value of this property indicates when its domain instance has been last updated. Models the &lt;timestamp&gt; element defined in RFC 3863and RFC 4479.</rdfs:comment>
  </owl:FunctionalProperty>
  <owl:FunctionalProperty rdf:ID="hasDescription">
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Models the description attribute of the &lt;time-offset&gt; element.</rdfs:comment>
    <rdfs:domain rdf:resource="#TimeOffset"/>
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/>
  </owl:FunctionalProperty>
  <owl:FunctionalProperty rdf:ID="idleThreshold">
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
    <rdfs:domain rdf:resource="#UserInput"/>
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Models the idle-threshold attribute as defined in RFC 4480.</rdfs:comment>
  </owl:FunctionalProperty>
  <owl:FunctionalProperty rdf:ID="lastInput">
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/>
    <rdfs:domain rdf:resource="#UserInput"/>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Models the last-input attribute as defined in RFC 4480.</rdfs:comment>
  </owl:FunctionalProperty>
  <owl:FunctionalProperty rdf:ID="hasClass">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Relates a service, person or device to a Class</rdfs:comment>
    <rdfs:range rdf:resource="#Class"/>
    <rdfs:domain>
      <owl:Class>
        <owl:unionOf rdf:parseType="Collection">
          <rdfs:Class rdf:about="http://ontology.ist-spice.org/mobile-ontology/1/0/core/0/core.owl#Device"/>
          <rdfs:Class rdf:about="http://ontology.ist-spice.org/mobile-ontology/1/0/core/0/core.owl#Person"/>
          <owl:Class rdf:about="#PresenceService"/>
        </owl:unionOf>
      </owl:Class>
    </rdfs:domain>
  </owl:FunctionalProperty>
  <owl:FunctionalProperty rdf:ID="stops">
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/>
    <rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >Models the until attribute as defined in RFC 4480.</rdfs:comment>
  </owl:FunctionalProperty>
  <owl:InverseFunctionalProperty rdf:about="#isPublishedByUser">
    <rdfs:domain rdf:resource="#Presentity"/>
    <owl:inverseOf rdf:resource="#hasPresentity"/>
    <rdfs:range rdf:resource="http://ontology.ist-spice.org/mobile-ontology/1/0/core/0/core.owl#User"/>
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#FunctionalProperty"/>
    <rdf:type rdf:resource="http://www.w3.org/2002/07/owl#ObjectProperty"/>
  </owl:InverseFunctionalProperty>
  <Mood rdf:ID="enraged">
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >This is an example of an a mood that is not defined in RFC4480. It is up to the mapping compenent whether this individual should be mapped as &lt;other&gt;enraged&lt;/other&gt; or &lt;somens:enraged/&gt;</rdfs:comment>
    <hasNote xml:lang="en">Why did he do that to me!</hasNote>
  </Mood>
  <Presentity rdf:ID="Presentity_3"/>
  <Mood rdf:ID="happy">
    <hasNote rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    ></hasNote>
    <rdfs:comment rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >This is an example of a RFC 4480 compliant mood and thus will be mapped to &lt;happy/&gt;.</rdfs:comment>
  </Mood>
  <PresenceService rdf:ID="Service_2">
    <hasStatus>
      <PresenceStatus rdf:ID="Status_1">
        <hasBasicValue rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
        >open</hasBasicValue>
      </PresenceStatus>
    </hasStatus>
    <isExecutedOnold rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >urn:device:0003ba4811e3</isExecutedOnold>
  </PresenceService>
  <owl:AllDifferent>
    <owl:distinctMembers rdf:parseType="Collection">
      <Mood rdf:about="#happy"/>
    </owl:distinctMembers>
  </owl:AllDifferent>
  <Presentity rdf:ID="Presentity_1">
    <hasNote rdf:datatype="http://www.w3.org/2001/XMLSchema#string"
    >I'll be in Tokyo next week</hasNote>
  </Presentity>
  <Street rdf:ID="Street_2"/>
</rdf:RDF>

<!-- Created with Protege (with OWL Plugin 3.3, Build 407)  http://protege.stanford.edu -->
