-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
Description
In this use case, the JavaScript is directly embedded in the HTML document, and RDFa needs to be extracted once the user has performed some action.
I believe that extracting RDFa from parsed DOM has two advantages:
(1) no need for parsing the same HTML twice
(2) include input values from form elements, as entered by the user, in the extracted RDF
Currently, this use case requires something like rdfaParser.write($("body").html());, which parses the original HTML (body) string - this requires manually looking up input values and inserting them into the extracted RDF (e.g., using rdfjs/N3.js).