gjhiggins/rdflib — Issue #17: Namespace.title clash
Author: gjhiggins
Created: 2011-10-19 00:55:18+00:00
State: open

Originally filed by eike...@gmail.com on 2008-02-21T21:13:03

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.