Coder Social home page Coder Social logo

Comments (16)

andrea-perego avatar andrea-perego commented on August 17, 2024 1

Please give your feedback on the following proposal:

PROPOSED RESOLUTION: Adopt in GeoDCAT-AP 2 the GeoJSON datatype defined in the current draft of the new version of GeoSPARQL, and deprecate the use of the GeoJSON media type URI for GeoJSON literals supported so far in GeoDCAT-AP.

from geodcat-ap.

andrea-perego avatar andrea-perego commented on August 17, 2024 1

Thanks for raising this issue, @AntoRot .

For the GeoJSON datatype we could follow the same approach used for deprecated classes and properties, i.e., although they are replaced by other ones, they will still be supported for backward compatibility. Such support could be phased out in future versions of GeoDCAT-AP, if this can be done safely.

Moreover, we can take an action, and report this revision to the CKAN community.

Would this be enough to address this issue?

from geodcat-ap.

andrea-perego avatar andrea-perego commented on August 17, 2024 1

I have create a draft PR along these lines: #58

The main changes concern §B.6.10 and §B.6.10.1.

In particular:

The following text has been added to the NOTE at the beginning of §B.6.10:

  • For GeoJSON [RFC7946] literals, the GeoJSON IANA media type URI used until [GeoDCAT-AP-20160802] is replaced by datatype gsp:geoJSONLiteral, defined in the current draft of the new version of GeoSPARQL [GeoSPARQL11].

The following text has been added at the end of §B.6.10.1, right before Example 35:

As geometries may be provided in multiple encodings, the corresponding datatype SHOULD be always specified to ensure that the geometry literal is correctly interpreted.

For GML and WKT, the [GeoSPARQL] datatypes gsp:gmlLiteral and gsp:wktLiteral, respectively, MUST be used.

For GeoJSON [RFC7946], datatype gsp:geoJSONLiteral, defined in the current draft of the new version of GeoSPARQL [GeoSPARQL11], SHOULD be used.

For the other geometry encodings, no datatype is currently available. Therefore, their interoperability is not ensured.

NOTE
Until [GeoDCAT-AP-20160802], the recommended solution to specify the datatype for GeoJSON literals was to use the following URI from the IANA Media Types registry [IANA-MEDIA-TYPES]:

https://www.iana.org/assignments/media-types/application/vnd.geo+json

This solution, intentionally meant to be provisional (see Issue #4), is deprecated starting from this version of GeoDCAT-AP in favour of gsp:geoJSONLiteral. It will still be supported for backward compatibility with legacy metadata and applications, but it may be phased out in future versions of GeoDCAT-AP.

Would this work?

from geodcat-ap.

akuckartz avatar akuckartz commented on August 17, 2024

I am not sure if that is relevant here, but there is some hope that JSON-LD 1.1 can be a basis for GeoJSON-LD.

from geodcat-ap.

bertvannuffelen avatar bertvannuffelen commented on August 17, 2024

Also note there are now 2 versions of geoJSON. Can these serializations be distinguished?

from geodcat-ap.

dr-shorthair avatar dr-shorthair commented on August 17, 2024

Also see https://w3c.github.io/json-ld-syntax/#the-rdf-json-datatype

from geodcat-ap.

andrea-perego avatar andrea-perego commented on August 17, 2024

@akuckartz said:

I am not sure if that is relevant here, but there is some hope that JSON-LD 1.1 can be a basis for GeoJSON-LD.

Thanks for the heads-up . This could be an additional geometry encoding to be supported.

However, I think it should be kept separate from a "plain" GeoJSON literal encoding, for which the GeoDCAT-AP WG had some use cases in mind.

from geodcat-ap.

andrea-perego avatar andrea-perego commented on August 17, 2024

@bertvannuffelen said:

Also note there are now 2 versions of geoJSON. Can these serializations be distinguished?

This is just my personal view, but I think the reference one should be the latest - i.e., the one standardised in RFC 7946 (https://tools.ietf.org/html/rfc7946) - which supersedes the original one, and it is already being supported in widely used tools (as PostGIS).

Said that, there's a possible issue in the IETF version of GeoJSON, as pointed out in #6, but IMO it can be sorted out.

from geodcat-ap.

andrea-perego avatar andrea-perego commented on August 17, 2024

@dr-shorthair said:

Also see https://w3c.github.io/json-ld-syntax/#the-rdf-json-datatype

Thanks for the pointer. This would indeed fit better than the GeoJSON media type URI. However, I wonder whether there may be some possible issues on using the rdf:JSON datatype for GeoJSON literals, since there exist other JSON-based geometry encodings - as the ones used in ArcGIS (https://developers.arcgis.com/documentation/common-data-types/geometry-objects.htm).

from geodcat-ap.

andrea-perego avatar andrea-perego commented on August 17, 2024

Noting there's work under way in the new version of GeoSPARQL - see:

The current proposal defines the GeoJSON literal datatype as follows:

@prefix : <http://www.opengis.net/ont/geosparql#> .

:geoJSONLiteral a rdfs:Datatype ;
	dc:contributor "Timo Homburg" ;
	dc:creator "OGC GeoSPARQL 2.0 Standard Working Group" ;
	dc:date "2020-10-30"^^xsd:date ;
	dc:description """
      A GeoJSON serialization of a geometry object.
    """@en ;
	rdfs:comment """
      A GeoJSON serialization of a geometry object.
    """@en ;
	rdfs:seeAlso <https://tools.ietf.org/html/rfc7946> .
	rdfs:isDefinedBy <http://www.opengis.net/ont/geosparql> , <http://www.opengis.net/spec/geosparql/1.1> ;
	rdfs:label "GeoJSON Literal"@en ;
	skos:definition """
      A GeoJSON serialization of a geometry object.
    """@en ;
	skos:prefLabel "GeoJSON Literal"@en .

See also the relevant section in the GeoSPARQL 1.1 draft (pull request approved, but not yet merged).

from geodcat-ap.

andrea-perego avatar andrea-perego commented on August 17, 2024

Noting there's work under way in the new version of GeoSPARQL - see:

PR opengeospatial/ogc-geosparql#48 has been eventually merged.

Should we already adopt this solution, or wait until the new version of GeoSPARQL is officially out?

from geodcat-ap.

andrea-perego avatar andrea-perego commented on August 17, 2024

@akuckartz , do you have any concern on the proposal?

from geodcat-ap.

akuckartz avatar akuckartz commented on August 17, 2024

No, I only marked the comment to signal that I "should" perhaps look at this closer ;-) I do not know if I like GeoJSON.

from geodcat-ap.

AntoRot avatar AntoRot commented on August 17, 2024

@andrea-perego
I'd agree with your proposed resolution, but we should take into account that the IANA URI for GeoJSON literals is still used e.g. in CKAN for the dct:spatial property expressed as geometry.

Consequently, deprecating the use of the GeoJSON media type URI for GeoJSON literals will affect the compability with the CKAN model for all data providers who use that tool. Unless CKAN community will align the RDF DCAT to CKAN mapping by including the new GeoJSON datatype being adopted in GeoDCAT-AP 2.0.

from geodcat-ap.

andrea-perego avatar andrea-perego commented on August 17, 2024

Thanks, @AntoRot .

Unless there are any objections, I will merge PR #58 and close this issue.

from geodcat-ap.

AntoRot avatar AntoRot commented on August 17, 2024

No objections from my side. Thanks.

from geodcat-ap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.