[
https://issues.apache.org/jira/browse/JENA-2254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17477450#comment-17477450
]
Øyvind Gjesdal edited comment on JENA-2254 at 1/17/22, 10:33 PM:
-----------------------------------------------------------------
Hi [~andy]
For more well known ontologies there is [https://schema.org/longitude],
[https://schema.org/latitude] {-}and
[http://www.w3.org/2003/01/geo/wgs84_pos#long] and
[http://www.w3.org/2003/01/geo/wgs84_pos#lat]{-}, which are used for sharing
Authority data in the Musems/Library/Archive section in Norway (kulturnav.org).
Edit: The second predicates are the default ones, I only didn't recognize the
prefix used in the dataset.
The less known predicates which is the only one where we currently use the
feature, uses
<[https://ontology.fylkesarkivet.no/placename#Wgs84Epsg4326Latitude]> : and
<[https://ontology.fylkesarkivet.no/placename#Wgs84Epsg4326LatitudeWgs84Epsg4326Longitude]>
Our use case now is mostly for convenience being able to use datasets as is,
without pre-processing.
was (Author: oyvind.gjesdal):
Hi [~andy]
For more well known ontologies there is https://schema.org/longitude,
https://schema.org/latitude and [http://www.w3.org/2003/01/geo/wgs84_pos#long]
and [http://www.w3.org/2003/01/geo/wgs84_pos#lat], which are both used for
sharing Authority data in the Musems/Library/Archive section in Norway
(kulturnav.org)
The less known predicates which is the only one where we currently use the
feature, uses
<https://ontology.fylkesarkivet.no/placename#Wgs84Epsg4326Latitude> : and
<https://ontology.fylkesarkivet.no/placename#Wgs84Epsg4326LatitudeWgs84Epsg4326Longitude>
Our use case now is mostly for convenience being able to use datasets as is,
without pre-processing.
> Custom long/lat spatial predicate pairs for geosparql
> -----------------------------------------------------
>
> Key: JENA-2254
> URL: https://issues.apache.org/jira/browse/JENA-2254
> Project: Apache Jena
> Issue Type: New Feature
> Components: GeoSPARQL
> Reporter: Øyvind Gjesdal
> Priority: Minor
>
> At the moment geosparql supports many of the old jena-spatial functions.
> The jena-spatial module also had custom long/lat and also custom WKT
> predicates. At the moment we still use the old jena spatial module, but when
> the assembler file for geosparql is ready in jena 4.4, I think we can switch.
> Writing an assembler which uses both jena-text and geosparql is how we've
> mostly used the jena-spatial module.
> One remaining issue we have in our data (from external datasets), is custom
> long/lat predicates. Bringing support for these would be nice. I tried to
> look at the code, and it seems the geo:long,geo:lat are translated in
> https://github.com/apache/jena/blob/main/jena-geosparql/src/main/java/org/apache/jena/geosparql/configuration/GeoSPARQLOperations.java#L749
> Would it work/be enough to look up/reuse the jena-spatial assembler
> predicates, and also loop through these pairs in the
> *convertGeoPredicates(Dataset dataset, boolean isRemoveGeoPredicate)* or
> should there be a new method to convert custom predicates?
> This is how the old assembler looks, from the jena-site:
>
> {code:java}
> # custom geo predicates for 1) Latitude/Longitude Format
> spatial:hasSpatialPredicatePairs (
> [ spatial:latitude :latitude_1 ; spatial:longitude :longitude_1 ]
> [ spatial:latitude :latitude_2 ; spatial:longitude :longitude_2 ]
> ) ; {code}
>
>
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)