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

Support arrays: example 1 article embeds N comments #41

Closed
boly38 opened this issue Jul 3, 2018 · 1 comment
Closed

Support arrays: example 1 article embeds N comments #41

boly38 opened this issue Jul 3, 2018 · 1 comment

Comments

@boly38
Copy link
Contributor

boly38 commented Jul 3, 2018

Hi

Using LD-JSON, it should be possible to define multiple times the same entity type on a given things.
For example, an Article could includes multiples "comments".
(need to confirm that point)

So out of error from me, mean that in this use case, 'comment' will be an array of objects ("Comment" type) and not a single entity. I think the library doens't allow us to do that?

I saw "breadcrumb" sample, but that seems to be a specific list example.

And as today, "field name" is used to work with ContextTypes attributes, so it will not be easy to implement?

Maybe should we use/implement @graph (src )?

The question is:

  • how to define an article with multiple comments using Torann/json-ld ?
@boly38
Copy link
Contributor Author

boly38 commented Jul 5, 2018

In addition, I post on SO a question about that point, and unor give me an excellent @graph based example: cf representing-repeating-atttributes-in-json-ld

  • seems MusicAlbumTest already does the trick!
  • read MusicAbstractContext to understand how to repeat track

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

1 participant