Description
This part of the code supports RDFa property copying when property="rdfa:copy"
on the link
element:
rdfa-streaming-parser.js/lib/RdfaParser.ts
Lines 187 to 199 in cea018b
rdfa-streaming-parser.js/lib/RdfaParser.ts
Lines 743 to 751 in cea018b
The RDFa in HTML specification does not limit property copying ( https://www.w3.org/TR/rdfa-in-html/#implementing-property-copying ) to a particular element (HTML/SVG tag) or the property
attribute, and so rel="rdfa:copy"
on any element should also be possible.
(A simple usage is human-visible <a href="#foo" rel="rdfa:copy">foo</a>
-- yes, it is possible to achieve the equivalent with <a href="" property=""
but that's beside the point.)
I've also tested with http://rdf.greggkellogg.net/distiller and https://librdf.org/raptor/ , and they seem to give the expected result.