|Did you know ...||Search Documentation:|
|library(semweb/rdfa): Extract RDF from an HTML or XML DOM|
This module implements extraction of RDFa triples from parsed XML or HTML documents. It has two interfaces: read_rdfa/3 to read triples from some input (stream, file, URL) and xml_rdfa/3 to extract triples from an HTML or XML document that is already parsed with load_html/3 or load_xml/3.
rdf(S,P,O)triples extracted from Input. Input is either a stream, a file name, a URL referencing a file name or a URL that is valid for http_open/3. Options are passed to open/4, http_open/3 and xml_rdfa/3. If no base is provided in Options, a base is deduced from Input.
rdf(S,P,O)terms extracted from DOM according to the RDFa specification. Options processed:
library(semweb/rdfa)as loader for HTML RDFa files.