Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extracting RDFa from existing HTML DOM #29

Open
william-vw opened this issue Jun 16, 2021 · 0 comments
Open

Extracting RDFa from existing HTML DOM #29

william-vw opened this issue Jun 16, 2021 · 0 comments
Labels

Comments

@william-vw
Copy link

william-vw commented Jun 16, 2021

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants