Examples
Worked examples
- Is an instance
A Git repository on GitHub for an open-source research software project.
- Is an instance
A self-hosted GitLab repository at a research institute for internal scientific code.
Counter-examples
Looks similar, but isn't
- Not an instance
A zip file of source code on a personal webpage is not a code repository in the version-control sense.
- Not an instance
A data-only repository with no source code is not a code repository.
Editorial commentary
Code repositories are the canonical home of research software during development. Platforms include GitHub, GitLab, Bitbucket, Codeberg, and self-hosted Git instances; mercurial and SVN platforms persist in some communities. Within research-information ecosystems, code repositories are distinct from but linked to data repositories: a code repository may be referenced from a dataset’s DataCite metadata via a ‘IsSupplementedBy’ relationship, or vice versa. For citation and long-term archival, releases from code repositories are typically deposited in Zenodo (with a DOI) or in Software Heritage.
References
- C
- h
- a
- c
- o
- n
- S
- .
- ,
- S
- t
- r
- a
- u
- b
- B
- .
- ,
- ‘
- P
- r
- o
- G
- i
- t
- ‘
- ,
- A
- p
- r
- e
- s
- s
- ,
- 2
- n
- d
- e
- d
- i
- t
- i
- o
- n
- ,
- 2
- 0
- 1
- 4
- (
- g
- i
- t
- –
- s
- c
- m
- .
- c
- o
- m
- /
- b
- o
- o
- k
- )
- .
Also known as
Source code repository · Code repo
Machine-readable encodings
Use in your systems
<role vocab="credit"
vocab-identifier="https://casrai.org/dictionary/"
vocab-term="Code repository"
vocab-term-identifier="https://casrai.org/dictionary/term/code-repository" />{
"@context": "https://schema.org",
"@type": "DefinedTerm",
"name": "Code repository",
"identifier": "https://casrai.org/dictionary/term/code-repository",
"description": "A version-controlled storage location for source code, typically operated on top of a distributed version-control system such as Git, exposing the code's full revision history, branches, tags, and (often) collaboration features such as issues, pull requests, and code review.",
"inDefinedTermSet": "https://casrai.org/dictionary/domain/research-data-infrastructure/",
"url": "https://casrai.org/dictionary/term/code-repository",
"sameAs": [
"Source code repository",
"Code repo"
],
"license": "https://creativecommons.org/licenses/by/4.0/"
}







