summaryrefslogtreecommitdiff
path: root/data/ontology/bibliography.osxml
blob: e133a2b19730cccb2c6f54b6288885258ba6248b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?xml version="1.0"?>
<ontology name="bibliography">

	<import rel="ontology" src="book"/>
	<import rel="ontology" 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">
		<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>