tools-python icon indicating copy to clipboard operation
tools-python copied to clipboard

Section 'artifactOf' of 'File' is not completely supported by RDF parsers/writers

Open xavierfigueroav opened this issue 5 years ago • 1 comments

  • RDF parsers do not handle 'projectURI' field of 'artifactOf' section. https://github.com/spdx/tools-python/blob/301d72f6ae57c832c1da7f6402fa49b192de6810/spdx/parsers/rdf.py#L588-L596

  • RDF writers do not handle anything in 'artifactOf' section. That section is not being written in RDF files. A way to try it is running python tv_to_rdf.py ../data/SPDXTagExample.tag result.rdf

Output file attached: result.rdf.txt

xavierfigueroav avatar Apr 23 '19 22:04 xavierfigueroav

Thanks for your issue! The field 'artifactOf' is deprecated since version 1.8.4. Is this issue still of interest?

meretp avatar Oct 17 '22 11:10 meretp

artifactOf is deprecated since a long time, but for some reason it was never removed. I'd say we close this for now, and potentially reopen if someone convinces us the tools should still be able to handle artifactOf.

@goneall Do you know why the property was never dropped, and whether anyone still uses it?

nicoweidner avatar Nov 04 '22 08:11 nicoweidner

Do you know why the property was never dropped, and whether anyone still uses it?

@nicoweidner I don't know why it hasn't been dropped, but it was deprecated on release 2.0 several years ago, so I doubt you will find very many documents still using this property. It is probably safe to drop it.

goneall avatar Nov 04 '22 19:11 goneall

Closing this for the time being. If anyone really needs support for artifactOf, they will have to raise a new issue (or reopen this one)

nicoweidner avatar Nov 04 '22 20:11 nicoweidner