summaryrefslogtreecommitdiff
path: root/testdata/integration/domain_interaction/headings_ontology.osxml
diff options
context:
space:
mode:
authorBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-04-08 13:02:23 +0200
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2016-04-25 22:19:33 +0200
commit9d04fb897ffca7db1c6030125198345b2203e858 (patch)
treecdf212273ca5aecf1e88b5e77de09f6510f15e6e /testdata/integration/domain_interaction/headings_ontology.osxml
parentea75789a02ed70d0cfa131ec615e2776f605d7dc (diff)
renamed the osxml integration folder to domain_interaction because that seemed semantically more fitting.
Diffstat (limited to 'testdata/integration/domain_interaction/headings_ontology.osxml')
-rw-r--r--testdata/integration/domain_interaction/headings_ontology.osxml33
1 files changed, 33 insertions, 0 deletions
diff --git a/testdata/integration/domain_interaction/headings_ontology.osxml b/testdata/integration/domain_interaction/headings_ontology.osxml
new file mode 100644
index 0000000..56c9e7d
--- /dev/null
+++ b/testdata/integration/domain_interaction/headings_ontology.osxml
@@ -0,0 +1,33 @@
+<?xml version="1.0" standalone="yes"?>
+<ontology name="headings">
+
+ <import rel="ontology" src="./book_ontology.osxml"/>
+
+ <struct name="heading" cardinality="1" transparent="true">
+ <!-- The parent mechanism is a curious thing. Remind yourself
+ that parent-child-relationship in this sense are mediated
+ by fields. So we must either reference a field that is
+ already there or declare a new one on the fly. -->
+ <parentRef ref="book.book">
+ <field name="heading" subtree="true" optional="true"/>
+ </parentRef>
+ <parentRef ref="book.chapter">
+ <field name="heading" subtree="true" optional="true"/>
+ </parentRef>
+ <parentRef ref="book.section">
+ <field name="heading" subtree="true" optional="true"/>
+ </parentRef>
+ <parentRef ref="book.subsection">
+ <field name="heading" subtree="true" optional="true"/>
+ </parentRef>
+ <parentRef ref="book.paragraph">
+ <field name="heading" subtree="true" optional="true"/>
+ </parentRef>
+ <!-- regarding its fields we have a problem here. We do not want to
+ declare a new field, because in fact we want to allow every
+ bit of content that a paragraph would allow - also considering
+ possible extensions of paragraph by other ontologies.
+ So we need to reference the default field of paragraph. -->
+ <fieldRef ref="book.paragraph.$default"/>
+ </struct>
+</ontology>