Permalink
Browse files

[Doc] Fixed SYNTAX.md

  • Loading branch information...
1 parent c55b014 commit 2c78ce5b0a4dd405127a9a52c970c6a1a6f269ed @vdim committed Apr 5, 2012
Showing with 14 additions and 11 deletions.
  1. +14 −11 doc/SYNTAX.md
View
@@ -1,4 +1,5 @@
# YZ
+## Simple collection
For demostration features of the YZ we will use some examples. First example is
collection with string values. Let's define this collection something like this
(we use [Clojure] (http://clojure.org/) language):
@@ -245,20 +246,22 @@ Notes:
* result of calling another function
-### Joining
+## More complex model
So far we test simple flat collection. Let's consider more complex model
(we choose classic example about university):
<img src="https://github.com/vdim/yz/raw/master/doc/uni_model.png" alt="UML class diagram for university model"/>
-We implement it (see source code [here](https://github.com/vdim/yz/blob/master/test/src/university/))
+We implement it (see source code [here](https://github.com/vdim/yz/blob/master/test/src/university/model))
and create some [example] (https://github.com/vdim/yz/blob/master/test/src/ru/petrsu/nest/yz/queries/uni_bd.clj)
which is represented on figure below in UML object diagram notation:
<img src="https://github.com/vdim/yz/raw/master/doc/uni_model_object.png"
alt="Example of university model in UML object diagram notation"/>
In order to use this university model and next queries you can follow
-[this] (https://github.com/vdim/yz/blob/master/doc/TESTING.md) instruction.
+[this] (https://github.com/vdim/yz/blob/master/doc/TESTINGUNIMODEL.md) instruction.
+
+### Joining
So let's start. In order to select linked objects you should use brackets. For example, if you want to
get all courses and its faculty you should query:
@@ -274,12 +277,12 @@ This query returns the following result:
Note that so far we work with flat collection and get result as flat rows. But now
you can get a hierarchical result:
- [[#<Course Algebra>
- [[#<Faculty Marry> []]]
- #<Course Geometry>
- [[#<Faculty David> []]]
- #<Course Russian>
- [[#<Faculty Brian> []]]
- #<Course German>
- [[#<Faculty Brian> []]]]],
+ [[#<Course Algebra>
+ [[#<Faculty Marry> []]]
+ #<Course Geometry>
+ [[#<Faculty David> []]]
+ #<Course Russian>
+ [[#<Faculty Brian> []]]
+ #<Course German>
+ [[#<Faculty Brian> []]]]],

0 comments on commit 2c78ce5

Please sign in to comment.