<?xml version="1.0" encoding="WINDOWS-1252"?>
<rdf:RDF  xmlns:owl       = "http://www.w3.org/2002/07/owl#"
xmlns:rdfs      = "http://www.w3.org/2000/01/rdf-schema#"
xmlns:rdf       = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:service   = "http://www.daml.org/services/owl-s/1.1/Service.owl#"
xmlns:process   = "http://www.daml.org/services/owl-s/1.1/Process.owl#"
xmlns:profile    = "http://www.daml.org/services/owl-s/1.1/Profile.owl#"
xmlns:grounding = "http://www.daml.org/services/owl-s/1.1/Grounding.owl#"
xmlns:expr      = "http://www.daml.org/services/owl-s/1.1/generic/Expression.owl#"
xmlns:swrl		="http://www.w3.org/2003/11/swrl#"
xml:base        = "http://127.0.0.1/services/1.1/bookpersoncreditcardaccount_price_service.owls">

<owl:Ontology rdf:about="">
<owl:imports rdf:resource="http://127.0.0.1/ontology/Service.owl" />
<owl:imports rdf:resource="http://127.0.0.1/ontology/Process.owl" />
<owl:imports rdf:resource="http://127.0.0.1/ontology/Profile.owl" />
<owl:imports rdf:resource="http://127.0.0.1/ontology/Grounding.owl" />
<owl:imports rdf:resource="http://127.0.0.1/ontology/Expression.owl" />
<owl:imports rdf:resource="http://127.0.0.1/ontology/books.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:imports rdf:resource="http://127.0.0.1/ontology/Mid-level-ontology.owl" />
<owl:imports rdf:resource="http://127.0.0.1/ontology/concept.owl" />
</owl:Ontology>

<service:Service rdf:ID="CREDITCARDACCOUNTBOOKPERSON_PRICE_SERVICE">
<service:presents rdf:resource="#CREDITCARDACCOUNTBOOKPERSON_PRICE_PROFILE"/>
<service:describedBy rdf:resource="#CREDITCARDACCOUNTBOOKPERSON_PRICE_PROCESS"/>
<service:supports rdf:resource="#CREDITCARDACCOUNTBOOKPERSON_PRICE_GROUNDING"/>
</service:Service>

<profile:Profile rdf:ID="CREDITCARDACCOUNTBOOKPERSON_PRICE_PROFILE">
<service:isPresentedBy rdf:resource="#CREDITCARDACCOUNTBOOKPERSON_PRICE_SERVICE"/>
<profile:serviceName xml:lang="en">
AuthorisedPersonBookPrice
</profile:serviceName>
<profile:textDescription xml:lang="en">
This service varify account of an authorised person and
returns current purchase price of the given book with title. The price of books is 
different for every user and it's based on his history of purchasing books.
</profile:textDescription>
<profile:hasInput  rdf:resource="#_PERSON"/>
<profile:hasInput  rdf:resource="#_BOOK"/>
<profile:hasInput  rdf:resource="#_CREDITCARDACCOUNT"/>
<profile:hasOutput rdf:resource="#_PRICE"/>
<profile:hasPrecondition rdf:resource="#Authorization"/>

<profile:has_process rdf:resource="CREDITCARDACCOUNTBOOKPERSON_PRICE_PROCESS" /></profile:Profile>

<!--<process:ProcessModel rdf:ID="CREDITCARDACCOUNTBOOKPERSON_PRICE_PROCESS_MODEL">
<service:describes rdf:resource="#CREDITCARDACCOUNTBOOKPERSON_PRICE_SERVICE"/>
<process:hasProcess rdf:resource="#CREDITCARDACCOUNTBOOKPERSON_PRICE_PROCESS"/>
</process:ProcessModel>-->

<process:AtomicProcess rdf:ID="CREDITCARDACCOUNTBOOKPERSON_PRICE_PROCESS">
<service:describes rdf:resource="#CREDITCARDACCOUNTBOOKPERSON_PRICE_SERVICE"/>
<process:hasInput  rdf:resource="#_PERSON"/>
<process:hasInput  rdf:resource="#_BOOK"/>
<process:hasInput  rdf:resource="#_CREDITCARDACCOUNT"/>
<process:hasOutput rdf:resource="#_PRICE"/>
<process:hasPrecondition>
	<expr:SWRL-Condition rdf:ID="Authorization">
		<expr:expressionLanguage rdf:resource="http://www.daml.org/services/owl-s/1.1/generic/Expression.owl#SWRL"/>
		<expr:expressionBody rdf:parseType="Literal">
			<swrl:AtomList>
				<rdf:first>
					<swrl:ClassAtom>
						<swrl:classPredicate rdf:resource="http://127.0.0.1/ontology/ontosem.owl#Accepted"/>
						<swrl:argument1 rdf:resource="#_CREDITCARDACCOUNT"/>
					</swrl:ClassAtom>
				</rdf:first>
				<rdf:rest>
					<swrl:AtomList>
						<rdf:first>
							<swrl:ClassAtom>
								<swrl:classPredicate rdf:resource="http://127.0.0.1/ontology/core-plus-office.owl#Authorized"/>
								<swrl:argument1 rdf:resource="#_PERSON"/>
							</swrl:ClassAtom>
						</rdf:first>
						<rdf:rest>
							<swrl:AtomList>
								<rdf:first>
									<swrl:IndividualPropertyAtom>
										<swrl:propertyPredicate rdf:resource="http://127.0.0.1/ontology/Mid-level-ontology.owl#accountHolder"/>
										<swrl:argument1 rdf:resource="#_PERSON"/>
										<swrl:argument2 rdf:resource="#_CREDITCARDACCOUNT"/>
									</swrl:IndividualPropertyAtom>
								</rdf:first>
								<rdf:rest rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
							</swrl:AtomList>
						</rdf:rest>
					</swrl:AtomList>
				</rdf:rest>
			</swrl:AtomList>
		</expr:expressionBody>
	</expr:SWRL-Condition>
</process:hasPrecondition>
</process:AtomicProcess>

<process:Input rdf:ID="_PERSON">
<process:parameterType rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI">http://127.0.0.1/ontology/books.owl#Person</process:parameterType>
<rdfs:label></rdfs:label>
</process:Input>

<process:Input rdf:ID="_BOOK">
<process:parameterType rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI">http://127.0.0.1/ontology/books.owl#Book</process:parameterType>
<rdfs:label></rdfs:label>
</process:Input>

<process:Input rdf:ID="_CREDITCARDACCOUNT">
<process:parameterType rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI">http://127.0.0.1/ontology/Mid-level-ontology.owl#CreditCardAccount</process:parameterType>
<rdfs:label></rdfs:label>
</process:Input>

<process:Output  rdf:ID="_PRICE">
<process:parameterType rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI">http://127.0.0.1/ontology/concept.owl#Price</process:parameterType>
<rdfs:label></rdfs:label>
</process:Output>

<grounding:WsdlGrounding rdf:ID="CREDITCARDACCOUNTBOOKPERSON_PRICE_GROUNDING">
<service:supportedBy rdf:resource="#CREDITCARDACCOUNTBOOKPERSON_PRICE_SERVICE"/>
<grounding:hasAtomicProcessGrounding>
      <grounding:WsdlAtomicProcessGrounding rdf:ID="CREDITCARDACCOUNTBOOKPERSON_PRICE_AtomicProcessGrounding"/>
    </grounding:hasAtomicProcessGrounding>
</grounding:WsdlGrounding>

<grounding:WsdlAtomicProcessGrounding rdf:about="#CREDITCARDACCOUNTBOOKPERSON_PRICE_AtomicProcessGrounding">
    <grounding:wsdlInput>
      <grounding:WsdlInputMessageMap>
        <grounding:owlsParameter rdf:resource="#_PERSON"/>
        <grounding:wsdlMessagePart rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
        >http://127.0.0.1/wsdl/CreditcardaccountbookpersonPrice#_PERSON</grounding:wsdlMessagePart>
        <grounding:xsltTransformationString>None (XSL)</grounding:xsltTransformationString>
      </grounding:WsdlInputMessageMap>
    </grounding:wsdlInput>
    <grounding:wsdlOutput>
      <grounding:WsdlOutputMessageMap>
        <grounding:owlsParameter rdf:resource="#_PRICE"/>
        <grounding:wsdlMessagePart rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
        >http://127.0.0.1/wsdl/CreditcardaccountbookpersonPrice#_PRICE</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/CreditcardaccountbookpersonPrice#get_PRICERequest</grounding:wsdlInputMessage>
    <grounding:owlsProcess rdf:resource="#CREDITCARDACCOUNTBOOKPERSON_PRICE_PROCESS"/>
    <grounding:wsdlInput>
      <grounding:WsdlInputMessageMap>
        <grounding:owlsParameter rdf:resource="#_BOOK"/>
        <grounding:wsdlMessagePart rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
        >http://127.0.0.1/wsdl/CreditcardaccountbookpersonPrice#_BOOK</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/CreditcardaccountbookpersonPrice.wsdl</grounding:wsdlDocument>
    <grounding:wsdlOutputMessage rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
    >http://127.0.0.1/wsdl/CreditcardaccountbookpersonPrice#get_PRICEResponse</grounding:wsdlOutputMessage>
    <grounding:wsdlInput>
      <grounding:WsdlInputMessageMap>
        <grounding:owlsParameter rdf:resource="#_CREDITCARDACCOUNT"/>
        <grounding:wsdlMessagePart rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
        >http://127.0.0.1/wsdl/CreditcardaccountbookpersonPrice#_CREDITCARDACCOUNT</grounding:wsdlMessagePart>
        <grounding:xsltTransformationString>None (XSL)</grounding:xsltTransformationString>
      </grounding:WsdlInputMessageMap>
    </grounding:wsdlInput>
    <grounding:wsdlOperation>
      <grounding:WsdlOperationRef>
        <grounding:operation rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
        >http://127.0.0.1/wsdl/CreditcardaccountbookpersonPrice#get_PRICE</grounding:operation>
        <grounding:portType rdf:datatype="http://www.w3.org/2001/XMLSchema#anyURI"
        >http://127.0.0.1/wsdl/CreditcardaccountbookpersonPrice#CreditcardaccountbookpersonPriceSoap</grounding:portType>
      </grounding:WsdlOperationRef>
    </grounding:wsdlOperation>
  </grounding:WsdlAtomicProcessGrounding>

</rdf:RDF>
