Mercurial > code > home > repos > homeauto
view service/arduinoNode/rdflib_patch.py @ 978:e9ed6159b5fa
handle compact/full uris better, but still not always right
Ignore-this: 10d98f16a659f899528eb86411473b18
darcs-hash:20150417090015-312f9-dd07384187555a6909b9630c98e09ab5f9865f7c
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Fri, 17 Apr 2015 02:00:15 -0700 |
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