/usr/share/pyshared/rdflib/TripleStore.py is in python-rdflib 2.4.2-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | """Deprecated; use Graph."""
from rdflib.Graph import Graph
from rdflib.store.Memory import Memory
class TripleStore(Graph):
"""
Depcrecated. Use Graph instead.
"""
def __init__(self, location=None, backend=None):
if backend==None:
backend = Memory()
super(TripleStore, self).__init__(backend=backend)
if location:
self.load(location)
def prefix_mapping(self, prefix, namespace):
self.bind(prefix, namespace)
|