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

Add support for JSON-LD aggregate types (such as @list and @graph) #147

mmocny opened this issue Aug 19, 2019 · 0 comments


Copy link

commented Aug 19, 2019

Today, we really only support JSON list types ([]), both at the root of any script we find, or as values of any property. E.g.:

<script type=application/ld+json>
[ // List at the root
  { ... }, // ARArtifact1
  { ... }  // ARArtifact2

However, aggregate listings at the root seem to commonly be published this way:

<script type=application/ld+json>
  "@graph": [
    { ... }, // ARArtifact1
    { ... }  // ARArtifact2

I've not investigated yet:

  • Nuanced differences between @list and @graph
  • If raw list ([]) at the root is invalid json-ld
  • If @list and @graph can appear anywhere that a raw list can (any prop), or just at the root
  • If there are yet more aggregate types beyond @list and @graph
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.