A query-application
If your application has the goal of displaying the results of a
SELECT (ALL|FOCUS) OBJECTS query, i.e., if it has the goal of
displaying the results of the kind of MQL query which your users will
likely be interested in, then the following strategy could be
used:
Parse the sheaf. Create an internal representation, and
extract what you need from that. This will include the monads
and object id_ds of the objects in question.
Make a big-union of the sets of monads of all the objects
you are interested in. You can use the MONAD SET CALCULATION
query to build this union. Alternatively, if you have the emdf
library linked into your application, you can use the
SetOfMonads to calculate the union.
Issue a GET OBJECTS HAVING MONADS IN query for each of
the object types you need to see (e.g., morpheme) with the
monad set which is the union of all monads you are interested
in. This will get you all the object id_ds of the objects you
are interested in.
How you go from here depends on how you want to solve the
display problem. One strategy could be:
Build an in-memory EMdF
database with this information.
Display the in-memory EMdF database on-screen in a scrolling
view, or dump results to a file or stdout.
Next, we describe the design of such an in-memory EMdF database.
|