BD2KOnFHIR / fhirtordf

Python based FHIR to RDF conversion utility
Creative Commons Zero v1.0 Universal
15 stars 8 forks source link

namespaces.py has multiple problems #8

Closed hsolbrig closed 6 years ago

hsolbrig commented 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)