summaryrefslogtreecommitdiff
path: root/data/ontology/book.osxml
diff options
context:
space:
mode:
Diffstat (limited to 'data/ontology/book.osxml')
-rw-r--r--data/ontology/book.osxml34
1 files changed, 34 insertions, 0 deletions
diff --git a/data/ontology/book.osxml b/data/ontology/book.osxml
new file mode 100644
index 0000000..41dc788
--- /dev/null
+++ b/data/ontology/book.osxml
@@ -0,0 +1,34 @@
+<?xml version="1.0" standalone="yes"?>
+<ontology name="book">
+ <struct name="book" cardinality="{1}" isRoot="true">
+ <field>
+ <childRef ref="book.chapter"/>
+ <childRef ref="book.paragraph"/>
+ </field>
+ </struct>
+ <struct name="chapter">
+ <field>
+ <childRef ref="book.section"/>
+ <childRef ref="book.paragraph"/>
+ </field>
+ </struct>
+ <struct name="section">
+ <field>
+ <childRef ref="book.subsection"/>
+ <childRef ref="book.paragraph"/>
+ </field>
+ </struct>
+ <struct name="subsection">
+ <field>
+ <childRef ref="book.paragraph"/>
+ </field>
+ </struct>
+ <struct name="paragraph" transparent="true">
+ <field>
+ <childRef ref="book.text"/>
+ </field>
+ </struct>
+ <struct name="text" transparent="true">
+ <primitive type="string"/>
+ </struct>
+</ontology>