Skip to content

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

Closed
@xavierfigueroav

Description

@xavierfigueroav
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions