Research Article

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

Algorithm 4

(01) PREFIX eid: <http://acg.ual.es/soleres/tests/EIDOntology.owl#>
(02) PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
(03) SELECT DISTINCT ?EID__EID_eimID ?EID__VariableId
(04) WHERE  {
(05)  ?EID__EID_eid: EID_eimId ?EID__EID_eimID.
(06)  ?EID__EID_eid: EID_hasClassification ?EID__Classification.
(07)  ?EID__Classification eid: Classification_hasLayer ?EID__Layer.
(08)  ?EID__Layer eid:Layer_name ?EID__LayerName.
(09)  ?EID__Layer eid:Layer_hasVariable ?EID__Variable.
(10)   ?EID__Variable eid:Variable_id ?EID__VariableId.
(11)    ?EID__Variableeid:Variable_name ?EID__VariableName.
(12)   FILTER (regex(?EID__LayerName, Edaphic sectors”)).
(13)   FILTER (regex(?EID__VariableName, E6”)).
(14)  }
(15) ORDER BY ASC(?EID__EID_eimID)