def testSelectPropertyDereferencesUri(self): start_uri = "http://example.com/s" g = FakeAggregatingGraph() wp = LinkPathProcessor(g) wp.bind("ex", "http://example.com/schema/") uris = wp.select(start_uri, "ex:Type") assert g.receivedLookup(start_uri) == True, "LookupManager did not receive a lookup request"
def make_processor(self, data): g = FakeAggregatingGraph() d = Graph() d.parse(StringInputSource(data), format="n3") g.set_all(d) wp = LinkPathProcessor(g) wp.bind("foaf", "http://xmlns.com/foaf/0.1/") wp.bind("ex", "http://example.com/schema/") wp.bind("geo", "http://www.w3.org/2003/01/geo/wgs84_pos#") return wp