# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#!/bin/bash

B=`basename $0 .sh`
cd `dirname $0`
source ./rungraphd

rm -rf $D
rungraphd -d${D} -bty <<-'EOF'
restore ("2" 0 34
(0d3bb1dc0000040001fc1b2400000000 null "metaweb:global-type-namespace" null null 0 true true 2005-10-13T23:23:35.0000 0 0 0)
(0d3bb1dc0004040001fc1b2400000001 null "metaweb:type-concept" null null 0 true true 2005-10-13T23:23:35.0001 0 0 0)
(0d3bb1dc0008040001fc1b2400000002 null "metaweb:type-relationship" null null 0 true true 2005-10-13T23:23:35.0002 0 0 0)
(0d3bb1dc000c040001fc1b2400000003 null "metaweb:relationship-is-instance-of" null null 0 true true 2005-10-13T23:23:35.0003 0 0 0)
(0d3bb1dc0010040001fc1b2400000004 null "metaweb:type-attribute" null null 0 true true 2005-10-13T23:23:35.0004 0 0 0)
(0d3bb1dc0014040001fc1b2400000005 null "metaweb:attribute-has_name" null null 0 true true 2005-10-13T23:23:35.0005 0 0 0)
(0d3bb1dc0018040001fc1b2400000006 0d3bb1dc000c040001fc1b2400000003 null null null 0 true true 2005-10-13T23:23:35.0006 0d3bb1dc0004040001fc1b2400000001 0d3bb1dc0004040001fc1b2400000001 0)
(0d3bb1dc001c040001fc1b2400000007 0d3bb1dc0014040001fc1b2400000005 null string "concept" 0 true true 2005-10-13T23:23:35.0007 0d3bb1dc0004040001fc1b2400000001 0d3bb1dc0000040001fc1b2400000000 0)
(0d3bb1dc0020040001fc1b2400000008 0d3bb1dc000c040001fc1b2400000003 null null null 0 true true 2005-10-13T23:23:35.0008 0d3bb1dc0008040001fc1b2400000002 0d3bb1dc0004040001fc1b2400000001 0)
(0d3bb1dc0024040001fc1b2400000009 0d3bb1dc0014040001fc1b2400000005 null string "relationship" 0 true true 2005-10-13T23:23:35.0009 0d3bb1dc0008040001fc1b2400000002 0d3bb1dc0000040001fc1b2400000000 0)
(0d3bb1dc0028040001fc1b240000000a 0d3bb1dc000c040001fc1b2400000003 null null null 0 true true 2005-10-13T23:23:35.0010 0d3bb1dc000c040001fc1b2400000003 0d3bb1dc0008040001fc1b2400000002 0)
(0d3bb1dc002c040001fc1b240000000b 0d3bb1dc0014040001fc1b2400000005 null string "is-instance-of" 0 true true 2005-10-13T23:23:35.0011 0d3bb1dc000c040001fc1b2400000003 0d3bb1dc0000040001fc1b2400000000 0)
(0d3bb1dc0030040001fc1b240000000c 0d3bb1dc000c040001fc1b2400000003 null null null 0 true true 2005-10-13T23:23:35.0012 0d3bb1dc0010040001fc1b2400000004 0d3bb1dc0004040001fc1b2400000001 0)
(0d3bb1dc0034040001fc1b240000000d 0d3bb1dc0014040001fc1b2400000005 null string "attribute" 0 true true 2005-10-13T23:23:35.0013 0d3bb1dc0010040001fc1b2400000004 0d3bb1dc0000040001fc1b2400000000 0)
(0d3bb1dc0038040001fc1b240000000e 0d3bb1dc000c040001fc1b2400000003 null null null 0 true true 2005-10-13T23:23:35.0014 0d3bb1dc0014040001fc1b2400000005 0d3bb1dc0010040001fc1b2400000004 0)
(0d3bb1dc003c040001fc1b240000000f 0d3bb1dc0014040001fc1b2400000005 null string "has_name" 0 true true 2005-10-13T23:23:35.0015 0d3bb1dc0014040001fc1b2400000005 0d3bb1dc0000040001fc1b2400000000 0)
(0d3bb1dc0040040001fc1b2400000010 null "metaweb:type-language" null null 0 true true 2005-10-13T23:23:35.0016 0 0 0)
(0d3bb1dc0044040001fc1b2400000011 0d3bb1dc000c040001fc1b2400000003 null null null 0 true true 2005-10-13T23:23:35.0017 0d3bb1dc0040040001fc1b2400000010 0d3bb1dc0004040001fc1b2400000001 0)
(0d3bb1dc0048040001fc1b2400000012 0d3bb1dc0014040001fc1b2400000005 null string "language" 0 true true 2005-10-13T23:23:35.0018 0d3bb1dc0040040001fc1b2400000010 0d3bb1dc0000040001fc1b2400000000 0)
(0d3bb1dc004c040001fc1b2400000013 null "metaweb:attribute-has-rfc-3066-code" null null 0 true true 2005-10-13T23:23:35.0019 0 0 0)
(0d3bb1dc0050040001fc1b2400000014 0d3bb1dc000c040001fc1b2400000003 null null null 0 true true 2005-10-13T23:23:35.0020 0d3bb1dc004c040001fc1b2400000013 0d3bb1dc0010040001fc1b2400000004 0)
(0d3bb1dc0054040001fc1b2400000015 0d3bb1dc0014040001fc1b2400000005 null string "has-rfc-3066-code" 0 true true 2005-10-13T23:23:35.0021 0d3bb1dc004c040001fc1b2400000013 0d3bb1dc0000040001fc1b2400000000 0)
(0d3bb1dc0058040001fc1b2400000016 null null null null 0 true true 2005-10-13T23:23:35.0022 0 0 0)
(0d3bb1dc005c040001fc1b2400000017 null "metaweb:type-language" null null 0 true true 2005-10-13T23:23:35.0023 0 0 0)
(0d3bb1dc0060040001fc1b2400000018 0d3bb1dc000c040001fc1b2400000003 null null null 0 true true 2005-10-13T23:23:35.0024 0d3bb1dc005c040001fc1b2400000017 0d3bb1dc0004040001fc1b2400000001 0)
(0d3bb1dc0064040001fc1b2400000019 0d3bb1dc0014040001fc1b2400000005 null string "language" 0 true true 2005-10-13T23:23:35.0025 0d3bb1dc005c040001fc1b2400000017 0d3bb1dc0000040001fc1b2400000000 0)
(0d3bb1dc0068040001fc1b240000001a 0d3bb1dc000c040001fc1b2400000003 null null null 0 true true 2005-10-13T23:23:35.0026 0d3bb1dc0058040001fc1b2400000016 0d3bb1dc005c040001fc1b2400000017 0)
(0d3bb1dc006c040001fc1b240000001b null "metaweb:type-label" null null 0 true true 2005-10-13T23:23:35.0027 0 0 0)
(0d3bb1dc0070040001fc1b240000001c 0d3bb1dc000c040001fc1b2400000003 null null null 0 true true 2005-10-13T23:23:35.0028 0d3bb1dc006c040001fc1b240000001b 0d3bb1dc0004040001fc1b2400000001 0)
(0d3bb1dc0074040001fc1b240000001d 0d3bb1dc0014040001fc1b2400000005 null string "label" 0 true true 2005-10-13T23:23:35.0029 0d3bb1dc006c040001fc1b240000001b 0d3bb1dc0000040001fc1b2400000000 0)
(0d3bb1dc0078040001fc1b240000001e null "metaweb:relationship-is-display-name" null null 0 true true 2005-10-13T23:23:35.0030 0 0 0)
(0d3bb1dc007c040001fc1b240000001f 0d3bb1dc000c040001fc1b2400000003 null null null 0 true true 2005-10-13T23:23:35.0031 0d3bb1dc0078040001fc1b240000001e 0d3bb1dc0008040001fc1b2400000002 0)
(0d3bb1dc0080040001fc1b2400000020 0d3bb1dc0080040001fc1b2400000020 null string "is-display-name" 0 true true 2005-10-13T23:23:35.0032 0d3bb1dc0078040001fc1b240000001e 0d3bb1dc0000040001fc1b2400000000 0)
(0d3bb1dc0084040001fc1b2400000021 0d3bb1dc004c040001fc1b2400000013 null string "en" 0 true true 2005-10-13T23:23:35.0033 0d3bb1dc0058040001fc1b2400000016 0 0))
	read (name="metaweb:relationship-is-instance-of")
	read (any typeguid=0100007f400006c98000000000000003 result=((guid name)))
	read (-> typeguid=0100007f400006c98000000000000003 result=((guid))
		(guid=0100007f400006c98000000000000001))
	read (node result=((guid))
		guid=0100007f400006c98000000000000001)
	read (node result=((guid))
	       (-> typeguid=0100007f400006c98000000000000003
		(guid=0100007f400006c98000000000000001)))
	read (node result=((guid))
	       (-> typeguid=0100007f400006c98000000000000003
		( 
	          (-> typeguid=0100007f400006c98000000000000003
		    (guid=0100007f400006c98000000000000001)))))
	EOF
rm -rf $D
