diff options
author | Benjamin Paassen <bpaassen@techfak.uni-bielefeld.de> | 2015-04-09 15:05:50 +0200 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2016-04-25 22:19:34 +0200 |
commit | f98526eb42909efbc8b2b4f85dfbfd588e25f515 (patch) | |
tree | bea818972f52b58ee49569da40affd7223e8d1ac /testdata/integration | |
parent | bc25012753704943808bb8f71d75f27f68c13da9 (diff) |
First steps towards typesystem serialization. struct types can be successfully serialized.
Diffstat (limited to 'testdata/integration')
-rw-r--r-- | testdata/integration/ontology_serialization/typesystem.in.osml | 10 | ||||
-rw-r--r-- | testdata/integration/ontology_serialization/typesystem.out.osxml | 21 |
2 files changed, 31 insertions, 0 deletions
diff --git a/testdata/integration/ontology_serialization/typesystem.in.osml b/testdata/integration/ontology_serialization/typesystem.in.osml new file mode 100644 index 0000000..ec61dd3 --- /dev/null +++ b/testdata/integration/ontology_serialization/typesystem.in.osml @@ -0,0 +1,10 @@ +\document + \typesystem#bla + \struct#myStruct + \field#i[type=int,default=1] + \field#s[type=string,default=""] + \ontology#test + \struct#a[root=true] + \primitive[type=myStruct] + +\a [4,"bla"] diff --git a/testdata/integration/ontology_serialization/typesystem.out.osxml b/testdata/integration/ontology_serialization/typesystem.out.osxml new file mode 100644 index 0000000..a8c02ae --- /dev/null +++ b/testdata/integration/ontology_serialization/typesystem.out.osxml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> +<document> + <ontology name="test"> + <struct cardinality="{*}" name="a" root="true" transparent="false"> + <syntax/> + <primitive optional="false" subtree="false" type="bla.myStruct"> + <syntax/> + </primitive> + </struct> + </ontology> + <typesystem name="bla"> + <struct name="myStruct"> + <field default="1" name="i" optional="true" type="int"/> + <field default="" name="s" optional="true" type="string"/> + </struct> + </typesystem> + <test:a>[ + "i"= 4, + "s"= "bla" +]</test:a> +</document> |