RDFLib/rdflib — Issue #16: Namespace.title clash
Author: gjhiggins
Created: 2012-02-20 08:30:30+00:00
State: closed

eike...@gmail.com, 2008-02-21T21:13:03.000Z

On Feb 21, 2008, at 1:59 PM, Philip Cooper wrote:

This is a pretty minor quibble but:

could we change Namespace.py to include a defined property title
Something like:

@property
def title(self):
return URIRef(self + 'title')

title is a pretty common fragment e.g.
dc = Namespace('http://purl.org/dc/elements/1.1/')
dc.title
fails .... to do the right thing that is.

I know dc['title'] is fine but ... well it's just a common case
for a number of namespaces.

Comment 1 by eike...@gmail.com

Comment 2 by eik...@gmail.com

Comment 3 by eik...@gmail.com
Fixed in r1492

Comment 4 by eik...@gmail.com
This issue was closed by revision 5ed54d4fbdbf.