brick / schema

Schema.org library for PHP
MIT License
49 stars 6 forks source link

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

Open FahadYousafMahar opened 3 months ago

FahadYousafMahar commented 3 months ago

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.