Project:HowToContribute PaperWithCode

From MaRDI portal
Project:HowToContribute PaperWithCode


HOW TO
Contribute
Link a paper to its code repository in the MaRDI Knowledge Graph

The MaRDI Knowledge Graph links mathematical research outputs - including publications, datasets, software, and workflows. A paper with code is a research paper that has an associated code repository, for example hosted on GitHub, GitLab, or Zenodo. You can improve the KG by linking papers to their code repositories.

Time required: ~1 minute
1 Check the paper exists

Search for the paper on the MaRDI portal. If it is not yet listed, it needs to be added first before you can proceed. If it is there, click on the respective link.

Search bar
2 Open the item page

On the paper's overview page, click the MaRDI QID badge at the top. This takes you to the internal item page for this paper. You will see a notice at the top reading "This is the item page for this Wikibase entity, intended for internal use and editing purposes." - this is expected and normal.

Item page
3 Add a statement

Scroll down to the end of the Statements section. Directly below the box, containing all the statements - and right above the next Identifiers section, click + add statement.

Add_statement_link
4 Select the property

In the Property input field that appears, type has companion code repository. The field will autocomplete after a few characters - click the matching entry in the dropdown to select it.

Add Statement Property
5 Add the repository URL

In the input field to the right, enter the full URL of the code repository (e.g. https://github.com/example/repo).

Add repository URL
6 Save

Click the save link on the right to store the new statement. The paper is now linked to its code repository in the MaRDI Knowledge Graph.

Save
💡 Good to know
  • Accepted repositories include GitHub, GitLab, Zenodo, and other persistent links.
  • Make sure the URL is accessible and points to the main repository page.