Mercurial > code > home > repos > homeauto
view service/arduinoNode/rdflib_patch.py @ 989:065fc9e07c10
piNode allow nt graphs as the body of a PUT /output
Ignore-this: 248ba89b8b1c130d86cd068c344238ba
darcs-hash:20150618084507-312f9-14b98f83f5b3fc2b94b01de4fdbcbb44b34f1c8c
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Thu, 18 Jun 2015 01:45:07 -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