Closed tian3rd closed 1 year ago
Current progress:
Have integrated all rules in the ExpressionDefinition
class, and tested a few turtle files in parsing (in local main function rather than the test file). Check commit https://github.com/anusii/rdflib/commit/8449c129ded498860bf117b44abeb03bbee99e78 for details.
Next is to evaluate the parsed result and save what we want using rdflib classes.
Update:
Has met the closing criteria.
[x] First, create a class
ExpressionDefinition
that extendsGrammarDefinition
, and its purpose is to include all 50 turtle rules inside as parsers.[x] Second, for most common turtle files such as
.acl
and our.ttl
file in PODS repo, create aEvaluatorDefinition
class whose main purpose is to attach custom production actions to interpret the outcomes of the parsers. Withrdflib
classes such asURIRef
,Graph
, we can save the results in the graph.