Harold-Solbrig / funowl

Pythonic representation of OWL through the OWL functional syntax
Creative Commons Zero v1.0 Universal
50 stars 5 forks source link

Updates to work correctly with rdflib 6.2.0 and on. #54

Closed hsolbrig closed 2 years ago

hsolbrig commented 2 years ago

rdflib 6.2.0 now removes duplicate namespaces, meaning that it can no longer be counted on to map the declared prefixes into URI's. As an example:

Prefix(first:=<http://www.w3.org/2002/03owlt/AllDifferent/premises001#>)
Prefix(t:=<http://www.w3.org/2002/03owlt/AllDifferent/premises001#>)
ClassAssertion(first:Person first:Barney)

will fail because the first prefix no longer exists in the rdflib namespace manager. This fix includes a backup map in prefix_declarations.py that can be used in situations like the above