in a N-Triples file, there are a lot lines like the following: <http://opendatacommunities.org/id/geography/administration/par/E04009817> <http://www.w3.org/2000/01/rdf-schema#label> "Baginton E04009817"@en .<http://opendatacommunities.org/id/geography/administration/par/E04009817> <http://www.w3.org/2004/02/skos/core#note> "Live" .<http://opendatacommunities.org/id/geography/administration/par/E04009817> <http://www.w3.org/2004/02/skos/core#notation> "E04009817" . What I am interested is to find all lines contains something like "Baginton E04009817". Then, put the name and code into corresponding cells in 2 columns. Maybe, the solution is to find ways to select those lines having rdf-schema#label Is there a good example? Regards, David -- https://mail.python.org/mailman/listinfo/python-list