Open lechten opened 3 years ago
Hello, lechten.
Are you sure that your snipped is valid? Personally, I am no expert with RDFa. I changed your snippet to the following, which works (using schema.org as the standard vocabulary).
<div vocab="http://schema.org/" about="https://example.org/index.html" typeof="LearningResource">
<a rel="hasPart" href="a-part.html">A learning resource as part.</a>
</div>
I guess this works for the fellas working only with schema.org. You would have to search yourself how to correctly define multiple vocabularies in RDFa if you really need it.
cheers, Omar
Hi Omar, many thanks for your quick reply.
I hope that this is valid. The tools https://www.w3.org/2007/08/pyRdfa/#distill_by_input, http://linter.structured-data.org/, and http://rdfa.info/play/ extract a-part.html as URI for the part.
I use multiple vocabularies in the wild...
According to https://semantify.it/sdo-check/, RDFa is supported. When checking HTML with RDFa, I get this error:
With RDFa, I use
prefix
, not@context
, e.g.:Can this be validated somehow?