<?xml version="1.0" encoding="WINDOWS-1252"?>

<!DOCTYPE uridef [
  <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns">
  <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema">
  <!ENTITY owl "http://www.w3.org/2002/07/owl">
  <!ENTITY xsd "http://www.w3.org/2001/XMLSchema">
  <!ENTITY service "http://www.daml.org/services/owl-s/1.2/Service.owl">
  <!ENTITY profile "http://www.daml.org/services/owl-s/1.2/Profile.owl">
  <!ENTITY process "http://www.daml.org/services/owl-s/1.2/Process.owl">
  <!ENTITY grounding "http://www.daml.org/services/owl-s/1.2/Grounding.owl">
  <!ENTITY expr "http://www.daml.org/services/owl-s/1.2/generic/Expression.owl">
  <!ENTITY swrl "http://www.w3.org/2003/11/swrl">
  <!ENTITY this "http://127.0.0.1/services/testes/s97.owls">
]>

<rdf:RDF
  xmlns:rdf="&rdf;#"
  xmlns:rdfs="&rdfs;#"
  xmlns:owl="&owl;#"
  xmlns:xsd="&xsd;#"
  xmlns:service="&service;#"
  xmlns:profile="&profile;#"
  xmlns:process="&process;#"
  xmlns:grounding="&grounding;#"
  xmlns:expr="&expr;#"
  xmlns:swrl="&swrl;#"
  xml:base="&this;"
  xmlns="&this;#"
>

<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/modified_books.owl" />
<owl:imports rdf:resource="http://127.0.0.1/ontology/creditcard.owl" />
<owl:imports rdf:resource="http://127.0.0.1/ontology/deliverytransport.owl" />
<owl:imports rdf:resource="http://127.0.0.1/ontology/concept.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/SUMO.owl" />
<owl:imports rdf:resource="http://127.0.0.1/ontology/Expression.owl" />
</owl:Ontology>

<owl:ObjectProperty rdf:ID="DELIVERY">
	<rdfs:comment>delivery</rdfs:comment>
	<rdfs:domain rdf:resource="#AirTransportation"/>
	<rdfs:range rdf:resource="#Address"/>
</owl:ObjectProperty>

<owl:ObjectProperty rdf:ID="HASSAVINGACCOUNT">
	<rdfs:comment>hasSavingAccount</rdfs:comment>
	<rdfs:domain rdf:resource="#User"/>
	<rdfs:range rdf:resource="#Journals"/>
</owl:ObjectProperty>


<service:Service rdf:ID="S97_SERVICE">
<service:presents rdf:resource="#S97_PROFILE"/>
<service:describedBy rdf:resource="#S97_PROCESS_MODEL"/>
<service:supports rdf:resource="#S97_GROUNDING"/>
</service:Service>

<profile:Profile rdf:ID="S97_PROFILE">
<service:isPresentedBy rdf:resource="#S97_SERVICE"/>
<profile:serviceName xml:lang="en">
S97
</profile:serviceName>
<profile:textDescription xml:lang="en">
This service returns author and price of a book, short-story or novel.
</profile:textDescription>
<profile:hasInput  rdf:resource="#_BOOK"/>
<profile:hasOutput rdf:resource="#_AUTHOR"/>
<profile:hasPrecondition rdf:resource="#_HASSAVINGACCOUNT"/>
<profile:hasResult rdf:resource="#_DELIVERY"/>

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

<process:ProcessModel rdf:ID="S97_PROCESS_MODEL">
<service:describes rdf:resource="#S97_SERVICE"/>
<process:hasProcess rdf:resource="#S97_PROCESS"/>
</process:ProcessModel>

<process:AtomicProcess rdf:ID="S97_PROCESS">
<process:hasInput  rdf:resource="#_BOOK"/>
<process:hasOutput rdf:resource="#_AUTHOR"/>
<process:hasPrecondition rdf:resource="#_HASSAVINGACCOUNT"/>
<process:hasResult rdf:resource="#_DELIVERY"/>
</process:AtomicProcess>

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

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



<expr:SWRL-Condition rdf:ID="_HASSAVINGACCOUNT">
		<rdfs:label>hasSavingAccount(_User, _Journals)</rdfs:label>
		<expr:expressionLanguage rdf:resource="&expr;#SWRL"/>
		<expr:expressionObject>
          <swrl:AtomList>
            <rdf:first>
			 <swrl:IndividualPropertyAtom>
               <swrl:propertyPredicate rdf:resource="http://127.0.0.1/ontology/creditcard.owl#hasAccount"/>  
                <swrl:argument1 rdf:resource="http://127.0.0.1/ontology/modified_books.owl#User"/>
                <swrl:argument2 rdf:resource="http://127.0.0.1/ontology/modified_books.owl#Journals"/> 
              </swrl:IndividualPropertyAtom>
            </rdf:first> 
            <rdf:rest rdf:resource="&rdf;#nil"/>         
		  </swrl:AtomList>
		</expr:expressionObject>
</expr:SWRL-Condition>

<process:Result rdf:ID="_DELIVERY">
		<process:hasEffect>
        <expr:SWRL-Condition rdf:ID="_DELIVERY">
		<rdfs:label>delivery(_AirTransportation, _Address)</rdfs:label>
		<expr:expressionLanguage rdf:resource="&expr;#SWRL"/>
		<expr:expressionObject>
          <swrl:AtomList>
            <rdf:first>
			 <swrl:IndividualPropertyAtom>
                <swrl:propertyPredicate rdf:resource="http://127.0.0.1/ontology/deliverytransport.owl#delivery"/>  
                <swrl:argument1 rdf:resource="http://127.0.0.1/ontology/Mid-level-ontology.owl#AirTransportation"/>
                <swrl:argument2 rdf:resource="http://127.0.0.1/ontology/Mid-level-ontology.owl#Address"/> 
              </swrl:IndividualPropertyAtom>
            </rdf:first> 
            <rdf:rest rdf:resource="&rdf;#nil"/>         
		  </swrl:AtomList>
		</expr:expressionObject>
	</expr:SWRL-Condition>
      </process:hasEffect>
    </process:Result>
	
<grounding:WsdlGrounding rdf:ID="S97_GROUNDING">
<service:supportedBy rdf:resource="#S97_SERVICE"/>
</grounding:WsdlGrounding>

</rdf:RDF>
