Bind the right XML namespace variable in our header
authorDiane Trout <diane@testing.woldlab.caltech.edu>
Wed, 8 Mar 2017 00:28:15 +0000 (16:28 -0800)
committerDiane Trout <diane@testing.woldlab.caltech.edu>
Wed, 8 Mar 2017 00:28:15 +0000 (16:28 -0800)
htsworkflow/util/rdfhelp.py

index 29fdb7c90d44e34d3a32ce10285c1dfcb06094b0..be17dbea6dbb406ae4734964861bb090d12a2f14 100644 (file)
@@ -1,6 +1,6 @@
 """Helper features for working with librdf
 """
-from __future__ import print_function
+from __future__ import print_function, absolute_import
 
 import collections
 from datetime import datetime
@@ -19,6 +19,8 @@ from rdflib.namespace import ClosedNamespace
 import lxml.html
 import lxml.html.clean
 
+from .rdfns import XMLNS
+
 logger = logging.getLogger(__name__)
 
 from htsworkflow.util.rdfns import *
@@ -298,7 +300,7 @@ def add_default_namespaces(model):
     model.bind('rdfs', RDFS)
     model.bind('owl', OWL)
     model.bind('dc', DC)
-    model.bind('xml', XML)
+    model.bind('xml', XMLNS)
     model.bind('xsd', XSD)
     model.bind('vs', VS)
     model.bind('wot', WOT)