Preserving the order of elements when parsing Microdata

8 views
Skip to first unread message

mfhepp

unread,
Oct 14, 2015, 4:12:33 PM10/14/15
to rdflib-dev

When I am parsing an HTML document with Microdata markup in Python with rdflib, the ordering of elements is lost (which is a natural consequence of RDF not having an order for multiple elements).


E.g. the value method often returns the element that was the first value in the original markup, but not reliably.


Now, sometimes it will be very handy to preserve the original order. Is there a way to tell rdflib to return an ordered list for multiple values?


Reply all
Reply to author
Forward
0 new messages