added precision information to spatial data
This commit is contained in:
parent
25a6433809
commit
0693645c68
|
@ -14,8 +14,8 @@ public class Spatial {
|
||||||
private String boundingbox;
|
private String boundingbox;
|
||||||
private String polygon;
|
private String polygon;
|
||||||
private String spatialPrecision;
|
private String spatialPrecision;
|
||||||
|
private String coordinatePrecision;
|
||||||
|
|
||||||
private transient String coordinatePrecision;
|
|
||||||
private transient String boundingBoxMaxLat;
|
private transient String boundingBoxMaxLat;
|
||||||
private transient String boundingBoxMaxLon;
|
private transient String boundingBoxMaxLon;
|
||||||
private transient String boundingBoxMinLat;
|
private transient String boundingBoxMinLat;
|
||||||
|
|
|
@ -150,6 +150,16 @@ class.map.specifications={\
|
||||||
"substring": "no",\
|
"substring": "no",\
|
||||||
"element_type": "java.lang.String"\
|
"element_type": "java.lang.String"\
|
||||||
},\
|
},\
|
||||||
|
"https://www.ariadne-infrastructure.eu/property/precisionUnit": {\
|
||||||
|
"class_field": "SpatialPrecision",\
|
||||||
|
"substring": "no",\
|
||||||
|
"element_type": "java.lang.String"\
|
||||||
|
},\
|
||||||
|
"https://www.ariadne-infrastructure.eu/property/precisionValue": {\
|
||||||
|
"class_field": "CoordinatePrecision",\
|
||||||
|
"substring": "no",\
|
||||||
|
"element_type": "java.lang.String"\
|
||||||
|
},\
|
||||||
"https://www.ariadne-infrastructure.eu/property/geoPoint": {\
|
"https://www.ariadne-infrastructure.eu/property/geoPoint": {\
|
||||||
"class_field": "PolygonGeoPoints",\
|
"class_field": "PolygonGeoPoints",\
|
||||||
"substring": "no",\
|
"substring": "no",\
|
||||||
|
|
|
@ -58,6 +58,8 @@ CONSTRUCT {
|
||||||
?spatialRegionBox aoprop:boxMaxLon ?spatialLocationBBMaxLon .
|
?spatialRegionBox aoprop:boxMaxLon ?spatialLocationBBMaxLon .
|
||||||
?spatialRegionBox aoprop:boxMinLat ?spatialLocationBBMinLat .
|
?spatialRegionBox aoprop:boxMinLat ?spatialLocationBBMinLat .
|
||||||
?spatialRegionBox aoprop:boxMinLon ?spatialLocationBBMinLon .
|
?spatialRegionBox aoprop:boxMinLon ?spatialLocationBBMinLon .
|
||||||
|
?spatialRegionBox aoprop:precisionUnit ?spatialPrecisionUnit .
|
||||||
|
?spatialRegionBox aoprop:precisionValue ?spatialPrecisionValue .
|
||||||
%record aoprop:spatialRegionPolygon ?spatialRegionPolygon .
|
%record aoprop:spatialRegionPolygon ?spatialRegionPolygon .
|
||||||
?spatialRegionPolygon aoprop:geoPoint ?geoPoint .
|
?spatialRegionPolygon aoprop:geoPoint ?geoPoint .
|
||||||
?geoPoint aoprop:lat ?lat .
|
?geoPoint aoprop:lat ?lat .
|
||||||
|
@ -128,6 +130,10 @@ where {
|
||||||
optional {
|
optional {
|
||||||
%record aocat:has_visual_component ?visualComponent .
|
%record aocat:has_visual_component ?visualComponent .
|
||||||
}
|
}
|
||||||
|
optional {
|
||||||
|
?record aocat:has_spatial_precision / aocat:has_unit / skos:prefLabel ?spatialPrecisionUnit .
|
||||||
|
?record aocat:has_spatial_precision / aocat:has_value ?spatialPrecisionValue .
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
optional {
|
optional {
|
||||||
|
|
|
@ -345,8 +345,8 @@ public class GraphDbReaderAndESIndexTest {
|
||||||
// @Ignore
|
// @Ignore
|
||||||
public void uploadDimeBoundingBoxTest() throws Exception {
|
public void uploadDimeBoundingBoxTest() throws Exception {
|
||||||
boolean isRecord = true;
|
boolean isRecord = true;
|
||||||
String recordId = "https://ariadne-infrastructure.eu/aocat/Resource/F9398BD5-DECB-3FF5-8077-D96893D0D0C6";
|
String recordId = "https://ariadne-infrastructure.eu/aocat/Resource/DIME/F9398BD5-DECB-3FF5-8077-D96893D0D0C6";
|
||||||
String datasource = ":aarhusdime";
|
String datasource = "aarhusdime";
|
||||||
String collectionId = "test";
|
String collectionId = "test";
|
||||||
readAndIndexTest(isRecord, recordId, datasource, collectionId);
|
readAndIndexTest(isRecord, recordId, datasource, collectionId);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue