Updated to use latest version of schema.org (v26.0) #8
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit introduces changes to generate-schema.php to allow reading and parsing of schema.jsonld for latest release of schema.org (v26.0).
The changes inside src/Interfaces/ are the new and updated Interfaces for Schema Things.
Background for this commit:
I was working on a scraping function in one of our apps, whose purpose was to scrape a any given url and to create a preview card using the meta tags and schema.org json.
I encountered some websites of News Media Organizations whose data wasn't getting properly parsed by this package. When I dug deeper into the cause, I learnt that this package didn't have interface for new schema types and many old interfaces had obsolete properties. Therefore, I updated the script and used it on latest schema.jsonld
Now, the package will be parsing all new schema types.