RDF.li not in namespace (since 6.0) · Issue #1374 · RDFLib/rdflib (original) (raw)
After updating to the newest version of rdflib I started to have the following error whenever I use RDF.li
AttributeError: term 'li' not in namespace 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'
I see that is not defined in 22-rdf-syntax-ns, but is part of RDF.
There is an rdf:li special property element that is equivalent to rdf:_1, rdf:_2 in order, explained in detail in section 7.4. The mapping to the container membership properties is always done in the order that the rdf:li special property elements appear in XML — the document order is significant. The equivalent RDF/XML to Example 17 written in this form is shown in Example 18.
https://www.w3.org/TR/rdf-syntax-grammar/#section-Syntax-list-elements
Note that RDF/XML uses li as a convenience element to avoid having to explicitly number each member. The li element assigns the properties _1, _2, and so on as necessary. The element name li was chosen to be mnemonic with the term "list item" from HTML.