Parse large RDF in Python

前端 未结 6 1532
故里飘歌
故里飘歌 2021-02-02 16:07

I\'d like to parse a very large (about 200MB) RDF file in python. Should I be using sax or some other library? I\'d appreciate some very basic code that I can build on, say to r

6条回答
  •  一生所求
    2021-02-02 16:33

    In my experience, SAX is great for performance but it's a pain to write. Unless I am having issues, I tend to avoid programming with it.

    "Very large" is dependent on the RAM of the machine. Assuming that your computer has over 1GB memory, lxml, pyxml or some other library e will be fine for 200mb files.

提交回复
热议问题