summaryrefslogtreecommitdiff
path: root/testdata/integration/user_defined_syntax/wikilike.osml
diff options
context:
space:
mode:
authorBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-04-08 19:34:18 +0200
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2016-04-25 22:19:34 +0200
commitf2f20d5cae37064a329ee451efb6f2f26e2a0f0b (patch)
treeeb8c9814c1c79f7f892e2ac18e3dda2cacf49014 /testdata/integration/user_defined_syntax/wikilike.osml
parent06efbbafaac6da7d8beba7a37234b3a848b8a8fa (diff)
started to implement capabilities for ontology serialization.
Diffstat (limited to 'testdata/integration/user_defined_syntax/wikilike.osml')
-rw-r--r--testdata/integration/user_defined_syntax/wikilike.osml37
1 files changed, 37 insertions, 0 deletions
diff --git a/testdata/integration/user_defined_syntax/wikilike.osml b/testdata/integration/user_defined_syntax/wikilike.osml
new file mode 100644
index 0000000..694b8ee
--- /dev/null
+++ b/testdata/integration/user_defined_syntax/wikilike.osml
@@ -0,0 +1,37 @@
+\ontology#book{
+ \struct#book[root=true]
+ \field
+ \childRef[ref=section]
+ \childRef[ref=paragraph]
+ \struct#section
+ \primitive#title[type=string,subtree=true]
+ \syntax
+ \open{==}
+ \close{==}
+ \field
+ \childRef[ref=paragraph]
+ \struct#paragraph[transparent=true]
+ \syntax
+ \close{\paragraph}
+ \field
+ \childRef[ref=text]
+ \childRef[ref=code]
+ \childRef[ref=speech]
+ \childRef[ref=thought]
+ \struct#code
+ \syntax
+ \open{`}
+ \close{`}
+ \field
+ \childRef[ref=text]
+ \struct#speech
+ \syntax
+ \open{<<}
+ \close{>>}
+ \fieldRef[ref=paragraph.$default]
+ \struct#text[transparent=true]
+ \primitive[type=string]
+ \struct#thought
+ \syntax
+ \short{--}
+}