profile
viewpoint

Ask questionsRDF.li not in namespace (since 6.0)

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.

https://www.w3.org/TR/1999/REC-rdf-syntax-19990222/

RDFLib/rdflib

Answer questions white-gecko

We had a similar issue with xsd #1364 . I assume it is due to the changes to the namespace handling in #1074. Could you try to add it to the respective namespace file and provide a pull-request?

useful!

Related questions

No questions were found.
source:https://uonfu.com/
Github User Rank List