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

fix: NOASSERTION should not return triples. #66

Merged
merged 1 commit into from
Sep 11, 2023

Conversation

rmfranken
Copy link
Member

Because the Github API is a bit picky with licenses, it sometimes return "NOASSERTION" as the value of a license. This happens when it has found "something" licenselike, but cannot match it exactly to a spdx license. In that case, we don't want it to return a triple
:someObject schema:license <spdx.org/NOASSERTION> since that doesn't actually exist. Instead, it should not return any triple for license.

I solved it a bit brutely with a string check for the licenseInfo, but it's simple, as long as spdx does not suddenly introduce a license called "NOASSERTION".

Copy link
Member

@cmdoret cmdoret left a comment

Choose a reason for hiding this comment

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

This sounds reasonable, thanks! Ideally, we would attempt to determine the license if unclear but this would be additional work. I'll open a separate issue.

@cmdoret
Copy link
Member

cmdoret commented Aug 31, 2023

Tracked in #67, feel free to merge

@rmfranken rmfranken merged commit e1ea0b5 into main Sep 11, 2023
@cmdoret cmdoret deleted the fix_NOASSERTION-license branch October 6, 2023 13:59
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