An open API service indexing awesome lists of open source software.

https://github.com/edsu/rdflib-microdata

an rdflib plugin to parse html5 microdata
https://github.com/edsu/rdflib-microdata

Last synced: 8 months ago
JSON representation

an rdflib plugin to parse html5 microdata

Awesome Lists containing this project

README

          

This is a rdflib plugin for parsing html5 microdata and modelling it as an
rdf graph. The rdflib and html5lib libraries are required. Basically you'll
be able to do something like:

```python
>>> import rdflib
>>> import rdflib_microdata
>>> g = rdflib.Graph()
>>> g.parse("https://raw.github.com/edsu/microdata/master/test-data/example.html", format="microdata")
>>> print g.serialize()
```

```xml


Jane Doe





(425) 123-4567


Professor



WA
98052

20341 Whitworth Institute
405 N. Whitworth

Seattle

```

Author: [Ed Summers](mailto:ehs@pobox.com)

License: Public Domain