Research Article

Towards the Novel Reasoning among Particles in PSO by the Use of RDF and SPARQL

Algorithm 6

SPAQL query that returns particles in the neighborhood of particle4.
(1) SELECT ?particle
(2) WHERE {
(3) <http://www.example.org particle4>
(4) <http://www.example.org is_neighbor_of>
(5) ?particle
(6) }