HomeSoftware Heritage

Always output valid JSON-LD.

Description

Always output valid JSON-LD.

Summary:
Our metadata extraction used to export a nested dict structure
loosely based on JSON-LD with schema.org/CodeMeta.

This diff makes it output proper JSON-LD data.

Note that because of some issues (eg.
https://github.com/codemeta/codemeta/issues/198 and the impossibility to
represent a software entity without a specific version), I removed
softwareRequirements and softwareSuggestions from the output

As a side-effect, it resolves T1289

PS: Morane, don't review this diff today, it can wait until tomorrow :)

Reviewers: moranegg

Reviewed By: moranegg

Subscribers: swh-public-ci, zack

Maniphest Tasks: T1289

Differential Revision: https://forge.softwareheritage.org/D617

Details

Provenance
vlorentzAuthored on Nov 5 2018, 4:02 PM
vlorentzPushed on Nov 5 2018, 5:32 PM
Reviewer
moranegg
Differential Revision
D617: Always output valid JSON-LD.
Parents
rDCIDXdd4a0e1884d3: Fix pytest warnings.
Branches
Unknown
Tags
Unknown
Tasks
T1289: CodeMeta support in the metadata indexer
Build Status
Buildable 2047
Build 2490: test-and-build