You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into this problem with the New York Times. They have the NewsArticle and the NewsMediaOrganization in separate tags, and because of the way Jkphl\Micrometa\Infrastructure\Parser\JsonLD parses them separately with ML\JsonLD\JsonLD, the latter is not able to resolve the references across tags, (for example in this case the publication).
My solution was to rewrite Jkphl\Micrometa\Infrastructure\Parser\JsonLD::parseDom() to collect the schema in one root node, and send that off to ML\JsonLD\JsonLD once.
I don't have time to do a PR tonight, but I will eventually.
The text was updated successfully, but these errors were encountered:
I ran into this problem with the New York Times. They have the NewsArticle and the NewsMediaOrganization in separate tags, and because of the way
Jkphl\Micrometa\Infrastructure\Parser\JsonLD
parses them separately withML\JsonLD\JsonLD
, the latter is not able to resolve the references across tags, (for example in this case the publication).My solution was to rewrite
Jkphl\Micrometa\Infrastructure\Parser\JsonLD::parseDom()
to collect the schema in one root node, and send that off toML\JsonLD\JsonLD
once.I don't have time to do a PR tonight, but I will eventually.
The text was updated successfully, but these errors were encountered: