def testFilterBNode(self):
        for s,p,o in self.graph.triples((None,RDF.type,None)):
            pass        
        query2 = """SELECT ?subj WHERE { ?subj ?prop ?obj FILTER( ?subj != %s ) }"""%s.n3()
        print query2
        rt = self.graph.query(query2,DEBUG=True)
        self.failUnless(len(rt) == 1,"FILTER should exclude 'told' BNodes by name (result set size: %s, BNode excluded: %s)"%(len(rt),s.n3()))
dataset/ETHPy150Open RDFLib/rdfextras/test/test_sparql/test_sparql_told_bnodes.py/TestSPARQLToldBNodes.testFilterBNode/original