-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rdfloader: Missing Packages from parsing example file #51
Comments
@RishabhBhatnagar this is the main issue I noted in my comment on #46 -- grateful if you can take a look at this! |
- packages was a redundant variable in rdfParser2_2 struct. - Intention behind adding packages was to make it similar to rdfParser2_2.files - With this PR, the packages variable has been removed that will partly resolve [spdx#51](spdx#51). Signed-off-by: Rishabh Bhatnagar <bhatnagarrishabh4@gmail.com>
- packages was a redundant variable in rdfParser2_2 struct. - Intention behind adding packages was to make it similar to rdfParser2_2.files - With this PR, the packages variable has been removed that will partly resolve spdx#51. Signed-off-by: Rishabh Bhatnagar <bhatnagarrishabh4@gmail.com>
|
Thanks @RishabhBhatnagar! This is very helpful. I agree that #54 appears to fix most of the issues here. I believe I am still seeing some missing data. I'm also cc'ing @goneall as I imagine he may have more useful insight than me about the RDF particulars. In the sample RDF file, there is a file that gets created with identifier Looking at the parsed data, I see that in the Package for If you're able to track this down, that would be fantastic. I know that the sample RDF file is a particularly complex example, with nested definitions of files making things more complicated. I appreciate anything you are able to do to sort this out! Edit: Also, you can ignore the |
I'm sorry for the inconvenience. I could've easily fixed the issue temporarily. But I am tending towards a more robust approach. How I'll resolve the issue:As discussed in one of the earlier conversations, I had to implement caching for rdfloader that will prevent double computation. And this time, I'll personally check each and every data if it is present in the model. I've already started to work on it. |
That's great -- and yes, please, take as much time as you need. You are under no obligation to fix this on any time frame :) Cyclical dependencies can be extremely nasty to deal with and you should take as long as you want / need to sort through it. Thank you for everything you're doing here! |
When running rdfloader on the canonical sample SPDX RDF file, the parsing completes without any error message. However, not all of the data appears to be getting transferred into the main data model.
The following sections are getting filled in:
However, there are no Packages in the resulting parsed Document2_2 object. The sample document does define a couple of Packages, so these should be showing up:
https://github.com/spdx/spdx-spec/blob/6b44f663463b6f351e264435baf9a5c3b302cd83/examples/SPDXRdfExample-v2.2.spdx.rdf.xml#L258
https://github.com/spdx/spdx-spec/blob/6b44f663463b6f351e264435baf9a5c3b302cd83/examples/SPDXRdfExample-v2.2.spdx.rdf.xml#L264
https://github.com/spdx/spdx-spec/blob/6b44f663463b6f351e264435baf9a5c3b302cd83/examples/SPDXRdfExample-v2.2.spdx.rdf.xml#L1223
It also looks like it is not parsing some Snippets or File references, for example:
https://github.com/spdx/spdx-spec/blob/6b44f663463b6f351e264435baf9a5c3b302cd83/examples/SPDXRdfExample-v2.2.spdx.rdf.xml#L8
https://github.com/spdx/spdx-spec/blob/6b44f663463b6f351e264435baf9a5c3b302cd83/examples/SPDXRdfExample-v2.2.spdx.rdf.xml#L15
I note that all of these appear outside the
<spdx:SpdxDocument>
tag defined at line 990.I don't know enough about RDF files to know if that's relevant, but I'm guessing it could be.
The text was updated successfully, but these errors were encountered: