ro-crate icon indicating copy to clipboard operation
ro-crate copied to clipboard

Use Case: As a profile designer I want to use WKT for geo data to avoid ambiguity

Open ptsefton opened this issue 2 years ago • 4 comments
trafficstars

Assumption: should use schema:geo to point to an entity. But what should the entity look like?

Here's one way:

{ "@type": "Place", "name" : "Place 1", "geo": {"@id": "#point1"} },

{ "@id": "#point1", "@type": "PropertyValue", "propertyID": "http://www.opengis.net/ont/geosparql#wktLiteral", "value": "POINT(-76 -18)", }

ptsefton avatar Jun 22 '23 20:06 ptsefton

Doing it like this will likely break our libraries which don't know how to deal with literals like this:


 "geosparql:asWKT": {
  "@type": "http://www.opengis.net/ont/geosparql#wktLiteral",
"@value": "POINT(-76 -18)"
 },


ptsefton avatar Jun 22 '23 20:06 ptsefton

Just checked how we ended up using these inside the LOD publications of https://MarineRegions.org/

From there 2 possible tips:

  1. declare the @type of these property once in the @context, so not to repeat it on every instance
     "@context": { 
         "gsp": "http://www.opengis.net/ont/geosparql#"
         "gsp:asWKT": { 
              "@type": "gsp:wktLiteral"
    
  2. and then on the values you use it also include a <URI> to depict the chosen CSR (projection system) at the start of the WKT literal:
        "gsp:asWKT": "<http://www.opengis.net/def/crs/OGC/1.3/CRS84> POINT(-76 -18)"
    

you can check this online from the source for e.g.

curl -L --url "http://marineregions.org/mrgid/2196" -H "Accept: application/ld+json"  | python -m json.tool

HTH

marc-portier avatar Jun 22 '23 21:06 marc-portier

@stain can you add this to the @context - I will add something to the text about how to use it for ContextualEntities

ptsefton avatar Jul 27 '23 20:07 ptsefton

Ping @rapw3k on checking on Earth Sciences approach

stain avatar Jul 27 '23 20:07 stain

Implemented by #288 that overrides #287.

stain avatar May 23 '24 21:05 stain