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

Classes

Name

Sub-class of

Explanation

ug:Node

geo:SpatialThing

spatial Node (point, vertex) object class

ug:Link

geo:SpatialThing,rdf:Statement

spatial Link (arc, edge, span, line, chain) object class

Properties for connection

Name

Domain

Range

ug:linkTo

ug:Node

ug:Node

rdf:subject

ug:Link

ug:Node

rdf:object

ug:Link

ug:Node

ug:length

ug:Link

http://www.w3.org/2000/01/rdf-schema#Literal

Properties for inclusion

Name

Domain

Range

ug:hasPart

geo:SpatialThing

geo:SpatialThing

ug:isPartOf

geo:SpatialThing

geo:SpatialThing

Inference rules

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

1:

From

Followings are inferable,

2:(Reverse of rule1)

From

Followings are inferable,

Semantic Web GIS

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

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

GeoMetadataOverSvg (last edited 2007-12-14 11:52:21 by SatoruTakagi)