Skip to content

Extracting RDFa from existing HTML DOM #29

@william-vw

Description

@william-vw

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions