Research Article

OntoTrader: An Ontological Web Trading Agent Approach for Environmental Information Retrieval

Algorithm 1

(01) (QUERY-REF
(02)   :sender (agent-identifier:name WIAgent@SOLERES-KRS
(03)   :addresses (sequence http://...))
(04)   :receiver (set (agent-identifier
(05)   :name  IMIAgent@SOLERES-KRS ))
(06)   :contentPREFIX eid: http://acg.ual.es/soleres/tests/EIDOntology.owl#
(07)   PREFIX rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#
(08)   SELSCT DISTINCT ?EID__VariableName
(09)   WHERE  {
(10) ?EID__EID  eid:EID_eimId ?EID__EID_eimID.
(11)  ?EID__EID  eid:EID_hasClassification ?EID__Classification.
(12) ?EID__Classification eid:Classification_hasLayer ?EID__Layer.
(13) ?EID__Layer  eid:Layer_hasVariable ?EID__Variable.
(14) ?EID__Variable eid:Variable_name ?EID__VariableName.
(15) ?EID__Classification eid:Classification_hasTime ?EID__Time.
(16) ?EID__Time  eid:Time_YEAR ?EID__TIMEYEAR.
(17) FILTER (?EID__TimeYear = 2008).
(18)     }
(19)    ORDER BY ASC(?EID__VariableName)
(20)   :language SPARQL)