Mercurial > code > home > repos > homeauto
view service/arduinoNode/rdflib_patch.py @ 710:94610b5263e4
add browser_test server for playing with /graph resource
Ignore-this: 6112c234b93e0fb99ffe918a022e5a49
author | drewp@bigasterisk.com |
---|---|
date | Mon, 03 Feb 2020 23:45:15 -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