view service/arduinoNode/rdflib_patch.py @ 709:95556cacb6e1

release 0.10.0 Ignore-this: d496a61c0cb8d85ac7b81dc405894cbf
author drewp@bigasterisk.com
date Mon, 03 Feb 2020 22:08:54 -0800
parents d228105749ac
children
line wrap: on
line source


def fixQnameOfUriWithTrailingSlash():
    import rdflib.namespace
    old_split = rdflib.namespace.split_uri
    def new_split(uri):
        try:
            return old_split(uri)
        except Exception:
            return uri, ''
    rdflib.namespace.split_uri = new_split