diff options
Diffstat (limited to 'testdata')
15 files changed, 30 insertions, 30 deletions
diff --git a/testdata/osmlparser/empty_domain.osml b/testdata/osmlparser/empty_domain.osml deleted file mode 100644 index e8d6452..0000000 --- a/testdata/osmlparser/empty_domain.osml +++ /dev/null @@ -1,2 +0,0 @@ -\begin{domain#testDomain} -\end{domain} diff --git a/testdata/osmlparser/empty_ontology.osml b/testdata/osmlparser/empty_ontology.osml new file mode 100644 index 0000000..ffc9d80 --- /dev/null +++ b/testdata/osmlparser/empty_ontology.osml @@ -0,0 +1,2 @@ +\begin{ontology#testOntology} +\end{ontology} diff --git a/testdata/osmlparser/explicit_fields.osml b/testdata/osmlparser/explicit_fields.osml index a9ba1a3..ea13c02 100644 --- a/testdata/osmlparser/explicit_fields.osml +++ b/testdata/osmlparser/explicit_fields.osml @@ -1,6 +1,6 @@ \document -\domain#test +\ontology#test \struct#a[isRoot=true] \primitive#b[type=string,isSubtree=true] \primitive#c[type=string,isSubtree=true] diff --git a/testdata/osmlparser/include_recursive_root.osml b/testdata/osmlparser/include_recursive_root.osml index b3e433f..b29f1f4 100644 --- a/testdata/osmlparser/include_recursive_root.osml +++ b/testdata/osmlparser/include_recursive_root.osml @@ -1,6 +1,6 @@ \begin{document} -\domain#testDomain +\ontology#testOntology \struct#test[isRoot=true] \begin{test} diff --git a/testdata/osmlparser/include_root.osml b/testdata/osmlparser/include_root.osml index 1d1d660..3c65ca1 100644 --- a/testdata/osmlparser/include_root.osml +++ b/testdata/osmlparser/include_root.osml @@ -1,6 +1,6 @@ \begin{document} -\domain#testDomain +\ontology#testOntology \struct#test[isRoot=true] \field \childRef[ref=a] diff --git a/testdata/osmlparser/inline_domain.osml b/testdata/osmlparser/inline_ontology.osml index 1d71df4..1bba1f6 100644 --- a/testdata/osmlparser/inline_domain.osml +++ b/testdata/osmlparser/inline_ontology.osml @@ -1,6 +1,6 @@ \begin{document} -\domain#testDomain +\ontology#testOntology \struct#test[isRoot=true] \field \childRef[ref=a] diff --git a/testdata/osmlparser/invalid_explicit_fields.osml b/testdata/osmlparser/invalid_explicit_fields.osml index 9986204..eeecc0a 100644 --- a/testdata/osmlparser/invalid_explicit_fields.osml +++ b/testdata/osmlparser/invalid_explicit_fields.osml @@ -1,6 +1,6 @@ \document -\domain#test +\ontology#test \struct#a[isRoot=true] \primitive#b[type=string,isSubtree=true] \primitive#c[type=string,isSubtree=true] diff --git a/testdata/osmlparser/rollback_on_invalid_element.osml b/testdata/osmlparser/rollback_on_invalid_element.osml index 671c76d..282e741 100644 --- a/testdata/osmlparser/rollback_on_invalid_element.osml +++ b/testdata/osmlparser/rollback_on_invalid_element.osml @@ -1,6 +1,6 @@ \begin{document} -\domain#testDomain +\ontology#testOntology \struct#test[isRoot=true] \field \childRef[ref=a] diff --git a/testdata/osmlparser/struct_with_no_field.osml b/testdata/osmlparser/struct_with_no_field.osml index 8cf2d02..4f27998 100644 --- a/testdata/osmlparser/struct_with_no_field.osml +++ b/testdata/osmlparser/struct_with_no_field.osml @@ -1,6 +1,6 @@ \document -\domain#test +\ontology#test \struct#a[isRoot=true] \field \childRef[ref=b] diff --git a/testdata/osmlparser/structure_inheritance.osml b/testdata/osmlparser/structure_inheritance.osml index 6b88f2f..008778a 100644 --- a/testdata/osmlparser/structure_inheritance.osml +++ b/testdata/osmlparser/structure_inheritance.osml @@ -1,4 +1,4 @@ -\domain#test +\ontology#test \struct#a \primitive[type=string] \struct#b[isa=a] diff --git a/testdata/osxmlparser/book_domain.osxml b/testdata/osxmlparser/book_ontology.osxml index 5a8cc67..0b393e6 100644 --- a/testdata/osxmlparser/book_domain.osxml +++ b/testdata/osxmlparser/book_ontology.osxml @@ -1,10 +1,10 @@ <?xml version="1.0" standalone="yes"?> -<!-- The domain node is the root node of a single domain definition --> -<domain name="book"> +<!-- The ontology node is the root node of a single ontology definition --> +<ontology name="book"> <!-- We start by declaring the structured classes. This implicitly defines a context free grammar, which specifies the language of documents that - may be constructed using this domain. Note that this grammar may be - influenced by other domains depending on this one. --> + may be constructed using this ontology. Note that this grammar may be + influenced by other ontologies depending on this one. --> <!-- Note that we specify neither attributes, nor parent, nor transparency, meaning that we refer to the default values. Also note that we need to specify explicitly, which classes @@ -95,4 +95,4 @@ <!-- we might want to specify std.string here --> <primitive type="string"/> </struct> -</domain> +</ontology> diff --git a/testdata/osxmlparser/comments_domain.osxml b/testdata/osxmlparser/comments_ontology.osxml index dc7742e..f2423be 100644 --- a/testdata/osxmlparser/comments_domain.osxml +++ b/testdata/osxmlparser/comments_ontology.osxml @@ -1,6 +1,6 @@ <?xml version="1.0" standalone="yes"?> -<domain name="comments"> - <import rel="domain" src="./book_domain.osxml"/> +<ontology name="comments"> + <import rel="ontology" src="./book_ontology.osxml"/> <!-- an annotation comment --> <annotation name="comment"> @@ -37,4 +37,4 @@ <childRef ref="book.paragraph"/> </field> </struct> -</domain> +</ontology> diff --git a/testdata/osxmlparser/complex_book.osxml b/testdata/osxmlparser/complex_book.osxml index 8fff93d..222b146 100644 --- a/testdata/osxmlparser/complex_book.osxml +++ b/testdata/osxmlparser/complex_book.osxml @@ -1,12 +1,12 @@ <?xml version="1.0"?> <document> - <import rel="domain" src="book"/> - <import rel="domain" src="headings"/> - <import rel="domain" src="meta"/> - <import rel="domain" src="bibliography"/> - <!--<import rel="domain" src="emphasis.oxm"/> - <import rel="domain" src="comments.oxm"/> + <import rel="ontology" src="book"/> + <import rel="ontology" src="headings"/> + <import rel="ontology" src="meta"/> + <import rel="ontology" src="bibliography"/> + <!--<import rel="ontology" src="emphasis.oxm"/> + <import rel="ontology" src="comments.oxm"/> <alias tag="paragraph" aka="p"/> <alias tag="emphasized" aka="em"/>--> diff --git a/testdata/osxmlparser/headings_domain.osxml b/testdata/osxmlparser/headings_ontology.osxml index 07d3db2..413eaa9 100644 --- a/testdata/osxmlparser/headings_domain.osxml +++ b/testdata/osxmlparser/headings_ontology.osxml @@ -1,7 +1,7 @@ <?xml version="1.0" standalone="yes"?> -<domain name="headings"> +<ontology name="headings"> - <import rel="domain" src="./book_domain.osxml"/> + <import rel="ontology" src="./book_ontology.osxml"/> <struct name="heading" cardinality="1" transparent="true"> <!-- The parent mechanism is a curious thing. Remind yourself @@ -26,8 +26,8 @@ <!-- 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. + possible extensions of paragraph by other ontologies. So we need to reference the default field of paragraph. --> <fieldRef ref="book.paragraph.$default"/> </struct> -</domain> +</ontology> diff --git a/testdata/osxmlparser/simple_book.osxml b/testdata/osxmlparser/simple_book.osxml index 310a413..ec1e45a 100644 --- a/testdata/osxmlparser/simple_book.osxml +++ b/testdata/osxmlparser/simple_book.osxml @@ -1,9 +1,9 @@ <?xml version="1.0"?> <document> - <import rel="domain" src="book_domain.osxml"/> + <import rel="ontology" src="book_ontology.osxml"/> <book> This might be some introductory text or a dedication. - <!-- Note that a better version of the book domain might specify + <!-- Note that a better version of the book ontology might specify headings here. --> <chapter name="myFirstChapter"> Here we might have an introduction to the chapter. |