How to parse .ttl files with RDFLib?

前端 未结 3 882
一个人的身影
一个人的身影 2021-02-07 22:14

I have a file in .ttl form. It has 4 attributes/columns containing quadruples of the following form:

  1. (id, student_name, student_address, student
3条回答
  •  北海茫月
    2021-02-07 22:24

    It seems there is currently no such library present to parse the Turtle - Terse RDF Triple Language

    As you already know the grammar , your best bet is to use PyParsing to first create a grammar and then parse the file.

    I would also suggest to adapt the following EBNF implementation for your need

提交回复
热议问题