Let the objects be adjacent

There is another very important principle:

Let objects
that are textually adjacent
be adjacent in
their monad sets.

What does that mean?

Well, two monad sets, A and B, are adjacent (in that order) if and only if A.last + 1 = B.first. In other words, if B begins one monad later than the last monad of A.

You should strive to make up the monad assignments in such a way that objects that are actually adjacent in the text are also adjacent in the monads.

Examples?

Words are usually adjacent. Sentences are usually adjacent. Paragraphs are usually adjacent.

Why should I make them adjacent?

Because the topographic part of MQL relies on it.

One of the great principles of the MQL query engine is that objects that are adjacent in the database will be found by adjacent [object blocks] in the query. An "object block" is what is between [square brackets] in the queries. For example:

SELECT ALL OBJECTS
WHERE
[Word]
[Word]
GO

Since these two object blocks are adjacent in the query, this query will only work if the words to be found are actually adjacent in the database.


Previous:More than one least object type
Up:Monad assignment
Next:Let the objects be embedded