From f98526eb42909efbc8b2b4f85dfbfd588e25f515 Mon Sep 17 00:00:00 2001 From: Benjamin Paassen Date: Thu, 9 Apr 2015 15:05:50 +0200 Subject: First steps towards typesystem serialization. struct types can be successfully serialized. --- .../ontology_serialization/typesystem.in.osml | 10 ++++++++++ .../ontology_serialization/typesystem.out.osxml | 21 +++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 testdata/integration/ontology_serialization/typesystem.in.osml create mode 100644 testdata/integration/ontology_serialization/typesystem.out.osxml (limited to 'testdata') 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 @@ + + + + + + + + + + + + + + + + + [ + "i"= 4, + "s"= "bla" +] + -- cgit v1.2.3