{"id":19699252,"url":"https://github.com/nbittich/graph-rdfa-processor","last_synced_at":"2026-04-08T14:02:03.305Z","repository":{"id":204348988,"uuid":"711112610","full_name":"nbittich/graph-rdfa-processor","owner":"nbittich","description":"RDFa processor library","archived":false,"fork":false,"pushed_at":"2025-10-05T10:20:07.000Z","size":1987,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-05T10:20:43.016Z","etag":null,"topics":["rdfa","rdfa-extractor","rust","semantic-web"],"latest_commit_sha":null,"homepage":"https://nbittich.github.io/graph-rdfa-processor/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nbittich.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-10-28T08:52:13.000Z","updated_at":"2025-10-05T10:20:11.000Z","dependencies_parsed_at":"2025-05-07T08:10:17.812Z","dependency_job_id":"f9aeb6a4-25ac-40f7-8522-0f1dc89b6b80","html_url":"https://github.com/nbittich/graph-rdfa-processor","commit_stats":null,"previous_names":["nbittich/graph-rdfa-processor"],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/nbittich/graph-rdfa-processor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbittich%2Fgraph-rdfa-processor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbittich%2Fgraph-rdfa-processor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbittich%2Fgraph-rdfa-processor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbittich%2Fgraph-rdfa-processor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nbittich","download_url":"https://codeload.github.com/nbittich/graph-rdfa-processor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nbittich%2Fgraph-rdfa-processor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31558386,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T10:21:54.569Z","status":"ssl_error","status_checked_at":"2026-04-08T10:21:38.171Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rdfa","rdfa-extractor","rust","semantic-web"],"created_at":"2024-11-11T20:02:03.485Z","updated_at":"2026-04-08T14:02:03.267Z","avatar_url":"https://github.com/nbittich.png","language":"Rust","readme":"# RDFa processor library (WIP)\n\nRust and wasm library to extract rdf statements (in n-triples format) from an html file\nbased on rdfa annotations.\n\n## Examples\n\n### Rust usage:\n\n```rust\nuse graph_rdfa_processor::RdfaGraph;\n    let html = r#\"\n    \u003cdiv prefix=\"foaf: http://xmlns.com/foaf/0.1/\" about=\"http://www.example.org/#somebody\" rel=\"foaf:knows\"\u003e\n        \u003cp about=\"http://danbri.org/foaf.rdf#danbri\" typeof=\"foaf:Person\" property=\"foaf:name\"\u003eDan Brickley\u003c/p\u003e\n\t  \u003c/div\u003e\n    \"#;\n    let base = \"http://example.com\";\n    let well_known_prefix = Some(\"http://example.org/.well_known\");\n\n    RdfaGraph::parse_str(html, base, well_known_prefix).unwrap()\n\n```\n\n### Node usage:\n\n`npm i @nbittich/rdfa-wasm`\n\n```js\nconst { html_to_rdfa } = require(\"@nbittich/rdfa-wasm\");\n\nconst example = `\n           \n\u003c!doctype html\u003e\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003ctitle\u003eTest 0224\u003c/title\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003cdiv about=\"\"\u003e\n      \u003col rel=\"rdf:value\" inlist=\"\"\u003e\n        \u003cli\u003egit remote add origin git@github.com:nbittich/node-rdfa-wasm-example.git\u003ca href=\"foo\"\u003eFoo\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"bar\"\u003eBar\u003c/a\u003e\u003c/li\u003e\n      \u003c/ol\u003e\n    \u003c/div\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n\n`;\n\nconsole.log(html_to_rdfa(example, \"http://data.lblod.info\", \"\"));\n```\n\n### Web usage (not published on npm yet):\n\n```js\n \u003cscript type=\"module\"\u003e\n    import init, {html_to_rdfa} from \"./rdfa-wasm/pkg/rdfa_wasm.js\";\n\n    async function run() {\n      await init();\n      let html =`\n        \u003cdiv prefix=\"foaf: http://xmlns.com/foaf/0.1/\" about=\"http://www.example.org/#somebody\" rel=\"foaf:knows\"\u003e\n            \u003cp about=\"http://danbri.org/foaf.rdf#danbri\" typeof=\"foaf:Person\" property=\"foaf:name\"\u003eDan Brickley\u003c/p\u003e\n\t      \u003c/div\u003e\n      `;\n      let base = \"http://example.com\";\n      let well_known_prefix = \"http://example.org/.well_known\";\n      let res = html_to_rdfa(html, base, well_known_prefix);\n\n    }\n    run();\n  \u003c/script\u003e\n\n```\n\n- covers:\n\n  - [RDFa 1.1 Primer - Third Edition](https://www.w3.org/TR/rdfa-primer/)\n  - [RDFa Core](https://www.w3.org/TR/rdfa-core/)\n  - [Earl-Reports](https://rdfa.info/earl-reports/#RDFa-rdfa1.1-tests-for-html5)\n\n- used [RDFa/Play](https://rdfa.info/play/) for comparing.\n- [Demo](https://nbittich.github.io/graph-rdfa-processor/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnbittich%2Fgraph-rdfa-processor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnbittich%2Fgraph-rdfa-processor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnbittich%2Fgraph-rdfa-processor/lists"}