shgysk8zer0 / api-specs

Specifications for the microdata API (unnamed)
1 stars 0 forks source link

How can properties contain multiple objects #4

Open shgysk8zer0 opened 7 years ago

shgysk8zer0 commented 7 years ago

Please check ([x]) all of the following

All other issues will be closed as invalid

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 commented 7 years ago

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!