Skip to content

Add an API to feed metadata in and produce valid codemeta/schema.org #34

@rebeccaringuette

Description

@rebeccaringuette

Requesting an API be added to the auto-codemeta generator for generating codemeta jsons in large quantities. The input would need to be some basic json where a program can send the information in some basic json format (not codemeta) and the return would be validated codemeta json. I am finding we need this in several points of operations but there is no available way to do this.

  • use case: Auto-generating valid codemeta json from a database of software metadata. The database has its own terminology and structure but needs to generate codemeta. All extractions from available information have already been performed.
  • use case: auto-generating schema.org aligned codemeta for auto-embedding that metadata in a software landing page to increase discoverability by generic internet searches (potentially also AI searches). This must be automated to ensure the embedded metadata is always accurate compared to the metadata stored in the database. The input metadata comes from an existing metadata database.

These use cases call for an API with a simple JSON input structure and two types of output structures. The input structure should not be the codemeta structure (otherwise there is not much point to calling the API to generate codemeta json) and should basically allow input to any field in the generator. The output structure should have two options, either valid codemeta or valid schema.org-aligned codemeta. Having this as an API centralizes the maintenance and governance of what is valid codemeta/schema.org for software metadata in the correct group (CodeMeta) and provides a standardized machine-actionable way to create this metadata.

A potentially second API could be called in the background by the first API to validate the desired codemeta/schema.org flavor of metadata produced. This separate API would also be useful for external services to call to check that existing codemeta/schema.org metadata is valid compared to any updates since the metadata was generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions