Strabon

changeset 1007:ac74b430e20f

added rdfs:subClassOf between the classes of Simple Features and the classes of GeoSPARQL (geo:Geometry and geo:SpatialObject)
author Babis Nikolaou <charnik@di.uoa.gr>
date Sat Apr 06 15:24:13 2013 +0300 (2013-04-06)
parents 0330ee642c7c
children ebe2d9469882
files runtime/src/main/java/eu/earthobservatory/runtime/generaldb/GeosparqlRDFHandlerBase.java
line diff
     1.1 --- a/runtime/src/main/java/eu/earthobservatory/runtime/generaldb/GeosparqlRDFHandlerBase.java	Sat Apr 06 14:45:28 2013 +0300
     1.2 +++ b/runtime/src/main/java/eu/earthobservatory/runtime/generaldb/GeosparqlRDFHandlerBase.java	Sat Apr 06 15:24:13 2013 +0300
     1.3 @@ -312,6 +312,7 @@
     1.4  	 * Materializes the RDF class hierarchy of Simple Features
     1.5  	 */
     1.6  	protected void insertSimpleFeaturesClassHierarchy() {
     1.7 +		// insert rdf:type rdfs:Class
     1.8  		writeTriple(SimpleFeatures.Geometry, TYPE, CLASS);
     1.9  		writeTriple(SimpleFeatures.Point, TYPE, CLASS);
    1.10  		writeTriple(SimpleFeatures.Curve, TYPE, CLASS);
    1.11 @@ -330,6 +331,44 @@
    1.12  		writeTriple(SimpleFeatures.MultiPolygon, TYPE, CLASS);
    1.13  		writeTriple(SimpleFeatures.MultiLineString, TYPE, CLASS);
    1.14  		
    1.15 +		// insert rdfs:subClassOf geo:Geometry
    1.16 +		writeTriple(SimpleFeatures.Geometry, SUBCLASS, GeoSPARQL.Geometry);
    1.17 +		writeTriple(SimpleFeatures.Point, SUBCLASS, GeoSPARQL.Geometry);
    1.18 +		writeTriple(SimpleFeatures.Curve, SUBCLASS, GeoSPARQL.Geometry);
    1.19 +		writeTriple(SimpleFeatures.Surface, SUBCLASS, GeoSPARQL.Geometry);
    1.20 +		writeTriple(SimpleFeatures.GeometryCollection, SUBCLASS, GeoSPARQL.Geometry);
    1.21 +		writeTriple(SimpleFeatures.LineString, SUBCLASS, GeoSPARQL.Geometry);
    1.22 +		writeTriple(SimpleFeatures.Polygon, SUBCLASS, GeoSPARQL.Geometry);
    1.23 +		writeTriple(SimpleFeatures.PolyhedralSurface, SUBCLASS, GeoSPARQL.Geometry);
    1.24 +		writeTriple(SimpleFeatures.MultiSurface, SUBCLASS, GeoSPARQL.Geometry);
    1.25 +		writeTriple(SimpleFeatures.MultiCurve, SUBCLASS, GeoSPARQL.Geometry);
    1.26 +		writeTriple(SimpleFeatures.MultiPoint, SUBCLASS, GeoSPARQL.Geometry);
    1.27 +		writeTriple(SimpleFeatures.Line, SUBCLASS, GeoSPARQL.Geometry);
    1.28 +		writeTriple(SimpleFeatures.LinearRing, SUBCLASS, GeoSPARQL.Geometry);
    1.29 +		writeTriple(SimpleFeatures.Triangle, SUBCLASS, GeoSPARQL.Geometry);
    1.30 +		writeTriple(SimpleFeatures.TIN, SUBCLASS, GeoSPARQL.Geometry);
    1.31 +		writeTriple(SimpleFeatures.MultiPolygon, SUBCLASS, GeoSPARQL.Geometry);
    1.32 +		writeTriple(SimpleFeatures.MultiLineString, SUBCLASS, GeoSPARQL.Geometry);
    1.33 +		
    1.34 +		// insert rdfs:subClassOf geo:SpatialObject
    1.35 +		writeTriple(SimpleFeatures.Geometry, SUBCLASS, GeoSPARQL.SpatialObject);
    1.36 +		writeTriple(SimpleFeatures.Point, SUBCLASS, GeoSPARQL.SpatialObject);
    1.37 +		writeTriple(SimpleFeatures.Curve, SUBCLASS, GeoSPARQL.SpatialObject);
    1.38 +		writeTriple(SimpleFeatures.Surface, SUBCLASS, GeoSPARQL.SpatialObject);
    1.39 +		writeTriple(SimpleFeatures.GeometryCollection, SUBCLASS, GeoSPARQL.SpatialObject);
    1.40 +		writeTriple(SimpleFeatures.LineString, SUBCLASS, GeoSPARQL.SpatialObject);
    1.41 +		writeTriple(SimpleFeatures.Polygon, SUBCLASS, GeoSPARQL.SpatialObject);
    1.42 +		writeTriple(SimpleFeatures.PolyhedralSurface, SUBCLASS, GeoSPARQL.SpatialObject);
    1.43 +		writeTriple(SimpleFeatures.MultiSurface, SUBCLASS, GeoSPARQL.SpatialObject);
    1.44 +		writeTriple(SimpleFeatures.MultiCurve, SUBCLASS, GeoSPARQL.SpatialObject);
    1.45 +		writeTriple(SimpleFeatures.MultiPoint, SUBCLASS, GeoSPARQL.SpatialObject);
    1.46 +		writeTriple(SimpleFeatures.Line, SUBCLASS, GeoSPARQL.SpatialObject);
    1.47 +		writeTriple(SimpleFeatures.LinearRing, SUBCLASS, GeoSPARQL.SpatialObject);
    1.48 +		writeTriple(SimpleFeatures.Triangle, SUBCLASS, GeoSPARQL.SpatialObject);
    1.49 +		writeTriple(SimpleFeatures.TIN, SUBCLASS, GeoSPARQL.SpatialObject);
    1.50 +		writeTriple(SimpleFeatures.MultiPolygon, SUBCLASS, GeoSPARQL.SpatialObject);
    1.51 +		writeTriple(SimpleFeatures.MultiLineString, SUBCLASS, GeoSPARQL.SpatialObject);
    1.52 +		
    1.53  		// first level 
    1.54  		writeTriple(SimpleFeatures.Point, SUBCLASS, SimpleFeatures.Geometry);
    1.55  		writeTriple(SimpleFeatures.Curve, SUBCLASS, SimpleFeatures.Geometry);