Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ptsefton opened this issue Jun 22, 2023 · 5 comments
Labels
use-case A (potential) use-case for ROLite creation, consumption or integration
Milestone

Comments

@ptsefton
Copy link
Contributor

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 ptsefton added the use-case A (potential) use-case for ROLite creation, consumption or integration label Jun 22, 2023
@ptsefton
Copy link
Contributor Author

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)"
 },

@marc-portier
Copy link
Contributor

marc-portier commented Jun 22, 2023

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

@ptsefton
Copy link
Contributor Author

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

@stain
Copy link
Contributor

stain commented Jul 27, 2023

Ping @rapw3k on checking on Earth Sciences approach

stain added a commit that referenced this issue Apr 25, 2024
Trying again, how to do geolocation using asWKT -- addresses #266
@stain
Copy link
Contributor

stain commented May 23, 2024

Implemented by #288 that overrides #287.

@stain stain closed this as completed May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
use-case A (potential) use-case for ROLite creation, consumption or integration
Projects
RO-Crate specifications
  
Awaiting triage
Development

No branches or pull requests

3 participants