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

Updated to use latest version of schema.org (v26.0) #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

FahadYousafMahar
Copy link

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.

  • There are 284 new Interfaces which have been made.
  • There are 620 Interfaces which have been modified.

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.

This commit introduces changes to generate-schema.php  to allow reading
and parsing of schema.jsonld for latest release of shcema.org (v26.0).

The changes inside src/Interfaces/ are the new and updated Interfaces
for Schema Things.
There are 284 new Interfaces which have been made.
There are 620 Interfaces which have been modified.

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.
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

Successfully merging this pull request may close these issues.

1 participant