RDFa processor library (WIP)
Rust and wasm library to extract rdf statements (in n-triples format) from an html file based on rdfa annotations.
Examples
use RdfaGraph;
let html = r#"
<div prefix="foaf: http://xmlns.com/foaf/0.1/" about="http://www.example.org/#somebody" rel="foaf:knows">
<p about="http://danbri.org/foaf.rdf#danbri" typeof="foaf:Person" property="foaf:name">Dan Brickley</p>
</div>
"#;
let base = "http://example.com"
let well_known_prefix = Some;
parse_str.unwrap
-
covers:
-
used RDFa/Play for comparing.
WIP
The plan is to make as much tests as possible, and fix the bugs along the way.
KNOWN ISSUES
- White space not preserved. See test 0329.