Skip to content

duplicated schema-org annotation & parsing failure #574

@pvgenuchten

Description

@pvgenuchten

Some observations when validating https://demo.pygeoapi.io/master/collections/lakes in https://search.google.com/structured-data/testing-tool

Duplicated annotation
The pygeoapi templates still have microdata 'itemscope' attributes, combined with the embedded json-ld, it leads to duplicated parsing in validation tools. validator extracts the same dataset information twice

image

Parse error

The embedded json-ld throws a parse error on

 "@context": "https://schema.org/docs/jsonldcontext.jsonld",

error:

There was an invalid type in your JSON-LD.

This results in the object described being a:
image

In other implementations I notice this string seems to work fine:

"@context": "http://schema.org/",

In that case the type is recognized as:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions