From: Diane Trout Date: Wed, 8 Mar 2017 00:28:15 +0000 (-0800) Subject: Bind the right XML namespace variable in our header X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=de7a9c7d5c977fc2e318c84d8f573b68a65f675b Bind the right XML namespace variable in our header --- diff --git a/htsworkflow/util/rdfhelp.py b/htsworkflow/util/rdfhelp.py index 29fdb7c..be17dbe 100644 --- a/htsworkflow/util/rdfhelp.py +++ b/htsworkflow/util/rdfhelp.py @@ -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)