{"id":15645771,"url":"https://github.com/edsu/rdflib-microdata","last_synced_at":"2025-10-07T13:56:58.795Z","repository":{"id":66762626,"uuid":"1870216","full_name":"edsu/rdflib-microdata","owner":"edsu","description":"an rdflib plugin to parse html5 microdata","archived":false,"fork":false,"pushed_at":"2011-11-03T16:21:21.000Z","size":102,"stargazers_count":53,"open_issues_count":2,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-30T15:57:52.495Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edsu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-06-09T10:32:53.000Z","updated_at":"2022-10-02T06:04:10.000Z","dependencies_parsed_at":"2023-02-20T11:00:43.458Z","dependency_job_id":null,"html_url":"https://github.com/edsu/rdflib-microdata","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/edsu/rdflib-microdata","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edsu%2Frdflib-microdata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edsu%2Frdflib-microdata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edsu%2Frdflib-microdata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edsu%2Frdflib-microdata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edsu","download_url":"https://codeload.github.com/edsu/rdflib-microdata/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edsu%2Frdflib-microdata/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278786670,"owners_count":26045588,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-03T12:09:47.407Z","updated_at":"2025-10-07T13:56:58.775Z","avatar_url":"https://github.com/edsu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a rdflib plugin for parsing html5 microdata and modelling it as an\nrdf graph. The rdflib and html5lib libraries are required. Basically you'll\nbe able to do something like:\n\n```python\n\u003e\u003e\u003e import rdflib\n\u003e\u003e\u003e import rdflib_microdata\n\u003e\u003e\u003e g = rdflib.Graph()\n\u003e\u003e\u003e g.parse(\"https://raw.github.com/edsu/microdata/master/test-data/example.html\", format=\"microdata\")\n\u003e\u003e\u003e print g.serialize()\n```\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003crdf:RDF\n   xmlns:ns1=\"http://schema.org/Person#\"\n   xmlns:ns2=\"http://schema.org/PostalAddress#\"\n   xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\n\u003e\n  \u003crdf:Description rdf:about=\"http://www.xyz.edu/~jane\"\u003e\n    \u003cns1:name\u003eJane Doe\u003c/ns1:name\u003e\n    \u003cns1:email rdf:resource=\"mailto:jane-doe@xyz.edu\"/\u003e\n    \u003crdf:type rdf:resource=\"http://schema.org/Person\"/\u003e\n    \u003cns1:url rdf:resource=\"http://www.janedoe.com\"/\u003e\n    \u003cns1:colleagues rdf:resource=\"http://www.xyz.edu/students/alicejones.html\"/\u003e\n    \u003cns1:colleagues rdf:resource=\"http://www.xyz.edu/students/bobsmith.html\"/\u003e\n    \u003cns1:telephone\u003e(425) 123-4567\u003c/ns1:telephone\u003e\n    \u003cns1:address rdf:nodeID=\"TggQqDwH2\"/\u003e\n    \u003cns1:image rdf:resource=\"janedoe.jpg\"/\u003e\n    \u003cns1:jobTitle\u003eProfessor\u003c/ns1:jobTitle\u003e\n  \u003c/rdf:Description\u003e\n  \u003crdf:Description rdf:nodeID=\"TggQqDwH2\"\u003e\n    \u003crdf:type rdf:resource=\"http://schema.org/PostalAddress\"/\u003e\n    \u003cns2:addressRegion\u003eWA\u003c/ns2:addressRegion\u003e\n    \u003cns2:postalCode\u003e98052\u003c/ns2:postalCode\u003e\n    \u003cns2:streetAddress\u003e\n          20341 Whitworth Institute\n          405 N. Whitworth\n        \u003c/ns2:streetAddress\u003e\n    \u003cns2:addressLocality\u003eSeattle\u003c/ns2:addressLocality\u003e\n  \u003c/rdf:Description\u003e\n\u003c/rdf:RDF\u003e\n```\n\nAuthor: [Ed Summers](mailto:ehs@pobox.com)\n\nLicense: Public Domain\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedsu%2Frdflib-microdata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedsu%2Frdflib-microdata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedsu%2Frdflib-microdata/lists"}