Open nicholascar opened 2 years ago
should I rename all ttl examples for tutle star https://w3c.github.io/rdf-star/tests/turtle/syntax/#turtle-star-1 to ttls and do g.parse(data = path to test documents, format = "ttls") ?
You don't need to rename them: when you select a parser, you can let the system choose based on guessing by the file enging, e.g. g.parse("some-file.xml")
or g.parse("some-file.jsonld")
where it will guess RDF/XML & JSON-LD respectively, or you can tell it the format e.g. g.parse("some-file.jsonld", format="hext")
so here a file that looks like JSON-LD is given but the system is told to use the hext
parser.
So you can just go: g.parse("turtle-star-syntax-basic-02.ttl", format="ttls")
so here you've left the original TTL file unchanged but told RDFLib to use the Turtle-Star parser.
I've complete the test in the folder named test_parser_rdfstar.py, with all test from w3c, some expected to pass and some xfail, could you help me check if I am doing it correctly ?
Find RDF-Star test data - for any format - and put it in this repository.
See if the RDF-Star specifications have named tests, find those and record them here.
Use pytest