spdx / tools

SPDX Tools
Apache License 2.0
126 stars 69 forks source link

Read standard licenses in JSON-LD format and remove dependencies on RDFa #158

Closed goneall closed 6 years ago

goneall commented 6 years ago

Fixes issue #90, issue #146 and issue #145

Before merging, the license list URL need to be moved from https://spdx.org/licenses/preview to https://spdx.org/licenses

Signed-off-by: Gary O'Neall gary@sourceauditor.com

goneall commented 6 years ago

Just peeking into a JSON-LD file at random, and I'm wondering what the spdx and doap entries are for.

This is an artifact of the Jena library used to produce the JSON-LD and how it is being invoked. These are declared namespaces used elsewhere in the SPDX documents. Apparently, it Jena is including it in all the JSON-LD files, even if they are not used.

I plan to revisit the JSON-LD representation of the licenses in the future. I'd really like to use an external context file which would make it very clean, compact and easier to maintain. I just haven't had time to figure out how to generate it using the Jena libraries. I spent a few hours earlier this week trying to figure it out and decided to wait until after the 3.1 release to pick it back up again.