From de7a9c7d5c977fc2e318c84d8f573b68a65f675b Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Tue, 7 Mar 2017 16:28:15 -0800 Subject: [PATCH] Bind the right XML namespace variable in our header --- htsworkflow/util/rdfhelp.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) -- 2.30.2