diff options
author | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-03-01 20:47:25 +0100 |
---|---|---|
committer | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-03-01 20:47:25 +0100 |
commit | a7019614896fdd3e29b9a28f6a8cfd2c1b365983 (patch) | |
tree | 8a9f102649e88ebf24de0a07cf5f348804a6212d /data/domain | |
parent | 0d4ce5c555a1ba3a87cb9a1e350854eda7a243e1 (diff) |
Renamed domain to ontology.
Diffstat (limited to 'data/domain')
-rw-r--r-- | data/domain/bibliography.osxml | 42 | ||||
-rw-r--r-- | data/domain/book.osxml | 34 | ||||
-rw-r--r-- | data/domain/comments.osxml | 40 | ||||
-rw-r--r-- | data/domain/headings.osxml | 33 | ||||
-rw-r--r-- | data/domain/lists.osxml | 26 | ||||
-rw-r--r-- | data/domain/meta.osxml | 50 |
6 files changed, 0 insertions, 225 deletions
diff --git a/data/domain/bibliography.osxml b/data/domain/bibliography.osxml deleted file mode 100644 index 5953e5f..0000000 --- a/data/domain/bibliography.osxml +++ /dev/null @@ -1,42 +0,0 @@ -<?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"> - <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> -</domain> diff --git a/data/domain/book.osxml b/data/domain/book.osxml deleted file mode 100644 index 8ec60ed..0000000 --- a/data/domain/book.osxml +++ /dev/null @@ -1,34 +0,0 @@ -<?xml version="1.0" standalone="yes"?> -<domain name="book"> - <struct name="book" cardinality="{1}" isRoot="true"> - <field> - <childRef ref="book.chapter"/> - <childRef ref="book.paragraph"/> - </field> - </struct> - <struct name="chapter"> - <field> - <childRef ref="book.section"/> - <childRef ref="book.paragraph"/> - </field> - </struct> - <struct name="section"> - <field> - <childRef ref="book.subsection"/> - <childRef ref="book.paragraph"/> - </field> - </struct> - <struct name="subsection"> - <field> - <childRef ref="book.paragraph"/> - </field> - </struct> - <struct name="paragraph" transparent="true"> - <field> - <childRef ref="book.text"/> - </field> - </struct> - <struct name="text" transparent="true"> - <primitive type="string"/> - </struct> -</domain> diff --git a/data/domain/comments.osxml b/data/domain/comments.osxml deleted file mode 100644 index cb19bd4..0000000 --- a/data/domain/comments.osxml +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" standalone="yes"?> -<domain name="comments"> - <import rel="domain" src="book"/> - - <!-- an annotation comment --> - <annotation name="comment"> - <field name="replies" isSubtree="true"> - <childRef ref="reply"/> - </field> - <field name="content"> - <childRef ref="book.paragraph"/> - </field> - </annotation> - - <!-- an point-like structure comment. --> - <struct name="comment"> - <!-- Is there a chance to prevent users from having to redefine these - two fields in comment and reply? Could we use a fieldRef here? - Or would that be circular? --> - <field name="replies" isSubtree="true"> - <childRef ref="reply"/> - </field> - <field name="content"> - <childRef ref="book.paragraph"/> - </field> - <parentRef ref="book.paragraph"> - <fieldRef ref="$default"/> - </parentRef> - </struct> - <!-- note that replies are organized in a tree fashion: One can also reply - to a reply --> - <struct name="reply"> - <field name="replies" isSubtree="true"> - <childRef ref="reply"/> - </field> - <field name="content"> - <childRef ref="book.paragraph"/> - </field> - </struct> -</domain> diff --git a/data/domain/headings.osxml b/data/domain/headings.osxml deleted file mode 100644 index 055a204..0000000 --- a/data/domain/headings.osxml +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" standalone="yes"?> -<domain name="headings"> - - <import rel="domain" src="book"/> - - <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" isSubtree="true" optional="true"/> - </parentRef> - <parentRef ref="book.chapter"> - <field name="heading" isSubtree="true" optional="true"/> - </parentRef> - <parentRef ref="book.section"> - <field name="heading" isSubtree="true" optional="true"/> - </parentRef> - <parentRef ref="book.subsection"> - <field name="heading" isSubtree="true" optional="true"/> - </parentRef> - <parentRef ref="book.paragraph"> - <field name="heading" isSubtree="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 domains. - So we need to reference the default field of paragraph. --> - <fieldRef ref="book.paragraph.$default"/> - </struct> -</domain> diff --git a/data/domain/lists.osxml b/data/domain/lists.osxml deleted file mode 100644 index 66e77cb..0000000 --- a/data/domain/lists.osxml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<domain name="lists"> - <import rel="domain" src="book"/> - - <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 name="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 name="item"/> - </field> - </struct> - <struct name="item"> - <field> - <childRef name="book.paragaph"/> - </field> - </struct> -</domain> diff --git a/data/domain/meta.osxml b/data/domain/meta.osxml deleted file mode 100644 index b595f39..0000000 --- a/data/domain/meta.osxml +++ /dev/null @@ -1,50 +0,0 @@ -<?xml version="1.0"?> -<domain name="meta"> - - <import rel="typesystem" src="affiliation"/> - <import rel="typesystem" src="email"/> - <import rel="typesystem" src="version"/> - <import rel="domain" src="book"/> - <import rel="domain" src="headings"/> - - <struct name="meta" cardinality="{1}" transparent="true"> - <field> - <childRef ref="authors"/> - <childRef ref="version"/> - </field> - <parentRef ref="book"> - <field name="meta" isSubtree="true" optional="true"/> - </parentRef> - <parentRef ref="chapter"> - <field name="meta" isSubtree="true" optional="true"/> - </parentRef> - <!-- One could also include "article" and other things here --> - </struct> - - <struct name="person"> - <primitive isSubtree="true" name="firstName" type="string"/> - <primitive isSubtree="true" name="secondNames" type="string[]" optional="true"/> - <primitive isSubtree="true" name="lastName" type="string"/> - <primitive isSubtree="true" name="email" type="email" optional="true"/> - <primitive isSubtree="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> -</domain> |