diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-02-17 23:31:45 +0100 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-02-17 23:31:45 +0100 |
commit | f1d70c71e0444fc49a85459db85c9a6a139f0bd0 (patch) | |
tree | 15e12f14b76cb5b28360d0535f88cf7d691c8bc0 /data/domain/bibliography.osxml | |
parent | bbc8b5a18f8b2f5ec0ae1de6e60c23464bd799b5 (diff) |
Copied some domains and typesystems from the testdata folder to the data folder
Diffstat (limited to 'data/domain/bibliography.osxml')
-rw-r--r-- | data/domain/bibliography.osxml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/data/domain/bibliography.osxml b/data/domain/bibliography.osxml new file mode 100644 index 0000000..11e2606 --- /dev/null +++ b/data/domain/bibliography.osxml @@ -0,0 +1,27 @@ +<?xml version="1.0"?> +<domain name="bibliography"> + + <import rel="domain" src="book"/> + <import rel="domain" src="meta"/> + + <struct name="bibliography" transparent="true"> + <field> + <childRef ref="bibEntry"/> + </field> + <parentRef ref="book"> + <field name="bibliography" isSubtree="true"/> + </parentRef> + </struct> + + <struct name="bibEntry"> + <primitive name="name" type="string" isSubtree="true"/> + <primitive name="year" type="int" isSubtree="true"/> + <primitive name="journal" type="string" isSubtree="true" optional="true"/> + <primitive name="pages" type="cardinality" isSubtree="true" optional="true"/> + <!-- Here a geographical enum or something would be more exact --> + <primitive name="location" type="string" isSubtree="true" optional="true"/> + <field name="authors" optional="true"> + <childRef ref="meta.author"/> + </field> + </struct> +</domain> |