summaryrefslogtreecommitdiff
path: root/testdata/osxmlparser
diff options
context:
space:
mode:
Diffstat (limited to 'testdata/osxmlparser')
-rw-r--r--testdata/osxmlparser/affiliation_typesystem.osxml10
-rw-r--r--testdata/osxmlparser/bibliography_ontology.osxml42
-rw-r--r--testdata/osxmlparser/complex_book.osxml107
-rw-r--r--testdata/osxmlparser/email_typesystem.osxml8
-rw-r--r--testdata/osxmlparser/emphasis_ontology.osxml5
-rw-r--r--testdata/osxmlparser/lists_ontology.osxml24
-rw-r--r--testdata/osxmlparser/meta_ontology.osxml49
-rw-r--r--testdata/osxmlparser/simple_annotation.osxml10
-rw-r--r--testdata/osxmlparser/version_typesystem.osxml8
9 files changed, 0 insertions, 263 deletions
diff --git a/testdata/osxmlparser/affiliation_typesystem.osxml b/testdata/osxmlparser/affiliation_typesystem.osxml
deleted file mode 100644
index d84dc30..0000000
--- a/testdata/osxmlparser/affiliation_typesystem.osxml
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" standalone="yes"?>
-<typesystem name="affiliation">
- <struct name="affiliation">
- <field name="workgroup" type="string"/>
- <field name="departement" type="string"/>
- <field name="institution" type="string"/>
- </struct>
-
- <constant name="citec.sc" type="affiliation" value="[workgroup=Semantic Computing Group,departement=Center of Excellence Cognitive Interaction Technology (CITEC), institution=Bielefeld University]"/>
-</typesystem>
diff --git a/testdata/osxmlparser/bibliography_ontology.osxml b/testdata/osxmlparser/bibliography_ontology.osxml
deleted file mode 100644
index 0333133..0000000
--- a/testdata/osxmlparser/bibliography_ontology.osxml
+++ /dev/null
@@ -1,42 +0,0 @@
-<?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>
diff --git a/testdata/osxmlparser/complex_book.osxml b/testdata/osxmlparser/complex_book.osxml
deleted file mode 100644
index 8eb5f26..0000000
--- a/testdata/osxmlparser/complex_book.osxml
+++ /dev/null
@@ -1,107 +0,0 @@
-<?xml version="1.0"?>
-<document>
-
- <import rel="ontology" src="./book_ontology"/>
- <import rel="ontology" src="./headings_ontology"/>
- <import rel="ontology" src="./meta_ontology"/>
- <import rel="ontology" src="./bibliography_ontology"/>
- <import rel="ontology" src="./lists_ontology"/>
- <import rel="ontology" src="./emphasis_ontology"/>
- <import rel="ontology" src="./comments_ontology"/>
- <!--<alias tag="paragraph" aka="p"/>
- <alias tag="emphasized" aka="em"/>-->
-
- <book>
- <meta>
- <primaryAuthor>
- <firstName>Immanuel</firstName>
- <lastName>Kant</lastName>
- <email>[ikant,philo.albertus-koenigsberg,de]</email>
- <affiliation>[Logic and Metaphysics, Faculty of Philosophy, Albertus-University Königsberg]</affiliation>
- </primaryAuthor>
- <version>[1,0,0]</version>
- </meta>
-
- <bibliography>
- <bibEntry>
- <title>Dezember-Heft</title>
- <journal>Berlinische Monatsschrift</journal>
- <year>1784</year>
- <pages>{481-494}</pages>
- </bibEntry>
- <bibEntry>
- <title>Kleine Schriften</title>
- <primaryAuthor>
- <firstName>Immanuel</firstName>
- <lastName>Kant</lastName>
- </primaryAuthor>
- <year>1793</year>
- <pages>{34-50}</pages>
- <location>Neuwied</location>
- </bibEntry>
- <bibEntry>
- <title>Zerstreute Aufsätze</title>
- <primaryAuthor>
- <firstName>Immanuel</firstName>
- <lastName>Kant</lastName>
- </primaryAuthor>
- <year>1793</year>
- <pages>{25-37}</pages>
- <location>Frankfurt und Leipzig</location>
- </bibEntry>
- <bibEntry>
- <title>Sämmtliche kleine Schriften</title>
- <primaryAuthor>
- <firstName>Immanuel</firstName>
- <lastName>Kant</lastName>
- </primaryAuthor>
- <year>1798</year>
- <pages>{159-172}</pages>
- <location>Königsberg u. Leipzig</location>
- </bibEntry>
- <bibEntry>
- <title>I. Kant's vermischte Schriften</title>
- <primaryAuthor>
- <firstName>Immanuel</firstName>
- <lastName>Kant</lastName>
- </primaryAuthor>
- <year>1799</year>
- <pages>{687-700}</pages>
- <location>Halle</location>
- </bibEntry>
- <bibEntry>
- <title>Vorzügliche kleine Schriften und Aufsätze</title>
- <primaryAuthor>
- <firstName>Immanuel</firstName>
- <lastName>Kant</lastName>
- </primaryAuthor>
- <year>1833</year>
- <pages>{75-84}</pages>
- <location>Leipzig</location>
- </bibEntry>
- </bibliography>
-
- <heading>
- Beantwortung der Frage: Was ist Aufklärung?
- </heading>
-
- <chapter name="content">
- <heading>Was ist Aufklärung?</heading>
-
- <a:start:strong/>Aufklärung ist der Ausgang des Menschen aus seiner
- selbstverschuldeten Unmündigkeit<a:end:strong/>.
- <ul>
- <item><a:start:emphasized/>Unmündigkeit<a:end:emphasized/> ist
- das Unvermögen, sich seines Verstandes ohne Leitung eines anderen zu
- bedienen.</item>
- <item><a:start:emphasized/>Selbstverschuldet<a:end:emphasized/>
- ist diese Unmündigkeit, wenn die Ursache derselben nicht am Mangel
- des Verstandes, sondern der Entschließung und des Mutes liegt, sich
- seiner ohne Leitung eines andern zu bedienen.</item>
- </ul>
- <a:start:strong/>Sapere aude!<a:end:strong/> Habe Mut, dich deines
- eigenen Verstandes zu bedienen! ist also der Wahlspruch der
- Aufklärung.
- </chapter>
- </book>
-</document>
diff --git a/testdata/osxmlparser/email_typesystem.osxml b/testdata/osxmlparser/email_typesystem.osxml
deleted file mode 100644
index 325f89a..0000000
--- a/testdata/osxmlparser/email_typesystem.osxml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" standalone="yes"?>
-<typesystem name="email">
- <struct name="email">
- <field name="local" type="string"/>
- <field name="domainName" type="string"/>
- <field name="domainSuffix" type="string"/>
- </struct>
-</typesystem>
diff --git a/testdata/osxmlparser/emphasis_ontology.osxml b/testdata/osxmlparser/emphasis_ontology.osxml
deleted file mode 100644
index 0fdd63a..0000000
--- a/testdata/osxmlparser/emphasis_ontology.osxml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" standalone="yes"?>
-<ontology name="emphasis">
- <annotation name="emphasized"/>
- <annotation name="strong"/>
-</ontology>
diff --git a/testdata/osxmlparser/lists_ontology.osxml b/testdata/osxmlparser/lists_ontology.osxml
deleted file mode 100644
index c18494a..0000000
--- a/testdata/osxmlparser/lists_ontology.osxml
+++ /dev/null
@@ -1,24 +0,0 @@
-<?xml version="1.0"?>
-<ontology name="lists">
- <import rel="ontology" src="./book_ontology"/>
-
- <struct name="ul" isa="book.paragraph">
- <!-- Here we solve the problem of parents using the isa
- mechanism, because a list may occur whereever a paragraph
- may occur. However we do want to override the default field. -->
- <field>
- <childRef ref="item"/>
- </field>
- </struct>
- <struct name="ol" isa="book.paragraph">
- <!-- Here we solve the problem of parents using the isa
- mechanism, because a list may occur whereever a paragraph
- may occur. However we do want to override the default field. -->
- <field>
- <childRef ref="item"/>
- </field>
- </struct>
- <struct name="item">
- <fieldRef ref="book.paragraph.$default"/>
- </struct>
-</ontology>
diff --git a/testdata/osxmlparser/meta_ontology.osxml b/testdata/osxmlparser/meta_ontology.osxml
deleted file mode 100644
index eb392ce..0000000
--- a/testdata/osxmlparser/meta_ontology.osxml
+++ /dev/null
@@ -1,49 +0,0 @@
-<?xml version="1.0"?>
-<ontology name="meta">
-
- <import rel="typesystem" src="./affiliation_typesystem"/>
- <import rel="typesystem" src="./email_typesystem"/>
- <import rel="typesystem" src="./version_typesystem"/>
- <import rel="ontology" src="./book_ontology"/>
-
- <struct name="meta" cardinality="{1}" transparent="true">
- <field>
- <childRef ref="authors"/>
- <childRef ref="version"/>
- </field>
- <parentRef ref="book">
- <field name="meta" subtree="true" optional="true"/>
- </parentRef>
- <parentRef ref="chapter">
- <field name="meta" subtree="true" optional="true"/>
- </parentRef>
- <!-- One could also include "article" and other things here -->
- </struct>
-
- <struct name="person">
- <primitive subtree="true" name="firstName" type="string"/>
- <primitive subtree="true" name="secondNames" type="string[]" optional="true"/>
- <primitive subtree="true" name="lastName" type="string"/>
- <primitive subtree="true" name="email" type="email" optional="true"/>
- <primitive subtree="true" name="affiliation" type="affiliation" optional="true"/>
- </struct>
-
- <!-- wrapper author tag to allow specifying no authors whatsoever. But if
- an author is specified it has to be at least one primary author. -->
- <struct name="authors" transparent="true" cardinality="{0-1}">
- <field>
- <childRef ref="author"/>
- </field>
- </struct>
-
- <!-- no explicit cardinality, because we might have multiple authors -->
- <struct name="author" isa="person"/>
-
- <!-- but we need at least one primary author -->
- <struct name="primaryAuthor" cardinality="{>0}" isa="author"/>
-
- <!-- version intermediate struct -->
- <struct name="version" cardinality="{0-1}">
- <primitive type="version"/>
- </struct>
-</ontology>
diff --git a/testdata/osxmlparser/simple_annotation.osxml b/testdata/osxmlparser/simple_annotation.osxml
deleted file mode 100644
index c0f426a..0000000
--- a/testdata/osxmlparser/simple_annotation.osxml
+++ /dev/null
@@ -1,10 +0,0 @@
-<?xml version="1.0" standalone="yes"?>
-<document>
- <import rel="ontology" src="./book_ontology.osxml"/>
- <import rel="ontology" src="./comments_ontology.osxml"/>
-
- <book>
- This is a <a:start:comment>This is not a nice test!</a:start:comment>test<a:end:comment/>.
- </book>
-</document>
-
diff --git a/testdata/osxmlparser/version_typesystem.osxml b/testdata/osxmlparser/version_typesystem.osxml
deleted file mode 100644
index 0d52736..0000000
--- a/testdata/osxmlparser/version_typesystem.osxml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" standalone="yes"?>
-<typesystem name="version">
- <struct name="version">
- <field name="major" type="int"/>
- <field name="minor" type="int"/>
- <field name="patch" type="int"/>
- </struct>
-</typesystem>