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
Our implementation does traverse through the properties of an ItemInterface to look for isPartOf.
The expected value of isPartOf always should be an instance of CreativeWork, as stated in the specification: https://schema.org/isPartOf
As we do not live in an ideal world, for many URLs the value of isPartOf actually just is a string. More technically; isPartOf will get returned as ValueInterface instead of as ItemInterface.
How to fix?
As the expected value always should be an instance of CreativeWork, the interpreter / parser should not parse values of isPartOf as ValueInterface, but should change them to a ItemInterface of type CreativeWork.
Our implementation does traverse through the properties of an
ItemInterface
to look forisPartOf
.The expected value of
isPartOf
always should be an instance ofCreativeWork
, as stated in the specification: https://schema.org/isPartOfAs we do not live in an ideal world, for many URLs the value of
isPartOf
actually just is a string. More technically;isPartOf
will get returned asValueInterface
instead of asItemInterface
.How to fix?
As the expected value always should be an instance of
CreativeWork
, the interpreter / parser should not parse values ofisPartOf
asValueInterface
, but should change them to aItemInterface
of typeCreativeWork
.To support this fix; the Google Structured Data test tool does also mark these values according to the above.
Another approach; what about also adding the
isPartOf
method toItemInterface
with return value: ?ItemInterface
? Or is that JSON-LD specific?Test data
The text was updated successfully, but these errors were encountered: