January 2018
Intermediate to advanced
336 pages
7h 22m
English
At this point, you should have two successfully passing tests in test/parse-rdf-test.js that are powered by your module in lib/parse-rdf.js. In this section, we’ll expand the tests to cover all of our requirements for parsing Project Gutenberg RDF files, and implement the library code to make them pass.
To extract the data attributes we desire, we’ll need to parse the RDF (XML) file. As with everything in the Node.js ecosystem, there are multiple valid approaches to parsing, navigating, and querying XML files.
Let’s discuss some of the options, then move on to installing and using Cheerio.
In this chapter, we will be treating the RDF files like regular, undifferentiated ...
Read now
Unlock full access