Permalink
Browse files

Use rdfs:label, not rdf:label.

  • Loading branch information...
1 parent 39a8465 commit 7cb1f593a2ca59a8af62cde26a99bf0b5ad63edf @bendmorris bendmorris committed with etal Feb 23, 2013
Showing with 5 additions and 4 deletions.
  1. +5 −4 Bio/Phylo/CDAOIO.py
View
9 Bio/Phylo/CDAOIO.py
@@ -39,8 +39,9 @@ class CDAOError(Exception):
raise CDAOError('Support for CDAO tree format requires the librdf Python bindings.')
RDF_NAMESPACES = {
- 'owl': 'http://www.w3.org/2002/07/owl#',
- 'rdf': 'http://www.w3.org/1999/02/22-rdf-syntax-ns#',
+ 'owl': 'http://www.w3.org/2002/07/owl#',
+ 'rdf': 'http://www.w3.org/1999/02/22-rdf-syntax-ns#',
+ 'rdfs': 'http://www.w3.org/2000/01/rdf-schema#',
}
RDF_NAMESPACES.update(cdao_namespaces)
@@ -192,7 +193,7 @@ def get_node_info(self, model, context=None):
qUri('cdao:has_Annotation'): 'annotation',
qUri('cdao:has_Value'): 'value',
qUri('cdao:represents_TU'): 'tu',
- qUri('rdf:label'): 'label',
+ qUri('rdfs:label'): 'label',
qUri('cdao:has_Support_Value'): 'confidence',
}
@@ -381,7 +382,7 @@ def process_clade(self, clade, parent=None, root=False):
statements += [
(nUri(tu_uri), qUri('rdf:type'), qUri('cdao:TU')),
(nUri(clade.uri), qUri('cdao:represents_TU'), nUri(tu_uri)),
- (nUri(tu_uri), qUri('rdf:label'), RDF.Node(literal=clade.name.replace('_', ' '))),
+ (nUri(tu_uri), qUri('rdfs:label'), RDF.Node(literal=clade.name.replace('_', ' '))),
]
# TODO: should be able to pass in an optional function for

0 comments on commit 7cb1f59

Please sign in to comment.