Closed hsolbrig closed 6 years ago
rdfsupport.namespaces.namespace_for has multiple problems
namespace_for(str) only works on the Namespace based elements. namespace_for(URIRef("http://hl7.org/fhir/")) fails because of compare w/ Namespace
AnonNS() is completely broken namespaces[AnonNS()] should be namespaces[AnonNS()].ns
self._nsnum +=1 takes AnonNS._nsnum, adds 1 and stores it into self._nsnum (not the class variable)
rdfsupport.namespaces.namespace_for has multiple problems
namespace_for(str) only works on the Namespace based elements. namespace_for(URIRef("http://hl7.org/fhir/")) fails because of compare w/ Namespace
AnonNS() is completely broken namespaces[AnonNS()] should be namespaces[AnonNS()].ns
self._nsnum +=1 takes AnonNS._nsnum, adds 1 and stores it into self._nsnum (not the class variable)