added query method to store api and implementation
- refactored mapping of descriptors to nodes/relations
- added javadoc