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 polygon;
|
||||
private String spatialPrecision;
|
||||
private String coordinatePrecision;
|
||||
|
||||
private transient String coordinatePrecision;
|
||||
private transient String boundingBoxMaxLat;
|
||||
private transient String boundingBoxMaxLon;
|
||||
private transient String boundingBoxMinLat;
|
||||
|
|
|
@ -150,6 +150,16 @@ class.map.specifications={\
|
|||
"substring": "no",\
|
||||
"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": {\
|
||||
"class_field": "PolygonGeoPoints",\
|
||||
"substring": "no",\
|
||||
|
|
|
@ -58,6 +58,8 @@ CONSTRUCT {
|
|||
?spatialRegionBox aoprop:boxMaxLon ?spatialLocationBBMaxLon .
|
||||
?spatialRegionBox aoprop:boxMinLat ?spatialLocationBBMinLat .
|
||||
?spatialRegionBox aoprop:boxMinLon ?spatialLocationBBMinLon .
|
||||
?spatialRegionBox aoprop:precisionUnit ?spatialPrecisionUnit .
|
||||
?spatialRegionBox aoprop:precisionValue ?spatialPrecisionValue .
|
||||
%record aoprop:spatialRegionPolygon ?spatialRegionPolygon .
|
||||
?spatialRegionPolygon aoprop:geoPoint ?geoPoint .
|
||||
?geoPoint aoprop:lat ?lat .
|
||||
|
@ -128,6 +130,10 @@ where {
|
|||
optional {
|
||||
%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 {
|
||||
|
|
|
@ -345,8 +345,8 @@ public class GraphDbReaderAndESIndexTest {
|
|||
// @Ignore
|
||||
public void uploadDimeBoundingBoxTest() throws Exception {
|
||||
boolean isRecord = true;
|
||||
String recordId = "https://ariadne-infrastructure.eu/aocat/Resource/F9398BD5-DECB-3FF5-8077-D96893D0D0C6";
|
||||
String datasource = ":aarhusdime";
|
||||
String recordId = "https://ariadne-infrastructure.eu/aocat/Resource/DIME/F9398BD5-DECB-3FF5-8077-D96893D0D0C6";
|
||||
String datasource = "aarhusdime";
|
||||
String collectionId = "test";
|
||||
readAndIndexTest(isRecord, recordId, datasource, collectionId);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue