view service/arduinoNode/rdflib_patch.py @ 1533:a598d2141587

more mqtt_to_rdf renames. bring in basic LitElement setup for the debug page Ignore-this: 85e2ab49915e44b08219e537fab21870 darcs-hash:f2d312ec10bb4a33c501a24bd7d11a1f35673f25
author drewp <drewp@bigasterisk.com>
date Sat, 08 Feb 2020 04:02:22 -0800
parents f707210c13bd
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