code: def _addDataFile(self, filename):
          
          if filename.endswith('.ttl'):
              self._rdfGraph.parse(filename, format='n3')
          else:
              self._rdfGraph.parse(filename, format='xml')
docs: Given a filename, add it to the graph