Mercurial > hg > graphML2RDF
changeset 0:8190d724dc01
first release
author | dwinter |
---|---|
date | Mon, 23 Jul 2012 09:48:23 +0200 |
parents | |
children | d45d5c75afaa |
files | .project .pydevproject .settings/org.eclipse.core.resources.prefs examples/5.5_Numerical_roots.graphml examples/5.7.3_cubics_other.graphml examples/Manuscripts_3.graphml graphML2RDF.py |
diffstat | 7 files changed, 1864 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.project Mon Jul 23 09:48:23 2012 +0200 @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>graphML2RDF</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.python.pydev.PyDevBuilder</name> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.python.pydev.pythonNature</nature> + </natures> +</projectDescription>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.pydevproject Mon Jul 23 09:48:23 2012 +0200 @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<?eclipse-pydev version="1.0"?> + +<pydev_project> +<pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH"> +<path>/graphML2RDF</path> +</pydev_pathproperty> +<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python 2.7</pydev_property> +<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property> +</pydev_project>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.settings/org.eclipse.core.resources.prefs Mon Jul 23 09:48:23 2012 +0200 @@ -0,0 +1,3 @@ +eclipse.preferences.version=1 +encoding//dottoxml/src/dot.py=latin1 +encoding//dottoxml/src/dottoxml.py=latin1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/5.5_Numerical_roots.graphml Mon Jul 23 09:48:23 2012 +0200 @@ -0,0 +1,238 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:y="http://www.yworks.com/xml/graphml" xmlns:yed="http://www.yworks.com/xml/yed/3" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://www.yworks.com/xml/schema/graphml/1.1/ygraphml.xsd"> + <!--Created by yFiles for Java 2.9--> + <key for="graphml" id="d0" yfiles.type="resources"/> + <key for="port" id="d1" yfiles.type="portgraphics"/> + <key for="port" id="d2" yfiles.type="portgeometry"/> + <key for="port" id="d3" yfiles.type="portuserdata"/> + <key attr.name="url" attr.type="string" for="node" id="d4"/> + <key attr.name="description" attr.type="string" for="node" id="d5"/> + <key for="node" id="d6" yfiles.type="nodegraphics"/> + <key attr.name="Description" attr.type="string" for="graph" id="d7"/> + <key attr.name="url" attr.type="string" for="edge" id="d8"/> + <key attr.name="description" attr.type="string" for="edge" id="d9"/> + <key for="edge" id="d10" yfiles.type="edgegraphics"/> + <graph edgedefault="directed" id="G"> + <data key="d7"/> + <node id="n0"> + <data key="d4"><![CDATA[./5_ALGEBRA.graphml]]></data> + <data key="d6"> + <y:GenericNode configuration="com.yworks.bpmn.Activity"> + <y:Geometry height="48.0" width="361.0" x="25.0" y="-447.0"/> + <y:Fill color="#FFFFFF" transparent="false"/> + <y:BorderStyle color="#FFFFFF" type="line" width="1.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="18" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="custom" textColor="#000000" visible="true" width="4.0" x="178.5" y="22.0"> + <y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="18" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="25.19921875" modelName="custom" textColor="#000000" visible="true" width="258.1884765625" x="51.40576171875" y="11.400390625">Numerical roots of equations<y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:StyleProperties> + <y:Property class="com.yworks.yfiles.bpmn.view.BPMNTypeEnum" name="com.yworks.bpmn.type" value="ACTIVITY_TYPE"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.line.color" value="#000000"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.fill" value="#ffffff"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.fill2" value="#d4d4d4"/> + <y:Property name="com.yworks.bpmn.marker2"/> + <y:Property name="com.yworks.bpmn.marker1"/> + <y:Property name="com.yworks.bpmn.marker4"/> + <y:Property name="com.yworks.bpmn.marker3"/> + </y:StyleProperties> + </y:GenericNode> + </data> + </node> + <node id="n1"> + <data key="d4"><![CDATA[./5.5.5_avulsed.graphml]]></data> + <data key="d6"> + <y:GenericNode configuration="com.yworks.bpmn.Activity.withShadow"> + <y:Geometry height="91.0" width="195.0" x="352.0" y="-55.0"/> + <y:Fill color="#FFFFFF" transparent="false"/> + <y:BorderStyle color="#000000" type="line" width="1.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="custom" textColor="#000000" visible="true" width="4.0" x="95.5" y="43.5"> + <y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="46.3984375" modelName="custom" textColor="#000000" visible="true" width="112.45703125" x="41.271484375" y="22.30078125">Numerical roots of +avulsed equations +(Section c)<y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:StyleProperties> + <y:Property class="com.yworks.yfiles.bpmn.view.BPMNTypeEnum" name="com.yworks.bpmn.type" value="ACTIVITY_TYPE"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.line.color" value="#000000"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.fill" value="#ffffff"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.fill2" value="#d4d4d4"/> + <y:Property name="com.yworks.bpmn.marker2"/> + <y:Property name="com.yworks.bpmn.marker1"/> + <y:Property name="com.yworks.bpmn.marker4"/> + <y:Property name="com.yworks.bpmn.marker3"/> + </y:StyleProperties> + </y:GenericNode> + </data> + </node> + <node id="n2"> + <data key="d4"><![CDATA[./5.5.4_negative.graphml]]></data> + <data key="d6"> + <y:GenericNode configuration="com.yworks.bpmn.Activity.withShadow"> + <y:Geometry height="91.0" width="195.0" x="108.0" y="-55.0"/> + <y:Fill color="#FFFFFF" transparent="false"/> + <y:BorderStyle color="#000000" type="line" width="1.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="custom" textColor="#000000" visible="true" width="4.0" x="95.5" y="43.5"> + <y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="46.3984375" modelName="custom" textColor="#000000" visible="true" width="174.642578125" x="10.1787109375" y="22.30078125">Numerical roots of +negatively affected equations +(Section b)<y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:StyleProperties> + <y:Property class="com.yworks.yfiles.bpmn.view.BPMNTypeEnum" name="com.yworks.bpmn.type" value="ACTIVITY_TYPE"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.line.color" value="#000000"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.fill" value="#ffffff"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.fill2" value="#d4d4d4"/> + <y:Property name="com.yworks.bpmn.marker2"/> + <y:Property name="com.yworks.bpmn.marker1"/> + <y:Property name="com.yworks.bpmn.marker4"/> + <y:Property name="com.yworks.bpmn.marker3"/> + </y:StyleProperties> + </y:GenericNode> + </data> + </node> + <node id="n3"> + <data key="d4"><![CDATA[./5.5.3_positive.graphml]]></data> + <data key="d6"> + <y:GenericNode configuration="com.yworks.bpmn.Activity.withShadow"> + <y:Geometry height="91.0" width="195.0" x="-136.0" y="-55.0"/> + <y:Fill color="#FFFFFF" transparent="false"/> + <y:BorderStyle color="#000000" type="line" width="1.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="custom" textColor="#000000" visible="true" width="4.0" x="95.5" y="43.5"> + <y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="32.265625" modelName="custom" textColor="#000000" visible="true" width="170.91015625" x="12.044921875" y="29.3671875">Numerical roots of +positively affected equations<y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:StyleProperties> + <y:Property class="com.yworks.yfiles.bpmn.view.BPMNTypeEnum" name="com.yworks.bpmn.type" value="ACTIVITY_TYPE"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.line.color" value="#000000"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.fill" value="#ffffff"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.fill2" value="#d4d4d4"/> + <y:Property name="com.yworks.bpmn.marker2"/> + <y:Property name="com.yworks.bpmn.marker1"/> + <y:Property name="com.yworks.bpmn.marker4"/> + <y:Property name="com.yworks.bpmn.marker3"/> + </y:StyleProperties> + </y:GenericNode> + </data> + </node> + <node id="n4"> + <data key="d4"><![CDATA[./552_notes.graphml]]></data> + <data key="d6"> + <y:GenericNode configuration="com.yworks.bpmn.Activity.withShadow"> + <y:Geometry height="91.0" width="195.0" x="108.0" y="-204.0"/> + <y:Fill color="#FFFFFF" transparent="false"/> + <y:BorderStyle color="#000000" type="line" width="1.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="custom" textColor="#000000" visible="true" width="4.0" x="95.5" y="43.5"> + <y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="32.265625" modelName="custom" textColor="#000000" visible="true" width="101.21875" x="46.890625" y="29.3671875">Notes on finding +roots<y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:StyleProperties> + <y:Property class="com.yworks.yfiles.bpmn.view.BPMNTypeEnum" name="com.yworks.bpmn.type" value="ACTIVITY_TYPE"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.line.color" value="#000000"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.fill" value="#ffffff"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.fill2" value="#d4d4d4"/> + <y:Property name="com.yworks.bpmn.marker2"/> + <y:Property name="com.yworks.bpmn.marker1"/> + <y:Property name="com.yworks.bpmn.marker4"/> + <y:Property name="com.yworks.bpmn.marker3"/> + </y:StyleProperties> + </y:GenericNode> + </data> + </node> + <node id="n5"> + <data key="d4"><![CDATA[./5.5.1_lists.graphml]]></data> + <data key="d6"> + <y:GenericNode configuration="com.yworks.bpmn.Activity.withShadow"> + <y:Geometry height="91.0" width="195.0" x="108.0" y="-353.0"/> + <y:Fill color="#FFFFFF" transparent="false"/> + <y:BorderStyle color="#000000" type="line" width="1.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="custom" textColor="#000000" visible="true" width="4.0" x="95.5" y="43.5"> + <y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="32.265625" modelName="custom" textColor="#000000" visible="true" width="101.0546875" x="46.97265625" y="29.3671875">List of equations +and their roots<y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:StyleProperties> + <y:Property class="com.yworks.yfiles.bpmn.view.BPMNTypeEnum" name="com.yworks.bpmn.type" value="ACTIVITY_TYPE"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.line.color" value="#000000"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.fill" value="#ffffff"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.fill2" value="#d4d4d4"/> + <y:Property name="com.yworks.bpmn.marker2"/> + <y:Property name="com.yworks.bpmn.marker1"/> + <y:Property name="com.yworks.bpmn.marker4"/> + <y:Property name="com.yworks.bpmn.marker3"/> + </y:StyleProperties> + </y:GenericNode> + </data> + </node> + </graph> + <data key="d0"> + <y:Resources/> + </data> +</graphml>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/5.7.3_cubics_other.graphml Mon Jul 23 09:48:23 2012 +0200 @@ -0,0 +1,510 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:y="http://www.yworks.com/xml/graphml" xmlns:yed="http://www.yworks.com/xml/yed/3" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://www.yworks.com/xml/schema/graphml/1.1/ygraphml.xsd"> + <!--Created by yFiles for Java 2.9--> + <key for="graphml" id="d0" yfiles.type="resources"/> + <key for="port" id="d1" yfiles.type="portgraphics"/> + <key for="port" id="d2" yfiles.type="portgeometry"/> + <key for="port" id="d3" yfiles.type="portuserdata"/> + <key attr.name="url" attr.type="string" for="node" id="d4"/> + <key attr.name="description" attr.type="string" for="node" id="d5"/> + <key for="node" id="d6" yfiles.type="nodegraphics"/> + <key attr.name="Description" attr.type="string" for="graph" id="d7"/> + <key attr.name="url" attr.type="string" for="edge" id="d8"/> + <key attr.name="description" attr.type="string" for="edge" id="d9"/> + <key for="edge" id="d10" yfiles.type="edgegraphics"/> + <graph edgedefault="directed" id="G"> + <data key="d7"/> + <node id="n0"> + <data key="d4"><![CDATA[./5.7_Cubics.graphml]]></data> + <data key="d6"> + <y:GenericNode configuration="com.yworks.bpmn.Activity"> + <y:Geometry height="42.0" width="334.0" x="-10.0" y="-415.0"/> + <y:Fill color="#FFFFFF" transparent="false"/> + <y:BorderStyle color="#FFFFFF" type="line" width="1.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="18" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="custom" textColor="#000000" visible="true" width="4.0" x="165.0" y="19.0"> + <y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="18" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="25.19921875" modelName="custom" textColor="#000000" visible="true" width="323.4033203125" x="5.29833984375" y="8.400390625">Some other work on cubic equations<y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:StyleProperties> + <y:Property class="com.yworks.yfiles.bpmn.view.BPMNTypeEnum" name="com.yworks.bpmn.type" value="ACTIVITY_TYPE"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.line.color" value="#000000"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.fill" value="#ffffff"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.fill2" value="#d4d4d4"/> + <y:Property name="com.yworks.bpmn.marker2"/> + <y:Property name="com.yworks.bpmn.marker1"/> + <y:Property name="com.yworks.bpmn.marker4"/> + <y:Property name="com.yworks.bpmn.marker3"/> + </y:StyleProperties> + </y:GenericNode> + </data> + </node> + <node id="n1"> + <data key="d4"><![CDATA[http://echo.mpiwg-berlin.mpg.de/ECHOdocuViewfull?url=/mpiwg/online/permanent/library/VWXURW4V/pageimg&start=461&viewMode=images&pn=461&mode=imagepath]]></data> + <data key="d5"><![CDATA[Add MS 678]]></data> + <data key="d6"> + <y:ShapeNode> + <y:Geometry height="89.0" width="63.0" x="-77.0" y="-322.0"/> + <y:Fill color="#FFFFFF" transparent="false"/> + <y:BorderStyle color="#000000" type="line" width="1.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="custom" textColor="#000000" visible="true" width="4.0" x="29.5" y="42.5"> + <y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="46.3984375" modelName="custom" textColor="#000000" visible="true" width="47.98046875" x="7.509765625" y="21.30078125">Add MS +6783 +f. 231<y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:Shape type="rectangle"/> + </y:ShapeNode> + </data> + </node> + <node id="n2"> + <data key="d4"><![CDATA[http://echo.mpiwg-berlin.mpg.de/ECHOdocuViewfull?url=/mpiwg/online/permanent/library/VWXURW4V/pageimg&start=141&viewMode=images&pn=143&mode=imagepath]]></data> + <data key="d5"><![CDATA[Add MS 678]]></data> + <data key="d6"> + <y:ShapeNode> + <y:Geometry height="89.0" width="63.0" x="-77.0" y="-167.0"/> + <y:Fill color="#FFFFFF" transparent="false"/> + <y:BorderStyle color="#000000" type="line" width="1.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="custom" textColor="#000000" visible="true" width="4.0" x="29.5" y="42.5"> + <y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="46.3984375" modelName="custom" textColor="#000000" visible="true" width="47.98046875" x="7.509765625" y="21.30078125">Add MS +6783 +f. 72<y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:Shape type="rectangle"/> + </y:ShapeNode> + </data> + </node> + <node id="n3"> + <data key="d4"><![CDATA[http://echo.mpiwg-berlin.mpg.de/ECHOdocuViewfull?url=/mpiwg/online/permanent/library/VWXURW4V/pageimg&start=451&viewMode=images&pn=455&mode=imagepath]]></data> + <data key="d5"><![CDATA[Add MS 678]]></data> + <data key="d6"> + <y:ShapeNode> + <y:Geometry height="89.0" width="63.0" x="-77.0" y="0.0"/> + <y:Fill color="#FFFFFF" transparent="false"/> + <y:BorderStyle color="#000000" type="line" width="1.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="custom" textColor="#000000" visible="true" width="4.0" x="29.5" y="42.5"> + <y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="46.3984375" modelName="custom" textColor="#000000" visible="true" width="47.98046875" x="7.509765625" y="21.30078125">Add MS +6783 +f. 228<y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:Shape type="rectangle"/> + </y:ShapeNode> + </data> + </node> + <node id="n4"> + <data key="d4"><![CDATA[http://echo.mpiwg-berlin.mpg.de/ECHOdocuViewfull?url=/mpiwg/online/permanent/library/VWXURW4V/pageimg&start=451&viewMode=images&pn=451&mode=imagepath]]></data> + <data key="d5"><![CDATA[Add MS 678]]></data> + <data key="d6"> + <y:ShapeNode> + <y:Geometry height="89.0" width="63.0" x="18.333333333333343" y="0.0"/> + <y:Fill color="#FFFFFF" transparent="false"/> + <y:BorderStyle color="#000000" type="line" width="1.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="custom" textColor="#000000" visible="true" width="4.0" x="29.5" y="42.5"> + <y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="46.3984375" modelName="custom" textColor="#000000" visible="true" width="47.98046875" x="7.509765625" y="21.30078125">Add MS +6783 +f. 226<y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:Shape type="rectangle"/> + </y:ShapeNode> + </data> + </node> + <node id="n5"> + <data key="d4"><![CDATA[http://echo.mpiwg-berlin.mpg.de/ECHOdocuViewfull?url=/mpiwg/online/permanent/library/VWXURW4V/pageimg&start=451&viewMode=images&pn=453&mode=imagepath]]></data> + <data key="d5"><![CDATA[Add MS 678]]></data> + <data key="d6"> + <y:ShapeNode> + <y:Geometry height="89.0" width="63.0" x="113.66666666666669" y="0.0"/> + <y:Fill color="#FFFFFF" transparent="false"/> + <y:BorderStyle color="#000000" type="line" width="1.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="custom" textColor="#000000" visible="true" width="4.0" x="29.5" y="42.5"> + <y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="46.3984375" modelName="custom" textColor="#000000" visible="true" width="47.98046875" x="7.509765625" y="21.30078125">Add MS +6783 +f. 227<y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:Shape type="rectangle"/> + </y:ShapeNode> + </data> + </node> + <node id="n6"> + <data key="d4"><![CDATA[http://echo.mpiwg-berlin.mpg.de/ECHOdocuViewfull?url=/mpiwg/online/permanent/library/VWXURW4V/pageimg&start=141&viewMode=images&pn=145&mode=imagepath]]></data> + <data key="d5"><![CDATA[Add MS 678]]></data> + <data key="d6"> + <y:ShapeNode> + <y:Geometry height="89.0" width="63.0" x="16.5" y="-167.0"/> + <y:Fill color="#FFFFFF" transparent="false"/> + <y:BorderStyle color="#000000" type="line" width="1.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="custom" textColor="#000000" visible="true" width="4.0" x="29.5" y="42.5"> + <y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="46.3984375" modelName="custom" textColor="#000000" visible="true" width="47.98046875" x="7.509765625" y="21.30078125">Add MS +6783 +f. 73<y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:Shape type="rectangle"/> + </y:ShapeNode> + </data> + </node> + <node id="n7"> + <data key="d4"><![CDATA[http://echo.mpiwg-berlin.mpg.de/ECHOdocuViewfull?url=/mpiwg/online/permanent/library/VWXURW4V/pageimg&start=141&viewMode=images&pn=147&mode=imagepath]]></data> + <data key="d5"><![CDATA[Add MS 678]]></data> + <data key="d6"> + <y:ShapeNode> + <y:Geometry height="89.0" width="63.0" x="110.0" y="-167.0"/> + <y:Fill color="#FFFFFF" transparent="false"/> + <y:BorderStyle color="#000000" type="line" width="1.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="custom" textColor="#000000" visible="true" width="4.0" x="29.5" y="42.5"> + <y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="46.3984375" modelName="custom" textColor="#000000" visible="true" width="47.98046875" x="7.509765625" y="21.30078125">Add MS +6783 +f. 74<y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:Shape type="rectangle"/> + </y:ShapeNode> + </data> + </node> + <node id="n8"> + <data key="d4"><![CDATA[http://echo.mpiwg-berlin.mpg.de/ECHOdocuViewfull?pn=150&ws=1&start=141&viewMode=images&mode=imagepath&url=/mpiwg/online/permanent/library/VWXURW4V/pageimg]]></data> + <data key="d5"><![CDATA[Add MS 678]]></data> + <data key="d6"> + <y:ShapeNode> + <y:Geometry height="89.0" width="63.0" x="297.0" y="-167.0"/> + <y:Fill color="#FFFFFF" transparent="false"/> + <y:BorderStyle color="#000000" type="line" width="1.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="custom" textColor="#000000" visible="true" width="4.0" x="29.5" y="42.5"> + <y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="46.3984375" modelName="custom" textColor="#000000" visible="true" width="47.98046875" x="7.509765625" y="21.30078125">Add MS +6783 +f. 75v<y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:Shape type="rectangle"/> + </y:ShapeNode> + </data> + </node> + <node id="n9"> + <data key="d4"><![CDATA[http://echo.mpiwg-berlin.mpg.de/ECHOdocuViewfull?url=/mpiwg/online/permanent/library/VWXURW4V/pageimg&start=141&viewMode=images&pn=149&mode=imagepath]]></data> + <data key="d5"><![CDATA[Add MS 678]]></data> + <data key="d6"> + <y:ShapeNode> + <y:Geometry height="89.0" width="63.0" x="203.5" y="-167.0"/> + <y:Fill color="#FFFFFF" transparent="false"/> + <y:BorderStyle color="#000000" type="line" width="1.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="custom" textColor="#000000" visible="true" width="4.0" x="29.5" y="42.5"> + <y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="46.3984375" modelName="custom" textColor="#000000" visible="true" width="47.98046875" x="7.509765625" y="21.30078125">Add MS +6783 +f. 75<y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:Shape type="rectangle"/> + </y:ShapeNode> + </data> + </node> + <node id="n10"> + <data key="d4"><![CDATA[http://echo.mpiwg-berlin.mpg.de/ECHOdocuViewfull?url=/mpiwg/online/permanent/library/VWXURW4V/pageimg&start=451&viewMode=images&pn=452&mode=imagepath]]></data> + <data key="d5"><![CDATA[Add MS 678]]></data> + <data key="d6"> + <y:ShapeNode> + <y:Geometry height="89.0" width="63.0" x="209.00000000000003" y="0.0"/> + <y:Fill color="#FFFFFF" transparent="false"/> + <y:BorderStyle color="#000000" type="line" width="1.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="custom" textColor="#000000" visible="true" width="4.0" x="29.5" y="42.5"> + <y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="46.3984375" modelName="custom" textColor="#000000" visible="true" width="47.98046875" x="7.509765625" y="21.30078125">Add MS +6783 +f. 226v<y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:Shape type="rectangle"/> + </y:ShapeNode> + </data> + </node> + <node id="n11"> + <data key="d6"> + <y:GenericNode configuration="com.yworks.bpmn.Activity"> + <y:Geometry height="17.956582633053273" width="21.0" x="-56.0" y="98.52170868347336"/> + <y:Fill color="#FFFFFF" transparent="false"/> + <y:BorderStyle color="#FFFFFF" type="line" width="1.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="18.1328125" modelName="custom" textColor="#000000" visible="true" width="11.587890625" x="4.7060546875" y="-0.08811493347336352">1<y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:StyleProperties> + <y:Property class="com.yworks.yfiles.bpmn.view.BPMNTypeEnum" name="com.yworks.bpmn.type" value="ACTIVITY_TYPE"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.line.color" value="#000000"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.fill" value="#ffffff"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.fill2" value="#d4d4d4"/> + <y:Property name="com.yworks.bpmn.marker2"/> + <y:Property name="com.yworks.bpmn.marker1"/> + <y:Property name="com.yworks.bpmn.marker4"/> + <y:Property name="com.yworks.bpmn.marker3"/> + </y:StyleProperties> + </y:GenericNode> + </data> + </node> + <node id="n12"> + <data key="d6"> + <y:GenericNode configuration="com.yworks.bpmn.Activity"> + <y:Geometry height="17.956582633053273" width="21.0" x="39.33333333333334" y="98.52170868347336"/> + <y:Fill color="#FFFFFF" transparent="false"/> + <y:BorderStyle color="#FFFFFF" type="line" width="1.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="18.1328125" modelName="custom" textColor="#000000" visible="true" width="11.587890625" x="4.7060546875" y="-0.08811493347336352">1<y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:StyleProperties> + <y:Property class="com.yworks.yfiles.bpmn.view.BPMNTypeEnum" name="com.yworks.bpmn.type" value="ACTIVITY_TYPE"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.line.color" value="#000000"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.fill" value="#ffffff"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.fill2" value="#d4d4d4"/> + <y:Property name="com.yworks.bpmn.marker2"/> + <y:Property name="com.yworks.bpmn.marker1"/> + <y:Property name="com.yworks.bpmn.marker4"/> + <y:Property name="com.yworks.bpmn.marker3"/> + </y:StyleProperties> + </y:GenericNode> + </data> + </node> + <node id="n13"> + <data key="d6"> + <y:GenericNode configuration="com.yworks.bpmn.Activity"> + <y:Geometry height="17.956582633053273" width="21.0" x="134.66666666666669" y="98.52170868347336"/> + <y:Fill color="#FFFFFF" transparent="false"/> + <y:BorderStyle color="#FFFFFF" type="line" width="1.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="18.1328125" modelName="custom" textColor="#000000" visible="true" width="22.97265625" x="-0.986328125" y="-0.08811493347336352">1.2<y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:StyleProperties> + <y:Property class="com.yworks.yfiles.bpmn.view.BPMNTypeEnum" name="com.yworks.bpmn.type" value="ACTIVITY_TYPE"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.line.color" value="#000000"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.fill" value="#ffffff"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.fill2" value="#d4d4d4"/> + <y:Property name="com.yworks.bpmn.marker2"/> + <y:Property name="com.yworks.bpmn.marker1"/> + <y:Property name="com.yworks.bpmn.marker4"/> + <y:Property name="com.yworks.bpmn.marker3"/> + </y:StyleProperties> + </y:GenericNode> + </data> + </node> + <node id="n14"> + <data key="d6"> + <y:GenericNode configuration="com.yworks.bpmn.Activity"> + <y:Geometry height="17.956582633053273" width="21.0" x="230.00000000000003" y="98.52170868347336"/> + <y:Fill color="#FFFFFF" transparent="false"/> + <y:BorderStyle color="#FFFFFF" type="line" width="1.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="18.1328125" modelName="custom" textColor="#000000" visible="true" width="34.357421875" x="-6.6787109375" y="-0.08811493347336352">1.2.3<y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:StyleProperties> + <y:Property class="com.yworks.yfiles.bpmn.view.BPMNTypeEnum" name="com.yworks.bpmn.type" value="ACTIVITY_TYPE"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.line.color" value="#000000"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.fill" value="#ffffff"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.fill2" value="#d4d4d4"/> + <y:Property name="com.yworks.bpmn.marker2"/> + <y:Property name="com.yworks.bpmn.marker1"/> + <y:Property name="com.yworks.bpmn.marker4"/> + <y:Property name="com.yworks.bpmn.marker3"/> + </y:StyleProperties> + </y:GenericNode> + </data> + </node> + <edge id="e0" source="n4" target="n5"> + <data key="d10"> + <y:GenericEdge configuration="com.yworks.bpmn.Connection"> + <y:Path sx="0.0" sy="0.0" tx="0.0" ty="0.0"/> + <y:LineStyle color="#000000" type="line" width="1.0"/> + <y:Arrows source="none" target="standard"/> + <y:EdgeLabel alignment="center" distance="2.0" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="custom" preferredPlacement="anywhere" ratio="0.5" textColor="#000000" visible="true" width="4.0" x="14.16666412353517" y="28.0"> + <y:LabelModel> + <y:SmartEdgeLabelModel autoRotationEnabled="false" defaultAngle="0.0" defaultDistance="10.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartEdgeLabelModelParameter angle="0.0" distance="30.0" distanceToCenter="true" position="right" ratio="0.5" segment="0"/> + </y:ModelParameter> + </y:EdgeLabel> + <y:StyleProperties> + <y:Property class="com.yworks.yfiles.bpmn.view.BPMNTypeEnum" name="com.yworks.bpmn.type" value="CONNECTION_TYPE_SEQUENCE_FLOW"/> + </y:StyleProperties> + </y:GenericEdge> + </data> + </edge> + <edge id="e1" source="n5" target="n10"> + <data key="d10"> + <y:GenericEdge configuration="com.yworks.bpmn.Connection"> + <y:Path sx="0.0" sy="0.0" tx="0.0" ty="0.0"/> + <y:LineStyle color="#000000" type="line" width="1.0"/> + <y:Arrows source="none" target="standard"/> + <y:EdgeLabel alignment="center" distance="2.0" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="custom" preferredPlacement="anywhere" ratio="0.5" textColor="#000000" visible="true" width="4.0" x="14.166661580403684" y="28.0"> + <y:LabelModel> + <y:SmartEdgeLabelModel autoRotationEnabled="false" defaultAngle="0.0" defaultDistance="10.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartEdgeLabelModelParameter angle="0.0" distance="30.0" distanceToCenter="true" position="right" ratio="0.5" segment="0"/> + </y:ModelParameter> + </y:EdgeLabel> + <y:StyleProperties> + <y:Property class="com.yworks.yfiles.bpmn.view.BPMNTypeEnum" name="com.yworks.bpmn.type" value="CONNECTION_TYPE_SEQUENCE_FLOW"/> + </y:StyleProperties> + </y:GenericEdge> + </data> + </edge> + <edge id="e2" source="n3" target="n4"> + <data key="d10"> + <y:GenericEdge configuration="com.yworks.bpmn.Connection"> + <y:Path sx="0.0" sy="0.0" tx="0.0" ty="0.0"/> + <y:LineStyle color="#000000" type="dashed" width="1.0"/> + <y:Arrows source="none" target="standard"/> + <y:EdgeLabel alignment="center" distance="2.0" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="custom" preferredPlacement="anywhere" ratio="0.5" textColor="#000000" visible="true" width="4.0" x="14.166666666666671" y="28.0"> + <y:LabelModel> + <y:SmartEdgeLabelModel autoRotationEnabled="false" defaultAngle="0.0" defaultDistance="10.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartEdgeLabelModelParameter angle="0.0" distance="30.0" distanceToCenter="true" position="right" ratio="0.5" segment="0"/> + </y:ModelParameter> + </y:EdgeLabel> + <y:StyleProperties> + <y:Property class="com.yworks.yfiles.bpmn.view.BPMNTypeEnum" name="com.yworks.bpmn.type" value="CONNECTION_TYPE_BIDIRECTED_ASSOCIATION"/> + </y:StyleProperties> + </y:GenericEdge> + </data> + </edge> + </graph> + <data key="d0"> + <y:Resources/> + </data> +</graphml>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/examples/Manuscripts_3.graphml Mon Jul 23 09:48:23 2012 +0200 @@ -0,0 +1,458 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:y="http://www.yworks.com/xml/graphml" xmlns:yed="http://www.yworks.com/xml/yed/3" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://www.yworks.com/xml/schema/graphml/1.1/ygraphml.xsd"> + <!--Created by yFiles for Java 2.9--> + <key for="graphml" id="d0" yfiles.type="resources"/> + <key for="port" id="d1" yfiles.type="portgraphics"/> + <key for="port" id="d2" yfiles.type="portgeometry"/> + <key for="port" id="d3" yfiles.type="portuserdata"/> + <key attr.name="Palette ToolTip" attr.type="string" for="node" id="d4"/> + <key attr.name="url" attr.type="string" for="node" id="d5"/> + <key attr.name="description" attr.type="string" for="node" id="d6"/> + <key for="node" id="d7" yfiles.type="nodegraphics"/> + <key attr.name="Description" attr.type="string" for="graph" id="d8"/> + <key attr.name="Palette ToolTip" attr.type="string" for="edge" id="d9"/> + <key attr.name="url" attr.type="string" for="edge" id="d10"/> + <key attr.name="description" attr.type="string" for="edge" id="d11"/> + <key for="edge" id="d12" yfiles.type="edgegraphics"/> + <graph edgedefault="directed" id="G"> + <data key="d8"/> + <node id="n0"> + <data key="d4"><![CDATA[TOPIC OVERVIEW, TOPIC, Subtopic, ..., Group [18pt]]]></data> + <data key="d7"> + <y:GenericNode configuration="com.yworks.bpmn.Activity"> + <y:Geometry height="43.95658263305327" width="161.0" x="0.0" y="70.47619047619052"/> + <y:Fill color="#FFFFFF" transparent="false"/> + <y:BorderStyle color="#FFFFFF" type="line" width="1.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="18" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="custom" textColor="#000000" visible="true" width="4.0" x="78.5" y="19.978291316526636"> + <y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:StyleProperties> + <y:Property class="com.yworks.yfiles.bpmn.view.BPMNTypeEnum" name="com.yworks.bpmn.type" value="ACTIVITY_TYPE"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.line.color" value="#000000"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.fill" value="#ffffff"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.fill2" value="#d4d4d4"/> + <y:Property name="com.yworks.bpmn.marker2"/> + <y:Property name="com.yworks.bpmn.marker1"/> + <y:Property name="com.yworks.bpmn.marker4"/> + <y:Property name="com.yworks.bpmn.marker3"/> + </y:StyleProperties> + </y:GenericNode> + </data> + </node> + <node id="n1"> + <data key="d4"><![CDATA[TOPICS, Subtopics, ..., Groups (All objects on one page of same size and lined up)]]></data> + <data key="d7"> + <y:GenericNode configuration="com.yworks.bpmn.Activity.withShadow"> + <y:Geometry height="82.0" width="121.0" x="191.0" y="51.45448179271716"/> + <y:Fill color="#FFFFFF" transparent="false"/> + <y:BorderStyle color="#000000" type="line" width="1.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="custom" textColor="#000000" visible="true" width="4.0" x="58.5" y="39.0"> + <y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:StyleProperties> + <y:Property class="com.yworks.yfiles.bpmn.view.BPMNTypeEnum" name="com.yworks.bpmn.type" value="ACTIVITY_TYPE"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.line.color" value="#000000"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.fill" value="#ffffff"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.fill2" value="#d4d4d4"/> + <y:Property name="com.yworks.bpmn.marker2"/> + <y:Property name="com.yworks.bpmn.marker1"/> + <y:Property name="com.yworks.bpmn.marker4"/> + <y:Property name="com.yworks.bpmn.marker3"/> + </y:StyleProperties> + </y:GenericNode> + </data> + </node> + <node id="n2"> + <data key="d4"><![CDATA[TOPICS, Subtopics, ..., Groups [75% white for not yet clickable boxes]]]></data> + <data key="d7"> + <y:GenericNode configuration="com.yworks.bpmn.Activity.withShadow"> + <y:Geometry height="82.0" width="121.0" x="342.0" y="51.45448179271716"/> + <y:Fill color="#BFBFBF" transparent="false"/> + <y:BorderStyle color="#000000" type="line" width="1.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="custom" textColor="#000000" visible="true" width="4.0" x="58.5" y="39.0"> + <y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:StyleProperties> + <y:Property class="com.yworks.yfiles.bpmn.view.BPMNTypeEnum" name="com.yworks.bpmn.type" value="ACTIVITY_TYPE"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.line.color" value="#000000"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.fill" value="#ffffff"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.fill2" value="#d4d4d4"/> + <y:Property name="com.yworks.bpmn.marker2"/> + <y:Property name="com.yworks.bpmn.marker1"/> + <y:Property name="com.yworks.bpmn.marker4"/> + <y:Property name="com.yworks.bpmn.marker3"/> + </y:StyleProperties> + </y:GenericNode> + </data> + </node> + <node id="n3"> + <data key="d4"><![CDATA[Folio page]]></data> + <data key="d6"><![CDATA[Add MS 678]]></data> + <data key="d7"> + <y:ShapeNode> + <y:Geometry height="89.0" width="63.0" x="493.0" y="47.95448179271716"/> + <y:Fill color="#FFFFFF" transparent="false"/> + <y:BorderStyle color="#000000" type="line" width="1.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="custom" textColor="#000000" visible="true" width="4.0" x="29.5" y="42.5"> + <y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:Shape type="rectangle"/> + </y:ShapeNode> + </data> + </node> + <node id="n4"> + <data key="d4"><![CDATA[Description]]></data> + <data key="d7"> + <y:GenericNode configuration="com.yworks.bpmn.Activity"> + <y:Geometry height="43.95658263305327" width="161.0" x="586.0" y="70.47619047619052"/> + <y:Fill color="#FFFFFF" transparent="false"/> + <y:BorderStyle color="#FFFFFF" type="line" width="1.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="custom" textColor="#000000" visible="true" width="4.0" x="78.5" y="19.978291316526636"> + <y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:StyleProperties> + <y:Property class="com.yworks.yfiles.bpmn.view.BPMNTypeEnum" name="com.yworks.bpmn.type" value="ACTIVITY_TYPE"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.line.color" value="#000000"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.fill" value="#ffffff"/> + <y:Property class="java.awt.Color" name="com.yworks.bpmn.icon.fill2" value="#d4d4d4"/> + <y:Property name="com.yworks.bpmn.marker2"/> + <y:Property name="com.yworks.bpmn.marker1"/> + <y:Property name="com.yworks.bpmn.marker4"/> + <y:Property name="com.yworks.bpmn.marker3"/> + </y:StyleProperties> + </y:GenericNode> + </data> + </node> + <node id="n5"> + <data key="d4"><![CDATA[Rough work related to the group]]></data> + <data key="d7"> + <y:GenericNode configuration="com.yworks.flowchart.cloud"> + <y:Geometry height="124.90896358543432" width="156.3375350140056" x="777.0" y="30.0"/> + <y:Fill color="#FFFFFF" transparent="false"/> + <y:BorderStyle color="#000000" type="line" width="1.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" backgroundColor="#FFFFFF" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasLineColor="false" hasText="false" height="4.0" modelName="custom" textColor="#000000" visible="true" width="4.0" x="76.16876750700283" y="60.45448179271716"> + <y:LabelModel> + <y:SmartNodeLabelModel distance="4.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> + </y:ModelParameter> + </y:NodeLabel> + <y:StyleProperties> + <y:Property class="java.lang.Boolean" name="y.view.ShadowNodePainter.SHADOW_PAINTING" value="true"/> + </y:StyleProperties> + </y:GenericNode> + </data> + </node> + <node id="n6"> + <data key="d4"/> + <data key="d6"/> + <data key="d7"> + <y:ShapeNode> + <y:Geometry height="20.0" width="20.0" x="0.0" y="184.90896358543432"/> + <y:Fill color="#C0C0C07F" transparent="false"/> + <y:BorderStyle color="#000000" type="line" width="2.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="internal" modelPosition="c" textColor="#000000" visible="true" width="4.0" x="8.0" y="8.0"/> + <y:Shape type="ellipse"/> + </y:ShapeNode> + </data> + </node> + <node id="n7"> + <data key="d4"/> + <data key="d6"/> + <data key="d7"> + <y:ShapeNode> + <y:Geometry height="20.0" width="20.0" x="100.0" y="184.90896358543432"/> + <y:Fill color="#C0C0C07F" transparent="false"/> + <y:BorderStyle color="#000000" type="line" width="2.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="internal" modelPosition="c" textColor="#000000" visible="true" width="4.0" x="8.0" y="8.0"/> + <y:Shape type="ellipse"/> + </y:ShapeNode> + </data> + </node> + <node id="n8"> + <data key="d4"/> + <data key="d6"/> + <data key="d7"> + <y:ShapeNode> + <y:Geometry height="20.0" width="20.0" x="150.0" y="184.90896358543432"/> + <y:Fill color="#C0C0C07F" transparent="false"/> + <y:BorderStyle color="#000000" type="line" width="2.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="internal" modelPosition="c" textColor="#000000" visible="true" width="4.0" x="8.0" y="8.0"/> + <y:Shape type="ellipse"/> + </y:ShapeNode> + </data> + </node> + <node id="n9"> + <data key="d4"/> + <data key="d6"/> + <data key="d7"> + <y:ShapeNode> + <y:Geometry height="20.0" width="20.0" x="250.0" y="184.90896358543432"/> + <y:Fill color="#C0C0C07F" transparent="false"/> + <y:BorderStyle color="#000000" type="line" width="2.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="internal" modelPosition="c" textColor="#000000" visible="true" width="4.0" x="8.0" y="8.0"/> + <y:Shape type="ellipse"/> + </y:ShapeNode> + </data> + </node> + <node id="n10"> + <data key="d4"/> + <data key="d6"/> + <data key="d7"> + <y:ShapeNode> + <y:Geometry height="20.0" width="20.0" x="300.0" y="184.90896358543432"/> + <y:Fill color="#C0C0C07F" transparent="false"/> + <y:BorderStyle color="#000000" type="line" width="2.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="internal" modelPosition="c" textColor="#000000" visible="true" width="4.0" x="8.0" y="8.0"/> + <y:Shape type="ellipse"/> + </y:ShapeNode> + </data> + </node> + <node id="n11"> + <data key="d4"/> + <data key="d6"/> + <data key="d7"> + <y:ShapeNode> + <y:Geometry height="20.0" width="20.0" x="400.0" y="184.90896358543432"/> + <y:Fill color="#C0C0C07F" transparent="false"/> + <y:BorderStyle color="#000000" type="line" width="2.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="internal" modelPosition="c" textColor="#000000" visible="true" width="4.0" x="8.0" y="8.0"/> + <y:Shape type="ellipse"/> + </y:ShapeNode> + </data> + </node> + <node id="n12"> + <data key="d4"/> + <data key="d6"/> + <data key="d7"> + <y:ShapeNode> + <y:Geometry height="20.0" width="20.0" x="450.0" y="184.90896358543432"/> + <y:Fill color="#C0C0C07F" transparent="false"/> + <y:BorderStyle color="#000000" type="line" width="2.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="internal" modelPosition="c" textColor="#000000" visible="true" width="4.0" x="8.0" y="8.0"/> + <y:Shape type="ellipse"/> + </y:ShapeNode> + </data> + </node> + <node id="n13"> + <data key="d4"/> + <data key="d6"/> + <data key="d7"> + <y:ShapeNode> + <y:Geometry height="20.0" width="20.0" x="550.0" y="184.90896358543432"/> + <y:Fill color="#C0C0C07F" transparent="false"/> + <y:BorderStyle color="#000000" type="line" width="2.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="internal" modelPosition="c" textColor="#000000" visible="true" width="4.0" x="8.0" y="8.0"/> + <y:Shape type="ellipse"/> + </y:ShapeNode> + </data> + </node> + <node id="n14"> + <data key="d4"/> + <data key="d6"/> + <data key="d7"> + <y:ShapeNode> + <y:Geometry height="20.0" width="20.0" x="600.0" y="184.90896358543432"/> + <y:Fill color="#C0C0C07F" transparent="false"/> + <y:BorderStyle color="#000000" type="line" width="2.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="internal" modelPosition="c" textColor="#000000" visible="true" width="4.0" x="8.0" y="8.0"/> + <y:Shape type="ellipse"/> + </y:ShapeNode> + </data> + </node> + <node id="n15"> + <data key="d4"/> + <data key="d6"/> + <data key="d7"> + <y:ShapeNode> + <y:Geometry height="20.0" width="20.0" x="700.0" y="184.90896358543432"/> + <y:Fill color="#C0C0C07F" transparent="false"/> + <y:BorderStyle color="#000000" type="line" width="2.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="internal" modelPosition="c" textColor="#000000" visible="true" width="4.0" x="8.0" y="8.0"/> + <y:Shape type="ellipse"/> + </y:ShapeNode> + </data> + </node> + <node id="n16"> + <data key="d4"/> + <data key="d6"/> + <data key="d7"> + <y:ShapeNode> + <y:Geometry height="20.0" width="20.0" x="750.0" y="184.90896358543432"/> + <y:Fill color="#C0C0C07F" transparent="false"/> + <y:BorderStyle color="#000000" type="line" width="2.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="internal" modelPosition="c" textColor="#000000" visible="true" width="4.0" x="8.0" y="8.0"/> + <y:Shape type="ellipse"/> + </y:ShapeNode> + </data> + </node> + <node id="n17"> + <data key="d4"/> + <data key="d6"/> + <data key="d7"> + <y:ShapeNode> + <y:Geometry height="20.0" width="20.0" x="850.0" y="184.90896358543432"/> + <y:Fill color="#C0C0C07F" transparent="false"/> + <y:BorderStyle color="#000000" type="line" width="2.0"/> + <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="internal" modelPosition="c" textColor="#000000" visible="true" width="4.0" x="8.0" y="8.0"/> + <y:Shape type="ellipse"/> + </y:ShapeNode> + </data> + </node> + <edge id="e0" source="n6" target="n7"> + <data key="d9"><![CDATA[ordering by pagination]]></data> + <data key="d12"> + <y:GenericEdge configuration="com.yworks.bpmn.Connection"> + <y:Path sx="0.0" sy="0.0" tx="0.0" ty="0.0"/> + <y:LineStyle color="#000000" type="line" width="1.0"/> + <y:Arrows source="none" target="standard"/> + <y:EdgeLabel alignment="center" distance="2.0" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="custom" preferredPlacement="anywhere" ratio="0.5" textColor="#000000" visible="true" width="4.0" x="38.0" y="27.999997520981196"> + <y:LabelModel> + <y:SmartEdgeLabelModel autoRotationEnabled="false" defaultAngle="0.0" defaultDistance="10.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartEdgeLabelModelParameter angle="0.0" distance="30.0" distanceToCenter="true" position="right" ratio="0.5" segment="0"/> + </y:ModelParameter> + </y:EdgeLabel> + <y:StyleProperties> + <y:Property class="com.yworks.yfiles.bpmn.view.BPMNTypeEnum" name="com.yworks.bpmn.type" value="CONNECTION_TYPE_SEQUENCE_FLOW"/> + </y:StyleProperties> + </y:GenericEdge> + </data> + </edge> + <edge id="e1" source="n8" target="n9"> + <data key="d9"><![CDATA[Conjectural relation]]></data> + <data key="d12"> + <y:GenericEdge configuration="com.yworks.bpmn.Connection"> + <y:Path sx="0.0" sy="0.0" tx="0.0" ty="0.0"/> + <y:LineStyle color="#000000" type="dotted" width="2.0"/> + <y:Arrows source="none" target="none"/> + <y:EdgeLabel alignment="center" distance="2.0" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="custom" preferredPlacement="anywhere" ratio="0.5" textColor="#000000" visible="true" width="4.0" x="38.0" y="27.999997520981196"> + <y:LabelModel> + <y:SmartEdgeLabelModel autoRotationEnabled="false" defaultAngle="0.0" defaultDistance="10.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartEdgeLabelModelParameter angle="0.0" distance="30.0" distanceToCenter="true" position="right" ratio="0.5" segment="0"/> + </y:ModelParameter> + </y:EdgeLabel> + <y:StyleProperties> + <y:Property class="com.yworks.yfiles.bpmn.view.BPMNTypeEnum" name="com.yworks.bpmn.type" value="CONNECTION_TYPE_ASSOCIATION"/> + </y:StyleProperties> + </y:GenericEdge> + </data> + </edge> + <edge id="e2" source="n10" target="n11"> + <data key="d9"><![CDATA[conjectural ordering]]></data> + <data key="d12"> + <y:GenericEdge configuration="com.yworks.bpmn.Connection"> + <y:Path sx="0.0" sy="0.0" tx="0.0" ty="0.0"/> + <y:LineStyle color="#000000" type="dotted" width="2.0"/> + <y:Arrows source="none" target="standard"/> + <y:EdgeLabel alignment="center" distance="2.0" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="custom" preferredPlacement="anywhere" ratio="0.5" textColor="#000000" visible="true" width="4.0" x="38.0" y="27.999997520981196"> + <y:LabelModel> + <y:SmartEdgeLabelModel autoRotationEnabled="false" defaultAngle="0.0" defaultDistance="10.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartEdgeLabelModelParameter angle="0.0" distance="30.0" distanceToCenter="true" position="right" ratio="0.5" segment="0"/> + </y:ModelParameter> + </y:EdgeLabel> + <y:StyleProperties> + <y:Property class="com.yworks.yfiles.bpmn.view.BPMNTypeEnum" name="com.yworks.bpmn.type" value="CONNECTION_TYPE_DIRECTED_ASSOCIATION"/> + </y:StyleProperties> + </y:GenericEdge> + </data> + </edge> + <edge id="e3" source="n12" target="n13"> + <data key="d9"><![CDATA[conjectural ordering]]></data> + <data key="d12"> + <y:GenericEdge configuration="com.yworks.bpmn.Connection"> + <y:Path sx="0.0" sy="0.0" tx="0.0" ty="0.0"/> + <y:LineStyle color="#000000" type="dotted" width="2.0"/> + <y:Arrows source="standard" target="standard"/> + <y:EdgeLabel alignment="center" distance="2.0" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="custom" preferredPlacement="anywhere" ratio="0.5" textColor="#000000" visible="true" width="4.0" x="38.0" y="27.999997520981196"> + <y:LabelModel> + <y:SmartEdgeLabelModel autoRotationEnabled="false" defaultAngle="0.0" defaultDistance="10.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartEdgeLabelModelParameter angle="0.0" distance="30.0" distanceToCenter="true" position="right" ratio="0.5" segment="0"/> + </y:ModelParameter> + </y:EdgeLabel> + <y:StyleProperties> + <y:Property class="com.yworks.yfiles.bpmn.view.BPMNTypeEnum" name="com.yworks.bpmn.type" value="CONNECTION_TYPE_DIRECTED_ASSOCIATION"/> + </y:StyleProperties> + </y:GenericEdge> + </data> + </edge> + <edge id="e4" source="n14" target="n15"> + <data key="d9"><![CDATA[use of result]]></data> + <data key="d12"> + <y:GenericEdge configuration="com.yworks.bpmn.Connection"> + <y:Path sx="0.0" sy="0.0" tx="0.0" ty="0.0"/> + <y:LineStyle color="#000000" type="dashed" width="1.0"/> + <y:Arrows source="none" target="standard"/> + <y:EdgeLabel alignment="center" distance="2.0" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="custom" preferredPlacement="anywhere" ratio="0.5" textColor="#000000" visible="true" width="4.0" x="38.0" y="27.999997520981196"> + <y:LabelModel> + <y:SmartEdgeLabelModel autoRotationEnabled="false" defaultAngle="0.0" defaultDistance="10.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartEdgeLabelModelParameter angle="0.0" distance="30.0" distanceToCenter="true" position="right" ratio="0.5" segment="0"/> + </y:ModelParameter> + </y:EdgeLabel> + <y:StyleProperties> + <y:Property class="com.yworks.yfiles.bpmn.view.BPMNTypeEnum" name="com.yworks.bpmn.type" value="CONNECTION_TYPE_BIDIRECTED_ASSOCIATION"/> + </y:StyleProperties> + </y:GenericEdge> + </data> + </edge> + <edge id="e5" source="n16" target="n17"> + <data key="d9"><![CDATA[use of result]]></data> + <data key="d12"> + <y:GenericEdge configuration="com.yworks.bpmn.Connection"> + <y:Path sx="0.0" sy="0.0" tx="0.0" ty="0.0"/> + <y:LineStyle color="#000000" type="dashed" width="1.0"/> + <y:Arrows source="standard" target="standard"/> + <y:EdgeLabel alignment="center" distance="2.0" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" hasText="false" height="4.0" modelName="custom" preferredPlacement="anywhere" ratio="0.5" textColor="#000000" visible="true" width="4.0" x="38.0" y="27.999997520981196"> + <y:LabelModel> + <y:SmartEdgeLabelModel autoRotationEnabled="false" defaultAngle="0.0" defaultDistance="10.0"/> + </y:LabelModel> + <y:ModelParameter> + <y:SmartEdgeLabelModelParameter angle="0.0" distance="30.0" distanceToCenter="true" position="right" ratio="0.5" segment="0"/> + </y:ModelParameter> + </y:EdgeLabel> + <y:StyleProperties> + <y:Property class="com.yworks.yfiles.bpmn.view.BPMNTypeEnum" name="com.yworks.bpmn.type" value="CONNECTION_TYPE_BIDIRECTED_ASSOCIATION"/> + </y:StyleProperties> + </y:GenericEdge> + </data> + </edge> + </graph> + <data key="d0"> + <y:Resources/> + </data> +</graphml>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/graphML2RDF.py Mon Jul 23 09:48:23 2012 +0200 @@ -0,0 +1,628 @@ +# Dieses Tool konvertiert graphMl Files erzeugt mit yED in einen graphen, entweder im dot, Format oder als RDF +# TODO: lots of ... Zuordnung graphenTyp zu Ontologie sollte konfiurierbar sein. +from lxml import etree +import os.path +import os + + +namespaces={'graphML':'http://graphml.graphdrawing.org/xmlns', + 'y':'http://www.yworks.com/xml/graphml' + } + +# Alle wesentlichen Informstionrn fuer einen Knoten +class Node: + + label="" #Label in yED, wird auch gebraucht um gleiche Knoten zu identifizieren, wenn mehr als ein Graph zusammengefuehrt werden soll. + #Es muss also beim Erstellen auf Konsistenz der Label geachtet werden. + internalID="" #InternalID eine Knotens innerhalb eines Graphen, dieses sind nur pro Graph eindeutig- + externalRef="" # Referenzen auf externe Weseiten (key="d4") + internalRef="" # Referenzen auf andere Graphen (key="d4"), unterscheidung zwischen externer und interner, ob Pfad mit http beginnt. + numId=0 #Id des Knotens sollte eindeutig fuer alle Knoten sein. + nodeType=-1 + + def __init__(self,numId): + self.numId=numId + + #Kante +class Edge: + src=None + target=None + edgeType=-1 + + def __init__(self,src,target): + self.src=src + self.target=target + + +# Erzeugt Ids fuer die Knoten +class IDDispensor: + currentID=0 + def getID(self): + self.currentID+=1 + return self.currentID + +# Der eigentliche Graph +class Graph: + label2Ids={} # Zuweisung labels zu den Ids des Knoten + #id2nodes={} #Zuweisung id zu den Knoten + internalId2nodesID={} #Zuweisung interneID zur allgemeinen ID + edges=set() # Menger der Kanten + id2label={} # Zuweisung id zu den Labeln + edgeStyles={} + edgeDescription={} + graphURI="" + nodeStyles={} + nodeDescription={} + + def __init__(self,dispensor): + self.dispensor=dispensor; + self.id2nodes={}; + self.edges=set(); + + + def convertGrahml(self,filename): + """Konvertiert ein Grahphml-File in ein Netzwerk mit Knoten und Kanten. + Die Abbildung von Layout auf Knoten- und Kantentypen erfolgt durch den Vergleich des Layout mit einer Palette + """ + tree = etree.parse(filename) + + nodes=tree.xpath("//graphML:node",namespaces=namespaces) + + for node in nodes: + nodeIDs=node.xpath("@id",namespaces=namespaces) + labels=node.xpath(".//y:NodeLabel",namespaces=namespaces) + for nodeID in nodeIDs: + nodeIDString=unicode(nodeID) + + labelString=None + for label in labels: + labelString=unicode(label.text).lstrip().rstrip() + + + newNode = Node(self.dispensor.getID()) + newNode.label=labelString + newNode.internalID=nodeIDString + + nodeRefs=node.xpath('./graphML:data[@key="d4"]',namespaces=namespaces) + #nodeRefs=node.xpath("./graphML:data",namespaces=namespaces) + for nodeRef in nodeRefs: + nodeRefString=nodeRef.text + if nodeRefString is None: + continue + + #hack dw, scheinbar falsche urs drin + if nodeRefString.find("http")>0: + continue + if nodeRefString.lstrip().startswith("http:") or nodeRefString.startswith("https:") or nodeRefString.startswith("ftp:"): + newNode.externalRef=nodeRefString + else: + newNode.internalRef=nodeRefString + + #-- + + #read styles + typeID=None + #fall 1 Generic Node + gns = node.xpath('./graphML:data[@key="d6"]/y:GenericNode',namespaces=namespaces) + for gn in gns: + style="g" + fills=gn.xpath('./y:Fill',namespaces=namespaces) + fs=None + for fill in fills: + fs=fill.attrib + + borderstyles=gn.xpath('./y:BorderStyle',namespaces=namespaces) + bs=None + for borderstyle in borderstyles: + bs=borderstyle.attrib + + + config=gn.attrib.get("configuration") + + + typeID=self.getNodeTypeFromPalette(style,fs,bs,config) + + + #fall 2 shape Node + gns = node.xpath('./graphML:data[@key="d6"]/y:ShapeNode',namespaces=namespaces) + for gn in gns: + style="s" + fills=gn.xpath('./y:Fill',namespaces=namespaces) + fs=None + for fill in fills: + fs=fill.attrib + + borderstyles=gn.xpath('./y:BorderStyle',namespaces=namespaces) + bs=None + for borderstyle in borderstyles: + bs=borderstyle.attrib + + + shapes=gn.xpath('./y:Shape',namespaces=namespaces) + shapeType=None + for shape in shapes: + shapeType=shape.attrib.get("type") + + + typeID=self.getNodeTypeFromPalette(style,fs,bs,shapeType) + + + #--- + if typeID is None: + typeID=-1 + newNode.nodeType=typeID + self.id2nodes[newNode.numId]=newNode + if labelString!=None: + self.label2Ids[labelString]=newNode.numId + + + self.internalId2nodesID[newNode.internalID]=newNode.numId + + edges=tree.xpath("//graphML:edge",namespaces=namespaces) + + for edge in edges: + srcIDs=edge.xpath("@source",namespaces=namespaces) + tarIDs=edge.xpath("@target",namespaces=namespaces) + for srcID in srcIDs: + source=unicode(srcID) + + for tarID in tarIDs: + target=unicode(tarID) + + #read styles + + #lineStyles=edge.xpath('./graphML:data[@key="d10"]/y:GenericEdge/y:LineStyle',namespaces=namespaces) + lineStyles=edge.xpath('./graphML:data[@key="d10"]/.//y:LineStyle',namespaces=namespaces) + ls=None + for lineStyle in lineStyles: + ls=lineStyle.attrib + + #arrows=edge.xpath('./graphML:data[@key="d10"]/y:GenericEdge/y:Arrows',namespaces=namespaces) + arrows=edge.xpath('./graphML:data[@key="d10"]/.//y:Arrows',namespaces=namespaces) + ars=None + for arrow in arrows: + ars=arrow.attrib + + typeID=self.getTypeFromPalette(ls,ars) + + newEdge=Edge(self.internalId2nodesID.get(source),self.internalId2nodesID.get(target)) + newEdge.edgeType=typeID + + + self.edges.add(newEdge) + + + def getNodeTypeFromPalette(self,style,fs,bs,config): + for key,value in self.nodeStyles.items(): + styleVorlage,fsVorlage,bsVorlage,configVorlage=value + if style!=styleVorlage: + continue + + if config!=configVorlage: + continue + + + if self.cmpDict(fs,fsVorlage) and self.cmpDict(bs,bsVorlage): + print key + return key + + return -1 + + + + def getTypeFromPalette(self,ls,ars): + + for key,value in self.edgeStyles.items(): + lsVorlage,arsVorlage=value + if self.cmpDict(ls,lsVorlage) and self.cmpDict(ars,arsVorlage): + + return key + + return -1 + + def cmpDict(self,x,y): + """Teste zwei dicts auf Gleichheit""" + + if (x is None) or (y is None): + return False + + for key in x.keys(): + yVal=y.get(key,None) + xVal=x.get(key) + if yVal!=xVal: + return False + + return True + + def exportAsDot(self,filename,graphName,onlyMs=False,partOfGraph=None,linksToGraph=None): + out = file(filename,"w") + + type2NodeShape={0:'style="solid" color="blue"', + 1:'style="solid" color="lightblue"', + 2:'style="solid" color="blue"', + 3:'style="tapered" color="orange"', + 4:'style="solid" color="green"', + 5:'style="solid" color="sienna"', + 6:'style="solid" color="magenta"', + -1:'style="dotted" color="red"' + } + + type2EdgeShape={0:'style="dotted" color="blue"', + 1:'style="solid"', + 2:'style="bold"', + 3:'style="tapered"', + 4:'style="solid" color="green"', + 5:'style="solid" color="sienna"', + 6:'style="solid" color="magenta"', + -1:'style="dotted" color="red"' + } + + out.write("""digraph %s {"""%graphName) + g=self + + for key,value in g.id2nodes.items(): + #name=value.label.replace("\n","").replace(" ","_").replace(".","_").replace("(","_").replace(")","_").replace("?","_").replace("'","_").replace(",","_") + #name=value.numId + name=key + label=value.label.replace("\n","") + url=value.externalRef + + if onlyMs: + if not label.lstrip().startswith("Add"): + continue + try: + s="""%s [label="%s" URL="%s" %s];\n"""%(name,label.decode("utf-8"),url,type2NodeShape.get(value.nodeType)) + out.write(s) + except: + s="""%s [label="%s" URL="%s" %s];\n"""%(name,repr(label),url,type2NodeShape.get(value.nodeType)) + out.write(s) + + + for edge in g.edges: + try: + #sr=g.id2label.get(edge.src).replace("\n","").replace(" ","_").replace(".","_").replace("(","_").replace(")","_").replace("?","_").replace("'","_").replace(",","_").replace("-","_") + sr=edge.src + + tg=edge.target + #tg=g.id2label.get(edge.target).replace("\n","").replace(" ","_").replace(".","_").replace("(","_").replace(")","_").replace("?","_").replace("'","_").replace(",","_").replace("-","_") + + s = """%s -> %s [%s];\n"""%(sr,tg,type2EdgeShape.get(edge.edgeType)) + out.write(s) + except: + pass + + + if not partOfGraph is None: + for nodeID,graphList in partOfGraph.items(): + #fromNode=g.id2label.get(nodeID).replace("\n","").replace(" ","_").replace(".","_").replace("(","_").replace(")","_").replace("?","_").replace("'","_").replace(",","_").replace("-","_") + fromNode=nodeID + for graph in graphList: + try: + s = """G_%s -> %s [color="yellow"];\n"""%(graph.replace(".","_"),fromNode) + out.write(s) + s = """G_%s [label="%s" color="green" fillcolor="green" style="filled"];\n"""%(graph.replace(".","_"),graph) + out.write(s) + except: + pass + + + if not linksToGraph is None: + for nodeID,graph in linksToGraph: + #fromNode=g.id2label.get(nodeID).replace("\n","").replace(" ","_").replace(".","_").replace("(","_").replace(")","_").replace("?","_").replace("'","_").replace(",","_").replace("-","_") + fromNode=nodeID + splitted=graph.split("/") + print graph + gr = splitted[-1] + print gr + try: + s = """%s -> G_%s [color="green"];\n"""%(fromNode,gr.replace(".","_")) + out.write(s) + s = """G_%s [label="%s" color="green" fillcolor="green" style="filled"];\n"""%(gr.replace(".","_"),gr) + out.write(s) + except: + pass + out.write("}") + + + out.close() + + + def exportAsRDF(self,filename,graphName,onlyMs=False,partOfGraph=None,linksToGraph=None): + out = file(filename,"w") + + base="http://example.org/harriotOnt/" + type2NodeShape={0: base+"Topic", + 1: base+"Topic", + 2: base+"Topic", + 3: base+"FolioPage", + 4: base+"4", + 5: base+"RelatedFolioPage", + -1: base+"UNKNOWN"} + + type2EdgeShape={0: base+"has_prev_by_pagination", + 1: base+"has_conjectural_relation", + 2: base+"has_prev_by_conjection", + 3: base+"has_prev_by_conjection", + 4: base+"result_used_from", + 5: base+"result_used_from", + -1: base+"is_related_to"} + + #out.write("""digraph %s {"""%graphName) + g=self + + for key,value in g.id2nodes.items(): + #name=value.label.replace("\n","").replace(" ","_").replace(".","_").replace("(","_").replace(")","_").replace("?","_").replace("'","_").replace(",","_") + #name=value.numId + name=key + label=value.label.replace("\n","") + url=value.externalRef + + if onlyMs: + if not label.lstrip().startswith("Add"): + continue + + ressourceURI=base+str(name) + try: + s="" + if label!="": + s+="""<%s> <http://www.w3.org/2000/01/rdf-schema#label> "%s".\n"""%(ressourceURI,label.decode("utf-8").replace('"','\"')) + if url!="": + s+="""<%s> <%s> <%s>.\n"""%(ressourceURI,base+"describes",url) + print value.nodeType + s+="""<%s> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type><%s>.\n"""%(ressourceURI,type2NodeShape.get(value.nodeType)) + #s="""%s [label="%s" URL="%s" %s];\n"""%(name,label.decode("utf-8"),url,type2NodeShape.get(value.nodeType)) + out.write(s) + except: + if label!="": + s="""<%s> <http://www.w3.org/2000/01/rdf-schema#label> "%s".\n"""%(ressourceURI,'CHECK_THIS') + #s="""<%s> <http://www.w3.org/2000/01/rdf-schema#label> "%s"."""%(ressourceURI,repr(label).replace('"','\"')) + if url!="": + s+="""<%s> <%s> <%s>."""%(ressourceURI,base+"describes",url) + s+="""<%s> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type><%s>.\n"""%(ressourceURI,type2NodeShape.get(value.nodeType)) + #s="""%s [label="%s" URL="%s" %s];\n"""%(name,repr(label),url,type2NodeShape.get(value.nodeType)) + out.write(s) + + + for edge in g.edges: + try: + #sr=g.id2label.get(edge.src).replace("\n","").replace(" ","_").replace(".","_").replace("(","_").replace(")","_").replace("?","_").replace("'","_").replace(",","_").replace("-","_") + sr=edge.src + + tg=edge.target + #tg=g.id2label.get(edge.target).replace("\n","").replace(" ","_").replace(".","_").replace("(","_").replace(")","_").replace("?","_").replace("'","_").replace(",","_").replace("-","_") + + s ="""<%s><%s><%s>.\n"""%(base+str(sr),type2EdgeShape.get(edge.edgeType),base+str(tg)) + #s = """%s -> %s [%s];\n"""%(sr,tg,type2EdgeShape.get(edge.edgeType)) + out.write(s) + except: + pass + + + if not partOfGraph is None: + for nodeID,graphList in partOfGraph.items(): + #fromNode=g.id2label.get(nodeID).replace("\n","").replace(" ","_").replace(".","_").replace("(","_").replace(")","_").replace("?","_").replace("'","_").replace(",","_").replace("-","_") + fromNode=nodeID + for graph in graphList: + try: + ressourceURI=base+graph + s ="""<%s><%s><%s>.\n"""%(base+str(fromNode),base+"is_part_of",ressourceURI) + #s = """G_%s -> %s [color="yellow"];\n"""%(graph.replace(".","_"),fromNode) + out.write(s) + + s="""<%s> <http://www.w3.org/2000/01/rdf-schema#label> "%s".\n"""%(ressourceURI,graph) + s+="""<%s> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type><%s>.\n"""%(ressourceURI,base+"HarriotGraph") + + #s = """G_%s [label="%s" color="green" fillcolor="green" style="filled"];\n"""%(graph.replace(".","_"),graph) + out.write(s) + except: + pass + + + if not linksToGraph is None: + for nodeID,graph in linksToGraph: + #fromNode=g.id2label.get(nodeID).replace("\n","").replace(" ","_").replace(".","_").replace("(","_").replace(")","_").replace("?","_").replace("'","_").replace(",","_").replace("-","_") + fromNode=nodeID + splitted=graph.split("/") + print graph + gr = splitted[-1] + print gr + ressourceURI=base+gr + + + + typeSrc=type2NodeShape.get(nodeID) + if typeSrc==base+"Topic": + relation="is_specified_in" + else: + relation="see_also" + + try: + s ="""<%s><%s><%s>.\n"""%(base+str(fromNode),relation,ressourceURI) + #s = """%s -> G_%s [color="green"];\n"""%(fromNode,gr.replace(".","_")) + out.write(s) + + s="""<%s> <http://www.w3.org/2000/01/rdf-schema#label> "%s".\n"""%(ressourceURI,gr) + s+="""<%s> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type><%s>.\n"""%(ressourceURI,base+"HarriotGraph") + + #s = """G_%s [label="%s" color="green" fillcolor="green" style="filled"];\n"""%(gr.replace(".","_"),gr) + out.write(s) + except: + pass + #out.write("}") + + + out.close() + def readPalette(self,palettePath): + typeNr=0 + palette = etree.parse(palettePath) + edges=palette.xpath("//graphML:edge",namespaces=namespaces) + # lage alle kanten in der palette + for edge in edges: + #relevant fuer die einordnugn ist data key=12 linestyle und arrows + lineStyles=edge.xpath('./graphML:data[@key="d12"]/y:GenericEdge/y:LineStyle',namespaces=namespaces) + ls=None + for lineStyle in lineStyles: + ls=lineStyle + + arrows=edge.xpath('./graphML:data[@key="d12"]/y:GenericEdge/y:Arrows',namespaces=namespaces) + ars=None + for arrow in arrows: + ars=arrow + + #get description + ds="" + descriptions=edge.xpath('./graphML:data[@key="d9"]',namespaces=namespaces) + for description in descriptions: + ds=description + + self.edgeDescription[typeNr]=ds.text + self.edgeStyles[typeNr]=(ls.attrib,ars.attrib) + typeNr+=1 + + typeNr=0 + nodes=palette.xpath("//graphML:node",namespaces=namespaces) + for node in nodes: + style="" + #fall 1 Generic Node + gns = node.xpath('./graphML:data[@key="d7"]/y:GenericNode',namespaces=namespaces) + for gn in gns: + style="g" + fills=gn.xpath('./y:Fill',namespaces=namespaces) + fs=None + for fill in fills: + fs=fill.attrib + + borderstyles=gn.xpath('./y:BorderStyle',namespaces=namespaces) + bs=None + for borderstyle in borderstyles: + bs=borderstyle.attrib + + + config=gn.attrib.get("configuration") + + #get description + ds="" + descriptions=node.xpath('./graphML:data[@key="d4"]',namespaces=namespaces) + for description in descriptions: + ds=description.text + + self.nodeDescription[typeNr]=ds + + self.nodeStyles[typeNr]=(style,fs,bs,config) + typeNr+=1 + + #fall 2 shape Node + gns = node.xpath('./graphML:data[@key="d7"]/y:ShapeNode',namespaces=namespaces) + for gn in gns: + style="s" + fills=gn.xpath('./y:Fill',namespaces=namespaces) + fs=None + for fill in fills: + fs=fill.attrib + + borderstyles=gn.xpath('./y:BorderStyle',namespaces=namespaces) + bs=None + for borderstyle in borderstyles: + bs=borderstyle.attrib + + + shapes=gn.xpath('./y:Shape',namespaces=namespaces) + shapeType=None + for shape in shapes: + shapeType=shape.attrib.get("type") + + + + #get description + ds="" + descriptions=node.xpath('./graphML:data[@key="d4"]',namespaces=namespaces) + for description in descriptions: + ds=description.text + + self.nodeDescription[typeNr]=ds + self.nodeStyles[typeNr]=(style,fs,bs,shapeType) + typeNr+=1 + +def merge(graphs,dispensor): + filter=['supermap.graphml'] + partOfGraph={} + linksToGraph=set() + + edges=set() + mg =Graph(dispensor) + for g in graphs: + if g.graphURI in filter: + continue + idalt2neu={} + for nodeid in g.id2nodes.keys(): + node=g.id2nodes.get(nodeid) + label=node.label + currentID =mg.label2Ids.get(label,dispensor.getID()) #hole id wenn existent sonst neue + + mg.label2Ids[label]=currentID + mg.id2label[currentID]=label + idalt2neu[node.numId]=currentID + mg.id2nodes[currentID]=node + + + if node.internalRef!="": + linksToGraph.add((currentID,node.internalRef)) + + containedIn = partOfGraph.get(currentID,set()) + + + containedIn.add(g.graphURI) + partOfGraph[currentID]=containedIn + + + for edge in g.edges: + src=edge.src + target=edge.target + + edge.src=idalt2neu.get(src) + edge.target=idalt2neu.get(target) + edges.add(edge) + + mg.edges=edges + return mg,partOfGraph,linksToGraph + +if __name__ == '__main__': + dispensor = IDDispensor() + #g1=Graph(dispensor) + #g1.readPalette("/Users/dwinter/Documents/Projekte/Diss - data-mining/eclipseWorkspace/graphML2RDF/examples/Manuscripts_3.graphml") + #g1.convertGrahml("/Users/dwinter/Documents/Projekte/Diss - data-mining/eclipseWorkspace/graphML2RDF/examples/5.7.3_cubics_other.graphml") + + + + path="/Users/dwinter/Documents/Projekte/Europeana/harriot-graphml/Maps_20120523/" + ls = os.listdir(path) + graphs=set() + + for l in ls: + + g1=Graph(dispensor) + g1.readPalette("/Users/dwinter/Documents/Projekte/Diss - data-mining/eclipseWorkspace/graphML2RDF/examples/Manuscripts_3.graphml") + + g1.convertGrahml(path+l) + g1.graphURI=l + graphs.add(g1) + + g,po,lg = merge(graphs,dispensor) + + + #print g.label2Ids.keys() + #print len(g.label2Ids.keys()) + + #g.readPalette("/Users/dwinter/Documents/Projekte/Diss - data-mining/eclipseWorkspace/graphML2RDF/examples/Manuscripts_3.graphml") + #g.exportAsDot("/tmp/out.dot", "harriot",onlyMs=False,partOfGraph=po,linksToGraph=lg) + g.exportAsDot("/tmp/out.dot", "harriot",onlyMs=False,partOfGraph=po,linksToGraph=lg) + g.exportAsRDF("/tmp/out.rdf", "harriot",onlyMs=False,partOfGraph=po,linksToGraph=lg) + + out2 = file("/tmp/out.txt","w") + for key in g.label2Ids.keys(): + try: + out2.write('"'+key+'"'+"\n") + except: + pass + out2.close() + \ No newline at end of file