<?xml version="1.0"?>
<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:process="http://www.daml.org/services/owl-s/1.1/Process.owl#"
    xmlns:service="http://www.daml.org/services/owl-s/1.1/Service.owl#"
    xmlns:list="http://www.daml.org/services/owl-s/1.1/generic/ObjectList.owl#"
    xmlns:owl="http://www.w3.org/2002/07/owl#"
    xmlns:profile="http://www.daml.org/services/owl-s/1.1/Profile.owl#"
    xmlns:swrl="http://www.w3.org/2003/11/swrl#"
    xmlns:grounding="http://www.daml.org/services/owl-s/1.1/Grounding.owl#"
    xmlns="http://127.0.0.1/services/1.1/CheckRoomAvailability_service.owls"
    xmlns:daml="http://www.daml.org/2001/03/daml+oil#"
    xmlns:expr      = "http://www.daml.org/services/owl-s/1.1/generic/Expression.owl#"
    xmlns:pddlexpr  = "http://127.0.0.1/ontology/PDDLExpression.owl#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
  xml:base="http://127.0.0.1/services/1.1/CheckRoomAvailability_service.owls">
  <owl:Ontology rdf:about="">
    <owl:imports rdf:resource="http://127.0.0.1/ontology/Process.owl"/>
    <owl:imports rdf:resource="http://127.0.0.1/ontology/HospitalReceptionOntology.owl"/>
    <owl:imports rdf:resource="http://127.0.0.1/ontology/Grounding.owl"/>
    <owl:imports rdf:resource="http://127.0.0.1/ontology/Service.owl"/>
    <owl:imports rdf:resource="http://127.0.0.1/ontology/Profile.owl"/>
	<owl:imports rdf:resource="http://127.0.0.1/ontology/Expression.owl" />
    <owl:imports rdf:resource="http://127.0.0.1/ontology/PDDLExpression.owl" />
	<owl:imports rdf:resource="http://127.0.0.1/ontology/ontosem.owl"/>
	<owl:imports rdf:resource="http://127.0.0.1/ontology/core-plus-office.owl"/>
  </owl:Ontology>
  <service:Service rdf:ID="CheckRoomAvailabilityService">
    <service:presents>
      <profile:Profile rdf:ID="CheckRoomAvailabilityProfile"/>
    </service:presents>
    <service:describedBy>
      <process:AtomicProcess rdf:ID="CheckRoomAvailabilityProcess"/>
    </service:describedBy>
    <service:supports>
      <grounding:WsdlGrounding rdf:ID="CheckRoomAvailabilityGrounding"/>
    </service:supports>
  </service:Service>
  <profile:Profile rdf:about="#CheckRoomAvailabilityProfile">
    <service:presentedBy rdf:resource="#CheckRoomAvailabilityService"/>
    <profile:serviceName>CheckRoomAvailability</profile:serviceName>
    <profile:textDescription>This service checks the room availability for a desired treatment. If the room is available the treatment can take place.</profile:textDescription>
    <profile:hasInput>
      <process:Input rdf:ID="CheckHospitalAvailability_TreatmentRecomendation">
        <rdfs:label>CheckHospitalAvailability_TreatmentRecomendation</rdfs:label>
        <process:parameterType rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
        >http://127.0.0.1/ontology/HospitalReceptionOntology.owl#Treatment</process:parameterType>
      </process:Input>
    </profile:hasInput>
    <profile:hasInput>
      <process:Input rdf:ID="CheckRoomAvailability_TreatmentDate">
        <rdfs:label>CheckRoomAvailability_TreatmentDate</rdfs:label>
        <process:parameterType rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
        >http://127.0.0.1/ontology/HospitalReceptionOntology.owl#DateTime</process:parameterType>
      </process:Input>
    </profile:hasInput>
    <profile:hasInput>
      <process:Input rdf:ID="CheckRoomAvailability_TreatmentRecomendation">
        <rdfs:label>CheckRoomAvailability_TreatmentRecomendation</rdfs:label>
        <process:parameterType rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
        >http://127.0.0.1/ontology/HospitalReceptionOntology.owl#Treatment</process:parameterType>
      </process:Input>
    </profile:hasInput>
    <profile:hasOutput>
      <process:Output rdf:ID="CheckRoomAvailability_AvailabilityResponse">
        <rdfs:label>CheckRoomAvailability_AvailabilityResponse</rdfs:label>
        <process:parameterType rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
        >http://127.0.0.1/ontology/HospitalReceptionOntology.owl#AvailabilityResponse</process:parameterType>
      </process:Output>
    </profile:hasOutput>
	<profile:hasLocal>
      <process:Local rdf:ID="_Treatment">
        <rdfs:label>Medical Treatment</rdfs:label>
        <process:parameterType rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
        >http://127.0.0.1/ontology/HospitalReceptionOntology.owl#Treatment</process:parameterType>
      </process:Local>
    </profile:hasLocal>

  </profile:Profile>
  <process:AtomicProcess rdf:about="#CheckRoomAvailabilityProcess">
    <rdfs:label>CheckRoomAvailabilityProcess</rdfs:label>
    <service:describes rdf:resource="#CheckRoomAvailabilityService"/>
    <process:hasInput rdf:resource="#CheckHospitalAvailability_TreatmentRecomendation"/>
    <process:hasInput rdf:resource="#CheckRoomAvailability_TreatmentDate"/>
    <process:hasInput rdf:resource="#CheckRoomAvailability_TreatmentRecomendation"/>
    <process:hasOutput rdf:resource="#CheckRoomAvailability_AvailabilityResponse"/>
	<process:hasLocal rdf:resource="#_Treatment"/>
	<process:hasResult>
          <process:Result>
            <process:hasEffect>
              <pddlexpr:PDDL-Expression>
                <expr:expressionBody rdf:datatype="http://www.w3.org/2001/XMLSchema#string">
				(when (http://127.0.0.1/ontology/ontosem.owl#Accepted ?http://127.0.0.1/services/1.1/CheckRoomAvailability_service.owls#CheckRoomAvailability_AvailabilityResponse)
				           (http://127.0.0.1/ontology/core-plus-office.owl#Authorized ?http://127.0.0.1/services/1.1/CheckRoomAvailability_service.owls#_Treatment))
				</expr:expressionBody>
              </pddlexpr:PDDL-Expression>
            </process:hasEffect>
          </process:Result>
    </process:hasResult>
  </process:AtomicProcess>
  <grounding:WsdlGrounding rdf:about="#CheckRoomAvailabilityGrounding">
    <service:supportedBy rdf:resource="#CheckRoomAvailabilityService"/>
    <grounding:hasAtomicProcessGrounding>
      <grounding:WsdlAtomicProcessGrounding rdf:ID="CheckRoomAvailabilityAtomicProcessGrounding"/>
    </grounding:hasAtomicProcessGrounding>
  </grounding:WsdlGrounding>
  <grounding:WsdlAtomicProcessGrounding rdf:about="#CheckRoomAvailabilityAtomicProcessGrounding">
    <grounding:wsdlOutputMessage rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
    >http://127.0.0.1/wsdl/Checkroomavailability#getCheckRoomAvailability_AvailabilityResponseResponse</grounding:wsdlOutputMessage>
    <grounding:owlsProcess rdf:resource="#CheckRoomAvailabilityProcess"/>
    <grounding:wsdlInput>
      <grounding:WsdlInputMessageMap>
        <grounding:owlsParameter rdf:resource="#CheckHospitalAvailability_TreatmentRecomendation"/>
        <grounding:wsdlMessagePart rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
        >http://127.0.0.1/wsdl/Checkroomavailability#CheckHospitalAvailability_TreatmentRecomendation</grounding:wsdlMessagePart>
        <grounding:xsltTransformationString>None (XSL)</grounding:xsltTransformationString>
      </grounding:WsdlInputMessageMap>
    </grounding:wsdlInput>
    <grounding:wsdlDocument rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
    >http://127.0.0.1/wsdl/Checkroomavailability.wsdl</grounding:wsdlDocument>
    <grounding:wsdlOperation>
      <grounding:WsdlOperationRef>
        <grounding:operation rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
        >http://127.0.0.1/wsdl/Checkroomavailability#getCheckRoomAvailability_AvailabilityResponse</grounding:operation>
        <grounding:portType rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
        >http://127.0.0.1/wsdl/Checkroomavailability#CheckroomavailabilitySoap</grounding:portType>
      </grounding:WsdlOperationRef>
    </grounding:wsdlOperation>
    <grounding:wsdlInput>
      <grounding:WsdlInputMessageMap>
        <grounding:owlsParameter rdf:resource="#CheckRoomAvailability_TreatmentDate"/>
        <grounding:wsdlMessagePart rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
        >http://127.0.0.1/wsdl/Checkroomavailability#CheckRoomAvailability_TreatmentDate</grounding:wsdlMessagePart>
        <grounding:xsltTransformationString>None (XSL)</grounding:xsltTransformationString>
      </grounding:WsdlInputMessageMap>
    </grounding:wsdlInput>
    <grounding:wsdlOutput>
      <grounding:WsdlOutputMessageMap>
        <grounding:owlsParameter rdf:resource="#CheckRoomAvailability_AvailabilityResponse"/>
        <grounding:wsdlMessagePart rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
        >http://127.0.0.1/wsdl/Checkroomavailability#CheckRoomAvailability_AvailabilityResponse</grounding:wsdlMessagePart>
        <grounding:xsltTransformationString>None (XSL)</grounding:xsltTransformationString>
      </grounding:WsdlOutputMessageMap>
    </grounding:wsdlOutput>
    <grounding:wsdlInputMessage rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
    >http://127.0.0.1/wsdl/Checkroomavailability#getCheckRoomAvailability_AvailabilityResponseRequest</grounding:wsdlInputMessage>
    <grounding:wsdlInput>
      <grounding:WsdlInputMessageMap>
        <grounding:owlsParameter rdf:resource="#CheckRoomAvailability_TreatmentRecomendation"/>
        <grounding:wsdlMessagePart rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
        >http://127.0.0.1/wsdl/Checkroomavailability#CheckRoomAvailability_TreatmentRecomendation</grounding:wsdlMessagePart>
        <grounding:xsltTransformationString>None (XSL)</grounding:xsltTransformationString>
      </grounding:WsdlInputMessageMap>
    </grounding:wsdlInput>
  </grounding:WsdlAtomicProcessGrounding>
  <owl:Class rdf:about="/ontology/HospitalReceptionOntology.owl#AvailabilityResponse"/>
  <owl:Class rdf:about="/ontology/HospitalReceptionOntology.owl#Treatment"/>
  <owl:Class rdf:about="/ontology/HospitalReceptionOntology.owl#DateTime"/>
</rdf:RDF>
