# 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
```rust
use graph_rdfa_processor::RdfaGraph;
let html = r#"
"#;
let base = "http://example.com"
let well_known_prefix = Some("http://example.org/.well_known");
RdfaGraph::parse_str(html, base, well_known_prefix).unwrap()
```
```js
```
- covers:
- [RDFa 1.1 Primer - Third Edition](https://www.w3.org/TR/rdfa-primer/)
- [RDFa Core](https://www.w3.org/TR/rdfa-core/)
- [Earl-Reports](https://rdfa.info/earl-reports/#RDFa-rdfa1.1-tests-for-html5)
- used [RDFa/Play](https://rdfa.info/play/) for comparing.
- [Demo](https://nbittich.github.io/graph-rdfa-processor/)
### 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.