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

the schema.org context contains a duplicate key "geo"#3339

Closed
pchampin opened this issue Jun 19, 2023 · 2 comments
Closed

the schema.org context contains a duplicate key "geo" #3339

pchampin opened this issue Jun 19, 2023 · 2 comments

Comments

@pchampin
Copy link

... and some JSON parsers are choking on this.

More precisely, the first "geo" (line 17) is used as the common namespace prefix for http://www.opengis.net/ont/geosparql#, while the second one (line 1959) is a shortcut for http://schema.org/geo .

I think the best solution is to remove line 17:

  • the other declaration of "geo" is more directly useful for schema.org users
  • nowhere in the context is the geo: prefix used
  • in all the parsers that I have tested, line 1959 overrides line 17 anyway
@pchampin
Copy link
Author

Oh, and by the way, while duplicate keys are tolerated in JSON, they are explicitly forbidden in JSON-LD:

https://www.w3.org/TR/json-ld11/#dfn-json-object

In JSON-LD the names in an object must be unique.

@RichardWallis
Copy link
Contributor

Fix will appear in next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants