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

Getting type by schema.org hierarchy? #42

Open
Sarke opened this issue Nov 6, 2019 · 0 comments
Open

Getting type by schema.org hierarchy? #42

Sarke opened this issue Nov 6, 2019 · 0 comments

Comments

@Sarke
Copy link
Contributor

Sarke commented Nov 6, 2019

Is there's a way to select items based on their schema.org inheritance?

One example from the docs:

$event = $item->getFirstItem(
    new Iri('http://microformats.org/profile/', 'h-event'),
    new Iri('http://schema.org/', 'Event')
);

Now say the schema.org Event in question is actually listed as a Festival or BusinessEvent (or whatever). They satisfy all the properties of the Event parent type, but they are not matched by micrometa.

Is there a way to do this without having to list all the possible sub-types?

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