geopython / pygeoapi

pygeoapi is a Python server implementation of the OGC API suite of standards. The project emerged as part of the next generation OGC API efforts in 2018 and provides the capability for organizations to deploy a RESTful OGC API endpoint using OpenAPI, GeoJSON, and HTML. pygeoapi is open source and released under an MIT license.
https://pygeoapi.io
MIT License
483 stars 259 forks source link

google does not index datasets anymore #877

Closed pvgenuchten closed 5 months ago

pvgenuchten commented 2 years ago

i noticed google dataset search does not list any datasets from demo.pygeoapi.io anymore

i wonder if it is related to the fact that rich snippets test finds the json representation

I assume, in case no accept header is given, the json representation is returned by pygeoapi, in my opinion we should return the html representation if no accept header is given (to support this case)

image

ksonda commented 2 years ago

Can't default mimetype be set in server config? I can see some servers being optimized for crawling vs. say, serving GeoJSON to R/Python clients. But I don't know how to support default content negotiation for these different cases if Google isn't going to bother to request HTML or JSON-LD before other types.

pvgenuchten commented 2 years ago

The json-ld for search engine is embedded in the html response. No need to request json-ld specifically

ksonda commented 2 years ago

I tested using this config https://github.com/ksonda/global-river-runner/blob/main/deploy/cloud/latest/pygeoapi.config.yml

(server mimetype set to text/html) and google does indeed retrieve the json response by default still.

pvgenuchten commented 2 years ago

see #902

github-actions[bot] commented 6 months ago

As per RFC4, this Issue has been inactive for 90 days. In order to manage maintenance burden, it will be automatically closed in 7 days.

github-actions[bot] commented 5 months ago

As per RFC4, this Issue has been closed due to there being no activity for more than 90 days.