Skip to content

Conversation

@meretp
Copy link
Collaborator

@meretp meretp commented Jan 26, 2023

This PR solves a subtask of #407 by adding a RDF writer to the refactored branch. As a start the used package rdflib is declared as an optional dependency, but it is still open to handle this properly in the implementation. This leads to the failing pipeline.

@meretp meretp force-pushed the issue-407-add-rdf-writer branch 4 times, most recently from cd0d4bc to 00260cf Compare January 30, 2023 14:28
@meretp
Copy link
Collaborator Author

meretp commented Jan 31, 2023

fixes #455

Copy link
Collaborator

@armintaenzertng armintaenzertng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking the effort to gain in-depth understanding of rdf! :)
I have a few comments, mostly regarding namings or code structure.

Copy link
Collaborator

@armintaenzertng armintaenzertng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few more remarks :)

graph.add((parent, predicate, Literal(str(element))))
return
graph.add((parent, predicate, Literal(str(value))))
return
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unnecessary at the end of a method

Copy link
Collaborator

@armintaenzertng armintaenzertng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me now, thanks :)

meretp added 20 commits February 1, 2023 09:31
Signed-off-by: Meret Behrens <[email protected]>
Signed-off-by: Meret Behrens <[email protected]>
Signed-off-by: Meret Behrens <[email protected]>
Signed-off-by: Meret Behrens <[email protected]>
Signed-off-by: Meret Behrens <[email protected]>
@meretp meretp force-pushed the issue-407-add-rdf-writer branch from a5c5857 to c0cd630 Compare February 1, 2023 09:29
meretp added 14 commits February 1, 2023 10:33
…and lineNumber to integer

Signed-off-by: Meret Behrens <[email protected]>
Signed-off-by: Meret Behrens <[email protected]>
… namespaces in rdf writer and parser

Signed-off-by: Meret Behrens <[email protected]>
…not only None as a wildcard

Signed-off-by: Meret Behrens <[email protected]>
@meretp meretp force-pushed the issue-407-add-rdf-writer branch from c0cd630 to 3eaf91c Compare February 1, 2023 09:33
@meretp meretp merged commit e25467f into spdx:refactor-python-tools Feb 1, 2023
@meretp meretp deleted the issue-407-add-rdf-writer branch February 1, 2023 09:42
@meretp meretp mentioned this pull request Feb 22, 2023
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants