A distributed approach for structured resource discovery on Grid