-
Notifications
You must be signed in to change notification settings - Fork 179
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
RFC: JSON-LD / Schema.org mapping #378
Comments
Great work. Will dig deeper into it next week. One quick note: If the license field is set to proprietary the url from the links should be taken. |
Good call, thanks. I've updated the mapping above as well as STAC Browser. |
Great! Another idea I had: The The |
I've mapped |
If we're interested in natively supporting json-ld in the STAC JSON output: |
Is GeoJSON-LD compatible with what Google is asking for? |
Good question. Also, are they looking for JSON-LD only in HTML files? |
I don't think so. The docs refer to https://schema.org/GeoShape. It'd be nice if they supported both though (and maybe they do).
Yes, in the body of |
Discussed on the call on April 22. It isn't clear exactly how to put this into the spec, as it is just one implementation for now. |
We always claim in presentations that "Portals > Google", so I feel this is quite an important point that we should add to the repo at some point and make it part of the releases. Maybe it could just start as an extension, maybe an NPM script, that just easily converts STAC repos or files to JSON-LD. |
Apologies for cross-posting here from another related issue to keep track of this development too. I have experience with ontologies and linked-data solutions, having worked with the ontology group at Stanford and the Stanford library on several linked-data projects. However, there is a lot of work to be done on GIS ontologies and linked-data for catalog systems. The technology that is most aligned with STAC is obviously JSON-LD, but defining the context for STAC needs some work. I'm generally open to interests and discussions about EOS metadata standards (CF) and GIS metadata as ontologies and linked data. Related projects:
Also, with regard to linking data with publications:
|
https://ai.google/research/people/NatalyaNoy is the person to contact at Google for more insights and related research projects on dataset discovery. |
Relevant search for any 'Geo' concepts in schema.org: I don't know specifically if there is any explicit alignment or mapping between schema.org and geojson-ld, but it is always possible to publish using any relevant ontology. If they are aligned, it makes it easier.
If not, it might require separate documents for each of schema.org and geojson-ld. AFAICT, there is no explicit identification of geojson-ld concepts with a broader ontology in the docs at http://geojson.org/geojson-ld/vocab.html - maybe it's operating like a vocabulary rather than an ontology? It's flat - http://geojson.org/geojson-ld/vocab.rdf See also:
@gkellogg - any thoughts on json-ld recommendations for Geo/GIS? |
Note that GeoJSON-LD notes problems with JSON-LD 1.0 for representing coordinates which are defined using lists of lists, which is unsupported in JSON-LD 1.0. JSON-LD 1.1 does support lists of lists. But, JSON-LD 1.1 is not yet a recommendation, although the feature is widely implemented. |
We should throw this in a best practice document for 1.0 |
I'll take this over and update the schema.org mapping as I'll want to make this available for each Collection on STAC Index. |
scherma.org is implemented in STAC Browser, we can further discuss it there: |
Thanks @m-mohr ! Just a note schema.org is consumed by many other tools than search engines, and it would be really desirable for these communities to have a simple utility that goes from stac JSON -> schema JSON without websites / HTML involved. (e.g. see https://github.com/ESIPFed/science-on-schema.org). happy to continue the discussion over on stac-browser if that's best, but don't want to be dragging in issues that are of little interest to the browser part of stac-browser.... |
@cboettig No one except for STAC Browser came up with an implementation in the last years afaik, so we thought it's of little interest (last comment: 2020) and closed here. Having a standalone mapping implementation would be great though, but it's likely nothing that will live in this repo, but in other places, e.g. stac-utils, stac-extensions or so. Feel free to take over the work and if there's a mapping separate of STAC Browser, I'm happy to adopt it. :-) (There are some open questions anyway, e.g. GDS doesn't use the DataCatalog it seems?) |
Part of GeoDCAT work is defining JSON-LD in mappings from OGC API Records. A logical extension would be be a GeoDCAT-STAC profile with context to map STAC elements to GeoDCAT. We would seek to inform GeoDCAT design with the elements that are of general utility and cannot be mapped to DCAT already. |
Add JSON-LD support - see radiantearth/stac-spec#378
As part of my work on STAC Browser, I've just merged preliminary JSON-LD support intended to facilitate indexing, searching, and display by Google Dataset Search.
I've tried to follow their guidelines, mapping
Catalog
s andCollection
s to schema.orgDataCatalog
s andItem
s toDatasets
.Catalog / Collection → DataCatalog
providers
are mapped according toroles
(when multiple roles are specified, the provider is duplicated):licensor
→copyrightHolder
producer
→producer
processor
→contributor
host
→provider
and rendered as:
Item → Dataset
This implementation is live (with pre-rendered HTML) at https://planet.stac.cloud. Hopefully in the coming days it will be better indexed by Google (I've submitted the sitemap), including by Dataset Search, at which point we can see how well this mapping does at being rendered.
Meanwhile, the OpenLink Structured Data Sniffer extension for Chrome will extract JSON-LD to allow inspection.
Thoughts?
Refs #285
The text was updated successfully, but these errors were encountered: