GeoMetadataOverSvg

From W3C Wiki

A geographic information notation using SVG and RDF compatible metadata

Extended support for ISO6709 by basic geo vocabulary

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
  <geo:Point>
    <geo:iso6709>+26.2256+127.6853/</geo:iso6709>
  </geo:Point>
</rdf:RDF>


With Coordinate Reference Systems

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
  <geo:Point>
    <geo:iso6709>+26.2256+127.6853CRSWGS84/</geo:iso6709>
  </geo:Point>
</rdf:RDF>


RDF geo metadata embedded in SVG

<?xml version="1.0" encoding="UTF-8" ?>
<svg 
 xmlns="http://www.w3.org/2000/svg"
 xmlns:xlink="http://www.w3.org/1999/xlink" >
 <metadata> 
  <rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"  > 
   <rdf:Description rdf:about="#p1">
    <dc:spatial rdf:type="geo:Point" geo:iso6709="+26.2256+127.6853/"/>
    <dc:type>bank</dc:type>
   </rdf:Description>
   <rdf:Description rdf:about="#p2">
    <dc:spatial rdf:type="geo:Point" geo:iso6709="+26.2226+127.6823/"/>
    <dc:type>market</dc:type>
   </rdf:Description>
  </rdf:RDF>
 </metadata>  
 <defs>
  <g id="icon1">
    <circle cx="0.0" cy="0.0" r="10" fill="green" stroke="none" />
  </g>
  <g id="icon2">
    <rect  x="-10" y="-10" width="20" height="20" fill="blue" stroke="none"/>
  </g>
 </defs>
 <use x="50" y="70" xlink:href="#icon1" id="p1" />
 <use x="20" y="40" xlink:href="#icon2" id="p2" />
</svg>


Relationship to geographic coordinates of SVG

The following SVG content with geographic coordinate metadata

<?xml version="1.0" encoding="UTF-8" ?>
<svg 
 xmlns="http://www.w3.org/2000/svg"
 xmlns:xlink="http://www.w3.org/1999/xlink" >
 <metadata> 
  <rdf:RDF
    xmlns:crs="http://www.ogc.org/crs"
    xmlns:svg="http://www.w3.org/svg"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
    <rdf:Description> 
      <crs:CoordinateReferenceSystem rdf:resource="http://purl.org/crs/84" svg:transform="matrix(10000,0,0,-10000,-1276803,262326)" /> 
      </rdf:Description>
  </rdf:RDF>
 </metadata>  
 <defs>
  <g id="icon1">
    <circle cx="0.0" cy="0.0" r="10" fill="green" stroke="none" />
  </g>
 </defs>
 <use x="50" y="70" xlink:href="#icon1" id="p1" />
</svg>

can be interpreted as

<?xml version="1.0" encoding="UTF-8" ?>
<svg 
 xmlns="http://www.w3.org/2000/svg"
 xmlns:xlink="http://www.w3.org/1999/xlink" >
 <metadata> 
  <rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"  > 
   <geo:Point rdf:about="#p1" geo:iso6709="+26.2256+127.6853/" />
  </rdf:RDF>
 </metadata>  
 <defs>
  <g id="icon1">
    <circle cx="0.0" cy="0.0" r="10" fill="green" stroke="none" />
  </g>
 </defs>
 <use x="50" y="70" xlink:href="#icon1" id="p1" />
</svg>

since

Order of CRS:84 is (Longitude , Latitude).

matrix(a,b,c,d,e,f)
svgX = a * Longitude + c * Latitude + e
svgY = b * Longitude + d * Latitude + f

50 =  10000 * 127.6853 - 1276803
70 = -10000 *  26.2256 +  262326

A vocabulary for Spatial Network

  • Straightforward application of network structure of RDF, as geographic network
  • Make relationship with SVG Basic Shapes and it

Classes

Name Sub-class of
ug:Node geo:SpatialThing
ug:Link geo:SpatialThing,rdf:Statement

Properties for connection

Name Domain
ug:linkTo ug:Node
rdf:subject ug:Link
rdf:object ug:Link
ug:length ug:Link

Properties for inclusion

Name Domain
ug:hasPart geo:SpatialThing
ug:isPartOf geo:SpatialThing

Inference rules

The ug:Link resource is generated by the reification of the statement with ug:linkTo predicate.

1:

From

  • <#Node1> ug:linkTo <#Node2>.

Followings are inferable,

  • _:l1 a ug:Link.
  • _:l1 rdf:subject <#Node1>.
  • _:l1 rdf:object <#Node2>.

2:(Reverse of rule1)

From

  • <#Link1> a ug:Link.
  • <#Link1> rdf:subject <#Node1>.
  • <#Link1> rdf:object <#Node2>.

Followings are inferable,

  • <#Node1> ug:linkTo <#Node2>.



  • See also page 15 and 21 of [1].

Semantic Web GIS

The information system that processes the GeoMetadataOverSvg data might be called Semantic Web GIS.

  • Machine-understandable geographics information is embedded in the presentation data for geographic information as metadata little by little.
  • Typical format of the presentation data for geographic information will be SVG.
  • Typical format of the machine-runderstandable data for geographic information will be geo metadata.

Easy metadata notation for SVG

Metadata elements may increase the data size and complicate the data structure of SVG content. Furthermore, the notation of the metadata based on RDF/XML will accelerate it further. Then, the simple notation for the metadata and RDF data structure equivalent to it are examined.


<?xml version="1.0" encoding="UTF-8" ?>
<svg 
 xmlns="http://www.w3.org/2000/svg"
 xmlns:xlink="http://www.w3.org/1999/xlink"
 xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
 xmlns:dc="http://purl.org/dc/elements/1.1/" >
 <defs>
  <g id="icon1">
    <circle cx="0.0" cy="0.0" r="10" fill="green" stroke="none" />
  </g>
 </defs>
 <use id="p1" x="50" y="70" xlink:href="#icon1"
   geo:iso6709="+352139+1384339+3776/"
   dc:title="Mount Fuji" />
</svg>

is equivalent to

<?xml version="1.0" encoding="UTF-8" ?>
<svg 
 xmlns="http://www.w3.org/2000/svg"
 xmlns:xlink="http://www.w3.org/1999/xlink"
 xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" >
 <metadata> 
  <rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
    xmlns:dc="http://purl.org/dc/elements/1.1/" > 
   <rdf:Description rdf:about="#p1"
     geo:iso6709="+352139+1384339+3776/"
     dc:title="Mount Fuji" />
  </rdf:RDF>
 </metadata>  
 <defs>
  <g id="icon1">
    <circle cx="0.0" cy="0.0" r="10" fill="green" stroke="none" />
  </g>
 </defs>
 <use id="p1" x="50" y="70" xlink:href="#icon1" />
</svg>


See Also