The "query" package is used it to setup and run hyper-graph queries.

How to setup a query?

Create a new query instance by calling: {@link bzh.plealog.hge.api.query.HGEManager#newHQuery()}. This returns a new {@link bzh.plealog.hge.api.query.HGEQuery} instance. Then, you can add constraints on this instance.

How to run a query?

Simply call the method execute(DataGraphModel,HDataGraph) on the HGEQuery instance.

How does it work?

The query execution engine implements a method to solve the subgraph isomorphism problem in the context of an hyper-graph containing data types and values.