You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ahmed Hisham Ismail edited this page Aug 3, 2014
·
2 revisions
The module spdx.parsers.rdf provides the class Parser to parse RDF/XML SPDX documents.
It uses rdflib to parse a graph from the xml file and traverses it to build the document.
The class Parser extends PackageParser, FileParser and ReviewParser which provide functions to parse package, file and review information respectively. Parser handles the top level document fields, such as document version, and creation info fields.
Two more classes are present in this module BaseParser and LicenseParser.
BaseParser provides utility functions and is extended by all parsers. It also sets the builder, logger and rdf namespace fields.
LicenseParse is responsible for parsing extracted licenses and license sets.