I am currently building a framework using a combination of SPARQL queries with Pythons rdflib package. This framework is designed to identify triples which don't meet quality requirements.
As you may know, RDF files can contain a large number of triples and I'm having trouble on how to identify these triples to the users. My first idea was to provide them with a line number as shown below, however I'm unsure on how feasible this will be.
I'm open to any suggestions.
line 1 @prefix foaf: <http://xmlns.com/foaf/0.1/> .
line 2 _:alice foaf:knows _:bob .
line 3 _:bob foaf:knows _:alice
Example output
Triple on line 3 doesn't meet quality requirements
Thanks for your help!