Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Identifying CodeMeta files on GitHub

See original GitHub issue

Just a quick question, I’ve tried searching for CodeMeta files on GitHub recently, and just wanted to confirm that every valid CodeMeta file would a) have to be called codemeta.json and b) include the following string (catching schemas v1 and v2):

In my (limited) experience, properly identifying files via GitHub code search API isn’t fool-proof, so I want to make sure that I’m getting the correct files.


Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

mbjonescommented, Mar 21, 2018

Just for clarity, the syntax for the context file namespace is:

And it seems to be resolving fine and fast now. So I would recommend that over the purl at this point. And definitely version 2,0 and not the early versions.


On Wed, Mar 21, 2018 at 8:48 AM, Carl Boettiger wrote:

@sdruskat Good questions.

a) Yes b) No.

Re b),

The DOI URL would still work with either http or version or the version as well. As long as these resolve, they are still valid.

Technically the context file does not need to be a link at all, but could literally embed the codemeta context file at the top of a codemeta document. Obviously this is verbose, but from the JSON-LD point it’s semantically equivalent, and has the practical advantage of allowing the JSON-LD algorithms to be applied without a network connection available.

Most of the terms in v2 can be expressed in pure, so it’s possible a codemeta.json file will declare the context simply as

Also, as per #125, I’ve continually had issues with the DataCite content negotiation servers being too slow to successfully use the DOI-based schema, particularly when traffic is high. To avoid this, there’s a fall back url at I believe the performance issues we had throughout last year have largely been resolved now though and the DOI-based resolution should work.

There aren’t any technically required fields, but I would expect a “@type”: “SoftwareSourceCode” field at minimum(?)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread .

cboettigcommented, Oct 11, 2018

looks to be resolved

Read more comments on GitHub >

github_iconTop Results From Across the Web

User Guide - The CodeMeta Project
The CodeMeta GitHub repository defines tags to allow specific versions of a file to be referenced, and assigns digital object identifiers, or DOIs,...
Read more >
Codemeta Generator - GitHub
GitHub - codemeta/codemeta-generator: This repository contains a (client-side) web application to generate Codemeta documents (aka. codemeta.json).
Read more >
codemeta/codemeta.json at master - GitHub
Minimal metadata schemas for science software and code, in JSON-LD - codemeta/codemeta.json at master · codemeta/codemeta.
Read more >
ropensci/codemetar: an R package for generating ... - GitHub
Quickly generate a valid codemeta.json file from any valid R package. ... used in other metadata standards, as identified by the Codemeta Project...
Read more >
codemeta/codemeta.json at master - GitHub
Minimal metadata schemas for science software and code, in JSON-LD - codemeta/codemeta.json at master · codemeta/codemeta.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found