summaryrefslogtreecommitdiff
path: root/testdata/integration/osxml/bibliography_ontology.osxml
diff options
context:
space:
mode:
authorBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-04-08 12:20:19 +0200
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2016-04-25 22:19:33 +0200
commit7a6c99c0b09377bca0b77d2918cf1e2092b3f59c (patch)
tree582118cdb815c7d942c4b0ae9d94642e3ba01602 /testdata/integration/osxml/bibliography_ontology.osxml
parent003d5e57f6f4c8996dcd9cdd03b61004307fd180 (diff)
refactored the more sophisticated OSXML parser tests to the integration test folder.
Diffstat (limited to 'testdata/integration/osxml/bibliography_ontology.osxml')
-rw-r--r--testdata/integration/osxml/bibliography_ontology.osxml42
1 files changed, 42 insertions, 0 deletions
diff --git a/testdata/integration/osxml/bibliography_ontology.osxml b/testdata/integration/osxml/bibliography_ontology.osxml
new file mode 100644
index 0000000..0333133
--- /dev/null
+++ b/testdata/integration/osxml/bibliography_ontology.osxml
@@ -0,0 +1,42 @@
+<?xml version="1.0"?>
+<ontology name="bibliography">
+
+ <import rel="ontology" src="./book_ontology"/>
+ <import rel="ontology" src="./meta_ontology"/>
+
+ <struct name="bibliography" transparent="true">
+ <field>
+ <childRef ref="bibEntry"/>
+ </field>
+ <parentRef ref="book">
+ <field name="bibliography" subtree="true"/>
+ </parentRef>
+ </struct>
+ <struct name="bibEntry">
+ <field>
+ <childRef ref="meta.authors"/>
+ <childRef ref="title"/>
+ <childRef ref="year"/>
+ <childRef ref="journal"/>
+ <childRef ref="pages"/>
+ <childRef ref="location"/>
+ </field>
+ </struct>
+ <struct name="title" cardinality="{1}">
+ <primitive type="string"/>
+ </struct>
+ <struct name="year" cardinality="{1}">
+ <primitive type="int"/>
+ </struct>
+ <struct name="journal" cardinality="{0-1}">
+ <!-- here some kind of database reference would be better -->
+ <primitive type="string"/>
+ </struct>
+ <struct name="pages" cardinality="{0-1}">
+ <primitive type="cardinality"/>
+ </struct>
+ <struct name="location" cardinality="{0-1}">
+ <!-- here some kind of database reference would be better -->
+ <primitive type="string"/>
+ </struct>
+</ontology>