home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / var / lib / python-support / python2.6 / rdflib / TripleStore.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-04-20  |  1.1 KB  |  27 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. '''Deprecated; use Graph.'''
  5. from rdflib import Graph
  6. from rdflib.store.Memory import Memory
  7.  
  8. class TripleStore(Graph):
  9.     '''
  10.     Depcrecated. Use Graph instead.
  11.     '''
  12.     
  13.     def __init__(self, location = None, backend = None):
  14.         if backend == None:
  15.             backend = Memory()
  16.         
  17.         super(TripleStore, self).__init__(backend = backend)
  18.         if location:
  19.             self.load(location)
  20.         
  21.  
  22.     
  23.     def prefix_mapping(self, prefix, namespace):
  24.         self.bind(prefix, namespace)
  25.  
  26.  
  27.