Skip to content
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

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

Closed
xavierfigueroav opened this issue Apr 23, 2019 · 4 comments
Labels

Comments

@xavierfigueroav
Copy link
Collaborator

  • RDF parsers do not handle 'projectURI' field of 'artifactOf' section.

    def p_file_project(self, project):
    """Helper function for parsing doap:project name and homepage.
    and setting them using the file builder.
    """
    for _, _, name in self.graph.triples((project, self.doap_namespace['name'], None)):
    self.builder.set_file_atrificat_of_project(self.doc, 'name', six.text_type(name))
    for _, _, homepage in self.graph.triples(
    (project, self.doap_namespace['homepage'], None)):
    self.builder.set_file_atrificat_of_project(self.doc, 'home', six.text_type(homepage))

  • 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

@meretp
Copy link
Collaborator

meretp commented Oct 17, 2022

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

@meretp meretp added the stale label Oct 20, 2022
@nicoweidner
Copy link
Collaborator

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?

@goneall
Copy link
Member

goneall commented Nov 4, 2022

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.

@nicoweidner
Copy link
Collaborator

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants