RDF-XML: Made the SVG file rescaleable via the @viewBox attribute
authorIvan Herman <ivan@ivan-herman.net>
Wed, 18 Dec 2013 11:35:16 +0100
changeset 1623 909da76449d9
parent 1622 09cd5fd32515
child 1624 160d13788dd0
RDF-XML: Made the SVG file rescaleable via the @viewBox attribute
rdf-xml/figure1.svg
rdf-xml/figure2.svg
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-xml/figure1.svg	Wed Dec 18 11:35:16 2013 +0100
@@ -0,0 +1,179 @@
+<?xml version="1.0" standalone="no"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
+<svg
+   viewBox="280 240 680 245"
+   id="svg110"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:xlink="http://www.w3.org/1999/xlink">  <defs
+     id="defs133">
+  </defs>
+  <sodipodi:namedview
+     id="base">
+  </sodipodi:namedview>
+  <ellipse
+     cx="-439"
+     cy="219"
+     rx="27"
+     ry="18"
+     style="fill:#73bf73; stroke:rgb(66,105,66); fill-opacity:100%; "
+     id="ellipse113"
+     transform="matrix(1 0 0 1 992.753 141.329)">
+  </ellipse>
+  <path
+     d="M-400 152C-406 155 -417 162 -425 171 -427 173 -429 183 -434 202"
+     style="fill:none; stroke:rgb(90,89,206); "
+     id="path114"
+     transform="matrix(1 0 0 1 992.753 141.329)">
+  </path>
+  <polygon
+     points="-435,207 -437,198 -429,200"
+     style="fill:rgb(90,89,206); stroke:none; "
+     id="polygon115"
+     transform="matrix(1 0 0 1 992.753 141.329)">
+  </polygon>
+  <path
+     d="M-287 152C-281 156 -270 162 -262 171 -259 175 -255 184 -250 202"
+     style="fill:none; stroke:rgb(90,89,206); "
+     id="path118"
+     transform="matrix(1 0 0 1 992.753 141.329)">
+  </path>
+  <text
+     style="font-family:Helvetica; font-size:10.000000; fill:#5959cf; fill-opacity:100%; font-weight:bold; font-style:normal; "
+     x="-253"
+     y="180"
+     id="text120"
+     transform="matrix(1 0 0 1 993.455 137.82)">http://purl.org/dc/elements/1.1/title</text>
+  <path
+     d="M-466 223C-486 227 -514 237 -531 255 -532 257 -534 266 -539 286"
+     style="fill:none; stroke:rgb(90,89,206); "
+     id="path123"
+     transform="matrix(1 0 0 1 992.753 141.329)">
+  </path>
+  <path
+     d="M-414 223C-393 229 -366 238 -350 255 -345 261 -341 268 -336 286"
+     style="fill:none; stroke:rgb(90,89,206); "
+     id="path127"
+     transform="matrix(1 0 0 1 992.753 141.329)">
+  </path>
+  <text
+     style="font-family:Helvetica; font-size:10.000000; fill:#5959cf; stroke-opacity:100%; fill-opacity:100%; font-weight:bold; font-style:normal; "
+     x="-339"
+     y="264"
+     id="text129"
+     transform="matrix(1 0 0 1 994.157 142.031)">http://www.example.org/terms/fullName</text>
+  <text
+     style="font-family:Helvetica; font-size:10.000000; fill:#5959cf; fill-opacity:100%; font-weight:bold; font-style:normal; "
+     x="-697"
+     y="231"
+     id="text130"
+     transform="matrix(1 0 0 1 994.859 137.82)">http://www.example.org/terms/homePage</text>
+  <text
+     style="font-family:Helvetica; font-size:10.000000; fill:#5959cf; fill-opacity:100%; font-weight:bold; font-style:normal; "
+     x="-602"
+     y="179"
+     id="text131"
+     transform="matrix(1 0 0 1 987.84 142.031)">http://www.example.org/terms/editor</text>
+  <g
+     id="g184">    <ellipse
+       cx="-342"
+       cy="135"
+       rx="135"
+       ry="18"
+       style="fill:#73bf73; stroke:rgb(66,105,66); fill-opacity:100%; "
+       id="ellipse111"
+       transform="matrix(1 0 0 1 983.75 141.329)">
+    </ellipse>
+    <text
+       style="font-family:Helvetica; font-size:10.000000; stroke:none; fill:#000000; fill-opacity:100%; stroke-opacity:100%; stroke-width:1; stroke-linejoin:miter; stroke-linecap:butt; font-weight:bold; font-style:normal; "
+       x="-454"
+       y="138"
+       id="text112"
+       transform="matrix(1 0 0 1 992.753 141.329)">http://www.w3.org/TR/rdf-syntax-grammar</text>
+
+  </g>
+  <g
+     id="g187">    <rect
+       height="36"
+       style="fill:#e5de7a; stroke:rgb(132,117,66); fill-opacity:100%; "
+       width="262"
+       x="-375"
+       y="201"
+       id="rect116"
+       transform="matrix(1 0 0 1 992.753 141.329)">
+    </rect>
+    <text
+       style="font-family:Helvetica; font-size:10.000000; stroke:none; fill:rgb(132,117,66); stroke-opacity:100%; stroke-width:1; stroke-linejoin:miter; stroke-linecap:butt; font-weight:bold; font-style:normal; "
+       x="-353"
+       y="222"
+       id="text117"
+       transform="matrix(1 0 0 1 992.753 141.329)">RDF/XML Syntax Specification (Revised)</text>
+    <polygon
+       points="-249,207 -255,200 -247,198"
+       style="fill:rgb(90,89,206); stroke:none; "
+       id="polygon119"
+       transform="matrix(1 0 0 1 992.753 141.329)">
+    </polygon>
+
+  </g>
+  <g
+     id="g191">    <rect
+       height="36"
+       style="fill:#e5de7a; stroke:rgb(132,117,66); fill-opacity:100%; "
+       width="86"
+       x="-375"
+       y="285"
+       id="rect125"
+       transform="matrix(1 0 0 1 992.753 141.329)">
+    </rect>
+    <text
+       style="font-family:Helvetica; font-size:10.000000; stroke:none; fill:rgb(132,117,66); stroke-opacity:100%; stroke-width:1; stroke-linejoin:miter; stroke-linecap:butt; font-weight:bold; font-style:normal; "
+       x="-367"
+       y="306"
+       id="text126"
+       transform="matrix(1 0 0 1 992.753 141.329)">Dave Beckett</text>
+    <polygon
+       points="-335,291 -341,284 -333,282"
+       style="fill:rgb(90,89,206); stroke:none; "
+       id="polygon128"
+       transform="matrix(1 0 0 1 992.753 141.329)">
+    </polygon>
+
+  </g>
+  <g
+     id="g195">    <ellipse
+       cx="-545"
+       cy="303"
+       rx="81"
+       ry="18"
+       style="fill:#73bf73; stroke:rgb(66,105,66); fill-opacity:100%; "
+       id="ellipse121"
+       transform="matrix(1 0 0 1 992.753 141.329)">
+    </ellipse>
+    <text
+       style="font-family:Helvetica; font-size:10.000000; stroke:none; fill:rgb(66,105,66); stroke-opacity:100%; stroke-width:1; stroke-linejoin:miter; stroke-linecap:butt; font-weight:bold; font-style:normal; "
+       x="-612"
+       y="306"
+       id="text122"
+       transform="matrix(1 0 0 1 992.753 141.329)">http://purl.org/net/dajobe/</text>
+    <polygon
+       points="-540,291 -542,282 -534,284"
+       style="fill:rgb(90,89,206); stroke:none; "
+       id="polygon124"
+       transform="matrix(1 0 0 1 992.753 141.329)">
+    </polygon>
+
+  </g>
+
+  <metadata>
+    <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+	     xmlns:dc="http://purl.org/dc/elements/1.1/">
+      <rdf:Description rdf:about="">
+	       <dc:title>Graph RDF/XML Example 1</dc:title>
+	       <dc:date>2013-12-18</dc:date>
+	       <dc:source rdf:resource="http://www.w3.org/TR/rdf-syntax-grammar" />
+      </rdf:Description>
+    </rdf:RDF>
+  </metadata>
+
+</svg>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-xml/figure2.svg	Wed Dec 18 11:35:16 2013 +0100
@@ -0,0 +1,176 @@
+<?xml version="1.0" standalone="no"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
+"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
+<svg
+   viewBox="280 240 680 245"
+   id="svg110"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:xlink="http://www.w3.org/1999/xlink">  <defs
+     id="defs133">
+  </defs>
+  <sodipodi:namedview
+     id="base">
+  </sodipodi:namedview>
+  <ellipse
+     cx="-439"
+     cy="219"
+     rx="27"
+     ry="18"
+     style="fill:#ff0000; stroke:#ff0000; fill-opacity:100%; stroke-opacity:100%; stroke-width:1; stroke-linejoin:miter; stroke-linecap:butt; "
+     id="ellipse113"
+     transform="matrix(1 0 0 1 992.753 141.329)">
+  </ellipse>
+  <path
+     d="M-400 152C-406 155 -417 162 -425 171 -427 173 -429 183 -434 202"
+     style="fill:none; stroke:#ff0000; stroke-opacity:100%; stroke-width:1; stroke-linejoin:miter; stroke-linecap:butt; "
+     id="path114"
+     transform="translate(994.108,137.942)">
+  </path>
+  <polygon
+     points="-435,207 -437,198 -429,200"
+     style="fill:rgb(90,89,206); stroke:none; "
+     id="polygon115"
+     transform="matrix(1 0 0 1 992.753 141.329)">
+  </polygon>
+  <path
+     d="M-287 152C-281 156 -270 162 -262 171 -259 175 -255 184 -250 202"
+     style="fill:none; stroke:rgb(90,89,206); "
+     id="path118"
+     transform="translate(990.721,139.297)">
+  </path>
+  <text
+     style="font-family:Helvetica; font-size:10.000000; fill:#5959cf; fill-opacity:100%; font-weight:bold; font-style:normal; "
+     x="-253"
+     y="180"
+     id="text120"
+     transform="matrix(1 0 0 1 995.232 132.49)">
+http://purl.org/dc/elements/1.1/title</text>
+  <path
+     d="M-466 223C-486 227 -514 237 -531 255 -532 257 -534 266 -539 286"
+     style="fill:none; stroke:#ff0000; stroke-opacity:100%; stroke-width:1; stroke-linejoin:miter; stroke-linecap:butt; "
+     id="path123"
+     transform="matrix(1 0 0 1 992.753 141.329)">
+  </path>
+  <path
+     d="M-414 223C-393 229 -366 238 -350 255 -345 261 -341 268 -336 286"
+     style="fill:none; stroke:#000000; stroke-opacity:100%; stroke-width:1; stroke-linejoin:miter; stroke-linecap:butt; "
+     id="path127"
+     transform="matrix(1 0 0 1 992.753 141.329)">
+  </path>
+  <text
+     style="font-family:Helvetica; font-size:10.000000; fill:#5959cf; stroke-opacity:100%; fill-opacity:100%; font-weight:bold; font-style:normal; "
+     x="-339"
+     y="264"
+     id="text129"
+     transform="matrix(1 0 0 1 998.599 141.143)">
+http://www.example.org/terms/fullName</text>
+  <text
+     style="font-family:Helvetica; font-size:10.000000; fill:#5959cf; fill-opacity:100%; font-weight:bold; font-style:normal; "
+     x="-697"
+     y="231"
+     id="text130"
+     transform="matrix(1 0 0 1 998.413 125.383)">
+http://www.example.org/terms/homePage</text>
+  <text
+     style="font-family:Helvetica; font-size:10.000000; fill:#5959cf; fill-opacity:100%; font-weight:bold; font-style:normal; "
+     x="-602"
+     y="179"
+     id="text131"
+     transform="matrix(1 0 0 1 988.728 134.036)">
+http://www.example.org/terms/editor</text>
+  <polygon
+     points="-249,207 -255,200 -247,198"
+     style="fill:rgb(90,89,206); stroke:none; "
+     id="polygon119"
+     transform="translate(992.753,141.329)">
+  </polygon>
+  <polygon
+     points="-335,291 -341,284 -333,282"
+     style="fill:rgb(90,89,206); stroke:none; "
+     id="polygon128"
+     transform="translate(992.753,141.329)">
+  </polygon>
+  <polygon
+     points="-540,291 -542,282 -534,284"
+     style="fill:rgb(90,89,206); stroke:none; "
+     id="polygon124"
+     transform="translate(992.753,141.329)">
+  </polygon>
+  <ellipse
+     cx="-342"
+     cy="135"
+     rx="135"
+     ry="18"
+     style="fill:#e50000; stroke:#ff0000; fill-opacity:100%; stroke-opacity:100%; stroke-width:1; stroke-linejoin:miter; stroke-linecap:butt; "
+     id="ellipse111"
+     transform="matrix(1 0 0 1 988.025 138.619)">
+  </ellipse>
+  <text
+     style="font-family:Helvetica; font-size:10.000000; stroke:none; fill:#000000; fill-opacity:100%; stroke-opacity:100%; stroke-width:1; stroke-linejoin:miter; stroke-linecap:butt; font-weight:bold; font-style:normal; "
+     x="-454"
+     y="138"
+     id="text112"
+     transform="matrix(1 0 0 1 1001.47 128.847)">
+http://www.w3.org/TR/rdf-syntax-grammar</text>
+  <ellipse
+     cx="-545"
+     cy="303"
+     rx="81"
+     ry="18"
+     style="fill:#e50000; stroke:#e50000; fill-opacity:1; stroke-linejoin:miter; stroke-linecap:butt; stroke-opacity:1; "
+     id="ellipse121"
+     transform="matrix(1 0 0 1 992.753 147.426)">
+  </ellipse>
+  <text
+     style="font-family:Helvetica; font-size:10.000000; stroke:none; fill:rgb(66,105,66); stroke-opacity:100%; stroke-width:1; stroke-linejoin:miter; stroke-linecap:butt; font-weight:bold; font-style:normal; "
+     x="-612"
+     y="306"
+     id="text122"
+     transform="matrix(1 0 0 1 999.86 137.654)">
+http://purl.org/net/dajobe/</text>
+  <rect
+     height="36"
+     style="fill:#e5de7a; stroke:rgb(132,117,66); fill-opacity:100%; "
+     width="262"
+     x="-375"
+     y="201"
+     id="rect116"
+     transform="matrix(1 0 0 1 1006.3 148.104)">
+  </rect>
+  <text
+     style="font-family:Helvetica; font-size:10.000000; stroke:none; fill:rgb(132,117,66); stroke-opacity:100%; stroke-width:1; stroke-linejoin:miter; stroke-linecap:butt; font-weight:bold; font-style:normal; "
+     x="-353"
+     y="222"
+     id="text117"
+     transform="matrix(1 0 0 1 1017.85 138.332)">
+RDF/XML Syntax Specification (Revised)</text>
+  <rect
+     height="36"
+     style="fill:#e5de7a; stroke:#000000; fill-opacity:1; stroke-opacity:1; stroke-width:1; stroke-linejoin:miter; stroke-linecap:butt; "
+     width="86"
+     x="-375"
+     y="285"
+     id="rect125"
+     transform="matrix(1 0 0 1 990.721 148.104)">
+  </rect>
+  <text
+     style="font-family:Helvetica; font-size:10.000000; stroke:none; fill:rgb(132,117,66); stroke-opacity:100%; stroke-width:1; stroke-linejoin:miter; stroke-linecap:butt; font-weight:bold; font-style:normal; "
+     x="-367"
+     y="306"
+     id="text126"
+     transform="matrix(1 0 0 1 992.498 137.443)">
+Dave Beckett</text>
+
+  <metadata>
+    <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+	     xmlns:dc="http://purl.org/dc/elements/1.1/">
+      <rdf:Description rdf:about="">
+	<dc:title>Graph for RDF/XML Example 2 - One Path Through the Graph</dc:title>
+	<dc:date>2002-09-05</dc:date>
+	<dc:source rdf:resource="http://www.w3.org/TR/rdf-syntax-grammar" />
+      </rdf:Description>
+    </rdf:RDF>
+  </metadata>
+
+</svg>