old_contents: from rdflib import Namespace
  
  __all__ = 'NS'
  
  NS = {
      'aiiso': 'http://purl.org/vocab/aiiso/schema#',
      'cc': 'http://creativecommons.org/ns#',
      'dc':     'http://purl.org/dc/elements/1.1/',
      'dcterms':    'http://purl.org/dc/terms/',
      'doap': 'http://usefulinc.com/ns/doap#',
      'foaf':   'http://xmlns.com/foaf/0.1/',
      'fhs':            'http://vocab.ox.ac.uk/fhs/',
      'geo': 'http://www.w3.org/2003/01/geo/wgs84_pos#',
      'gr': 'http://purl.org/goodrelations/v1#',
      'oo': 'http://purl.org/openorg/',
      'org': 'http://www.w3.org/ns/org#',
      'ov': 'http://open.vocab.org/terms/',
      'owl': 'http://www.w3.org/2002/07/owl#',
      'oxp': 'http://ns.ox.ac.uk/namespace/oxpoints/2009/02/owl#',
      'qb': 'http://purl.org/linked-data/cube#',
      'rdf': 'http://www.w3.org/1999/02/22-rdf-syntax-ns#',
      'rdfs':   'http://www.w3.org/2000/01/rdf-schema#',
      'rooms': 'http://vocab.deri.ie/rooms#',
      'sdmxdim': 'http://purl.org/linked-data/sdmx/2009/dimension#',
      'skos':   'http://www.w3.org/2004/02/skos/core#',
      'sioc': 'http://rdfs.org/sioc/ns#',
      'srx': 'http://www.w3.org/2005/sparql-results#',
      'time': 'http://www.w3.org/2006/time#',
      'v': 'http://www.w3.org/2006/vcard/ns#',
      'void': 'http://rdfs.org/ns/void#',
      'xsd': 'http://www.w3.org/2001/XMLSchema#',
  
  
      # Function namespaces
      'fn': 'http://www.w3.org/2005/xpath-functions#',
      'afn': 'http://jena.hpl.hp.com/ARQ/function#',
  }
  
  NS = dict((k,Namespace(v)) for k,v in NS.iteritems())
  
new_contents: from rdflib import Namespace
  
  from django.conf import settings
  
  __all__ = ['NS', 'register']
  
  NS = {
      'aiiso': 'http://purl.org/vocab/aiiso/schema#',
      'cc': 'http://creativecommons.org/ns#',
      'dc':     'http://purl.org/dc/elements/1.1/',
      'dcterms':    'http://purl.org/dc/terms/',
      'doap': 'http://usefulinc.com/ns/doap#',
      'foaf':   'http://xmlns.com/foaf/0.1/',
      'fhs':            'http://vocab.ox.ac.uk/fhs/',
      'geo': 'http://www.w3.org/2003/01/geo/wgs84_pos#',
      'gr': 'http://purl.org/goodrelations/v1#',
      'oo': 'http://purl.org/openorg/',
      'org': 'http://www.w3.org/ns/org#',
      'ov': 'http://open.vocab.org/terms/',
      'owl': 'http://www.w3.org/2002/07/owl#',
      'oxp': 'http://ns.ox.ac.uk/namespace/oxpoints/2009/02/owl#',
      'qb': 'http://purl.org/linked-data/cube#',
      'rdf': 'http://www.w3.org/1999/02/22-rdf-syntax-ns#',
      'rdfs':   'http://www.w3.org/2000/01/rdf-schema#',
      'rooms': 'http://vocab.deri.ie/rooms#',
      'sdmxdim': 'http://purl.org/linked-data/sdmx/2009/dimension#',
      'skos':   'http://www.w3.org/2004/02/skos/core#',
      'sioc': 'http://rdfs.org/sioc/ns#',
      'srx': 'http://www.w3.org/2005/sparql-results#',
      'time': 'http://www.w3.org/2006/time#',
      'v': 'http://www.w3.org/2006/vcard/ns#',
      'void': 'http://rdfs.org/ns/void#',
      'xsd': 'http://www.w3.org/2001/XMLSchema#',
  
  
      # Function namespaces
      'fn': 'http://www.w3.org/2005/xpath-functions#',
      'afn': 'http://jena.hpl.hp.com/ARQ/function#',
  }
  
  NS.update(getattr(settings, 'ADDITIONAL_NAMESPACES', {}))
  
  NS = dict((k,Namespace(v)) for k,v in NS.iteritems())
  
  def register(k, v):
  	NS[k] = Namespace(v)
subject: Allow namespaces to be extensible.