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

How can properties contain multiple objects #4

Open
2 tasks done
shgysk8zer0 opened this issue Aug 16, 2017 · 1 comment
Open
2 tasks done

How can properties contain multiple objects #4

shgysk8zer0 opened this issue Aug 16, 2017 · 1 comment

Comments

@shgysk8zer0
Copy link
Owner

shgysk8zer0 commented Aug 16, 2017

Please check ([x]) all of the following

All other issues will be closed as invalid

  • My issue is with the specification, not with the vocabulary or schemas
  • My issue is not with any particular language or implementation

Describe your issue

In simplest forms, complex properties of an object may be stored as the ID of the object that they
reference. This does not work, however, if a Person has multiple ImageObjects associated. Could split & map, but that is not very efficient, and an alternative would be preferable.

Do you have sample markup & data?

{
    "@type": "Person",
    "@context": "http://schema.org",
    "image": [{}, {}]
}
<div itemtype="" itemscope="">

</div>

If you have any suggestions, please share:

Perhaps a database management system other than MySQL would handle this better. It is my
understanding that PostgreSQL is better for this sort of thing, though I've never used it myself.

@shgysk8zer0
Copy link
Owner Author

So far, Postgre looks like it will be a whole lot easier to do database setup because it has table inheritance, so;

CREATE TABLE `Person` (...) INHERITS `Thing`;
-- This saves so much headache!

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

No branches or pull requests

1 participant