| 1 |
|
| 2 |
There are four entry types, corresponding to different granularities |
| 3 |
in the identification of the (part of) software artifacts that one |
| 4 |
whishes to cite. They are listed below in order of granularity. |
| 5 |
\subsection{software} |
| 6 |
Computer software. |
| 7 |
|
| 8 |
\emph{Required fields:} \texttt{author} / \texttt{editor}, \texttt{title}, \texttt{url}, \texttt{year} |
| 9 |
|
| 10 |
\emph{Optional fields:} \texttt{abstract}, \texttt{addendum}, \texttt{date}, \texttt{doi}, \texttt{eprint}, \texttt{eprintclass}, \texttt{eprinttype}, \texttt{file}, \texttt{hal\_id}, \texttt{hal\_version}, |
| 11 |
\texttt{institution}, \texttt{license}, \texttt{month}, \texttt{note}, \texttt{organization}, \texttt{publisher}, |
| 12 |
\texttt{related}, \texttt{relatedtype}, \texttt{relatedstring}, \texttt{repository}, \texttt{swhid}, \texttt{urldate}, \texttt{version} |
| 13 |
\subsection{softwareversion} |
| 14 |
A specific version of a software. Inherits values of missing |
| 15 |
fields from the entry mentioned in the \texttt{crossref} field. |
| 16 |
|
| 17 |
\emph{Required fields:} \texttt{author} / \texttt{editor}, \texttt{title}, \texttt{url}, \texttt{version}, \texttt{year} |
| 18 |
|
| 19 |
\emph{Optional fields:} \texttt{abstract}, \texttt{addendum}, \texttt{crossref}, \texttt{date}, \texttt{doi}, \texttt{eprint}, \texttt{eprintclass}, \texttt{eprinttype}, \texttt{file}, \texttt{hal\_id}, \texttt{hal\_version}, |
| 20 |
\texttt{institution}, \texttt{introducedin}, \texttt{license}, \texttt{month}, \texttt{note}, \texttt{organization}, \texttt{publisher}, |
| 21 |
\texttt{related}, \texttt{relatedtype}, \texttt{relatedstring}, \texttt{repository}, \texttt{swhid}, \texttt{subtitle}, \texttt{urldate} |
| 22 |
\subsection{softwaremodule} |
| 23 |
|
| 24 |
A specific module of a larger software project. Inherits values of missing |
| 25 |
fields from the entry mentioned in the \texttt{crossref} field. |
| 26 |
|
| 27 |
\emph{Required fields:} \texttt{author}, \texttt{subtitle}, \texttt{url}, \texttt{year} |
| 28 |
|
| 29 |
\emph{Optional fields:} \texttt{abstract}, \texttt{addendum}, \texttt{crossref}, \texttt{date}, \texttt{doi}, \texttt{eprint}, \texttt{eprintclass}, \texttt{eprinttype}, \texttt{editor}, \texttt{file}, \texttt{hal\_id}, \texttt{hal\_version}, |
| 30 |
\texttt{institution}, \texttt{introducedin}, \texttt{license}, \texttt{month}, \texttt{note}, \texttt{organization}, \texttt{publisher}, |
| 31 |
\texttt{related}, \texttt{relatedtype}, \texttt{relatedstring}, \texttt{repository}, \texttt{swhid}, \texttt{title}, \texttt{urldate}, \texttt{version} |
| 32 |
\subsection{codefragment} |
| 33 |
|
| 34 |
A code fragment (e.g. a specific algorithm in a program or library). |
| 35 |
Inherits values of missing fields from the entry mentioned in the \texttt{crossref} field. |
| 36 |
|
| 37 |
\emph{Required fields:} \texttt{url} |
| 38 |
|
| 39 |
\emph{Optional fields:} \texttt{author}, \texttt{abstract}, \texttt{addendum}, \texttt{crossref}, \texttt{date}, \texttt{doi}, \texttt{eprint}, \texttt{eprintclass}, \texttt{eprinttype}, \texttt{file}, \texttt{hal\_id}, \texttt{hal\_version}, |
| 40 |
\texttt{institution}, \texttt{introducedin}, \texttt{license}, \texttt{month}, \texttt{note}, \texttt{organization}, \texttt{publisher}, |
| 41 |
\texttt{related}, \texttt{relatedtype}, \texttt{relatedstring}, \texttt{repository}, \texttt{swhid}, \texttt{subtitle}, \texttt{title}, \texttt{urldate}, \texttt{version}, \texttt{year} |
| 42 |
|
| 43 |
The \textbf{softwareversion}, \textbf{softwaremodule} and \textbf{codefragment} entries can inherit |
| 44 |
the missing fields from another entry designated by the \emph{crossref} field, which |
| 45 |
is expected to be higher in the granularity hierarchy: \textbf{softwareversion} may |
| 46 |
inherit from a \textbf{software} entry, \textbf{softwaremodule} may inherit from a |
| 47 |
\textbf{softwareversion} or a \textbf{software} entry, and \textbf{codefragment} may inherit from all |
| 48 |
other entries. |
| 49 |
\section{Field description} |
| 50 |
The field description is based on the \href{http://mirrors.ibiblio.org/CTAN/macros/latex/exptl/biblatex/doc/biblatex.pdf}{biblatex documentation} |
| 51 |
\subsection{Data fields} |
| 52 |
\begin{description} |
| 53 |
\item[{abstract}] field (literal). This field is intended for recording |
| 54 |
abstracts in a bib file, to be printed by a special bibliography |
| 55 |
style. It is not used by all standard bibliography styles. |
| 56 |
\item[{addendum}] field (literal). Additional information to be printed at the end of the entry. |
| 57 |
The printing of this field can be controlled by the \texttt{addendum} bibliography option. |
| 58 |
\item[{author}] list (name). The authors of the title. |
| 59 |
\item[{date [biblatex only]}] field (date). The date of creation or release in ISO format. |
| 60 |
\item[{editor}] list (name). The coordinator(s) of large modular software projects. |
| 61 |
\item[{file}] field (verbatim). A link to download a copy of the work. |
| 62 |
\item[{doi}] field (verbatim). The Digital Object Identifier of the work. |
| 63 |
\item[{eprint [biblatex only]}] field (verbatim). An electronic identifier of the work. This field can be used to accommodate electronic identifiers different from the ones that have a dedicate field in this style. |
| 64 |
\item[{eprinttype [biblatex only]}] field (verbatim). The type of eprint identifier, e. g., the name of the archive, repository, service, or system the eprint field refers to. Will be typeset by default as a prefix of the content of the eprint field. |
| 65 |
\item[{eprintclass [biblatex only]}] field (verbatim). Additional information related to the resource indicated by the eprinttype field. This could be a section of an archive, a path indicating a service, a classification of some sort. |
| 66 |
\item[{\texttt{hal\_id} {[}not in biblatex standard styles]}] field (verbatim). A digital identifier for the |
| 67 |
software record including its description and metadata on HAL. |
| 68 |
\item[{\texttt{hal\_version} {[}not in biblatex standard styles]}] field (verbatim). The version of the HAL software record designated by \texttt{hal\_id}. |
| 69 |
\item[{license [not in biblatex standard styles]}] list (literal). The license/s of the title |
| 70 |
in SPDX format. |
| 71 |
\item[{month}] field (literal). The month of creation or release. |
| 72 |
In BibLaTeX, this must be an integer, not an ordinal or a string. |
| 73 |
For compatibility with BibTeX, one can also use the three letter |
| 74 |
abbreviations \emph{jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec}, |
| 75 |
which must be given without any braces or quotes. |
| 76 |
\item[{note}] field (literal). Release note of the cited version. |
| 77 |
\item[{institution}] list (literal). The institution(s) that took part in the software project. |
| 78 |
\item[{introducedin [not in biblatex standard styles]}] field (literal). If this is a software module or fragment, |
| 79 |
the version of the containing project where it has been first introduced. |
| 80 |
\item[{organization}] list (literal). The organization(s) that took part in the software project. |
| 81 |
\item[{publisher}] list (literal). The name(s) of the publisher(s) of the \emph{qualified} software record. |
| 82 |
\item[{related [biblatex only]}] field (separated values). Citation keys of other entries which have a relationship to this entry. |
| 83 |
\item[{relatedtype [biblatex only]}] field (identifier). |
| 84 |
\item[{relatedstring [biblatex only]}] field (literal). |
| 85 |
\item[{repository [not in biblatex standard styles]}] field (uri). The url of the code repository (e.g on GitHub, GitLab). |
| 86 |
\item[{swhid [not in biblatex standard styles]}] field (verbatim). The identifier of the digital |
| 87 |
object (a.k.a the software artifact itself). The intrinsic identifier |
| 88 |
of the item is an swh-id (swh:cnt for a content, swh:dir for a directory, swh:rev for |
| 89 |
a revision, swh:rel for a release, etc.). See \href{https://docs.softwareheritage.org/devel/swh-model/persistent-identifiers.html}{the SWH-ID specification}. |
| 90 |
\item[{subtitle}] field (literal). The title of a component of the software artifact. |
| 91 |
\item[{title}] field (literal). The title of the software artifact. |
| 92 |
\item[{url}] field (uri). The url of a reference resource (e.g the project's official webpage). |
| 93 |
\item[{urldate}] field (date). The access date of the address specified in the url field. |
| 94 |
\item[{version}] field (literal). The revision number of a piece of software, a manual, etc. |
| 95 |
\item[{year}] field (literal). The year of creation or release. |
| 96 |
\end{description} |
| 97 |
\subsection{Special fields} |
| 98 |
\begin{description} |
| 99 |
\item[{crossref}] field (entry key). This field holds an entry key for the |
| 100 |
cross-referencing feature. Child entries with a crossref field inherit data |
| 101 |
from the parent entry specified in the crossref field. |
| 102 |
\end{description} |
| 103 |
\section{Examples} |
| 104 |
|
| 105 |
Here are a few example of use of the proposed entries. |
| 106 |
\subsection{software and softwareversion} |
| 107 |
|
| 108 |
This is an example description of a software release using a single \texttt{@softwareversion} entry. |
| 109 |
|
| 110 |
\begin{verbatim} |
| 111 |
@softwareversion {delebecque:hal-02090402-condensed, |
| 112 |
title = {Scilab}, |
| 113 |
author = {Delebecque, Fran{\c c}ois and Gomez, Claude and Goursat, Maurice |
| 114 |
and Nikoukhah, Ramine and Steer, Serge and Chancelier, Jean-Philippe}, |
| 115 |
url = {https://www.scilab.org/}, |
| 116 |
date = {1994-01}, |
| 117 |
file = {https://hal.inria.fr/hal-02090402/file/scilab-1.1.tar.gz}, |
| 118 |
institution = {Inria}, |
| 119 |
license = {Scilab license}, |
| 120 |
hal_id = {hal-02090402}, |
| 121 |
hal_version = {v1}, |
| 122 |
swhid = {swh:1:dir:1ba0b67b5d0c8f10961d878d91ae9d6e499d746a; |
| 123 |
origin=https://hal.archives-ouvertes.fr/hal-02090402}, |
| 124 |
version = {1.1}, |
| 125 |
note = {First Scilab version. It was distributed by anonymous ftp.}, |
| 126 |
repository= {https://github.com/scilab/scilab}, |
| 127 |
abstract = {Software for Numerical Computation freely distributed.} |
| 128 |
} |
| 129 |
\end{verbatim} |
| 130 |
|
| 131 |
The same information can also be represented using a \texttt{@software} / \texttt{@softwareversion} |
| 132 |
pair that factors out the general information in the \texttt{@software} entry, so for |
| 133 |
other versions only the changes need to be added in a new \texttt{@softwareversion} entry: |
| 134 |
|
| 135 |
\begin{verbatim} |
| 136 |
@software {delebecque:hal-02090402, |
| 137 |
title = {Scilab}, |
| 138 |
author = {Delebecque, Fran{\c c}ois and Gomez, Claude and Goursat, Maurice |
| 139 |
and Nikoukhah, Ramine and Steer, Serge and Chancelier, Jean-Philippe}, |
| 140 |
date = {1994}, |
| 141 |
institution = {Inria}, |
| 142 |
license = {Scilab license}, |
| 143 |
hal_id = {hal-02090402}, |
| 144 |
hal_version = {v1}, |
| 145 |
url = {https://www.scilab.org/}, |
| 146 |
abstract = {Software for Numerical Computation freely distributed.}, |
| 147 |
repository= {https://github.com/scilab/scilab}, |
| 148 |
} |
| 149 |
|
| 150 |
@softwareversion {delebecque:hal-02090402v1, |
| 151 |
version = {1.1}, |
| 152 |
date = {1994-01}, |
| 153 |
file = {https://hal.inria.fr/hal-02090402/file/scilab-1.1.tar.gz}, |
| 154 |
swhid = {swh:1:dir:1ba0b67b5d0c8f10961d878d91ae9d6e499d746a; |
| 155 |
origin=https://hal.archives-ouvertes.fr/hal-02090402}, |
| 156 |
note = {First Scilab version. It was distributed by anonymous ftp.}, |
| 157 |
crossref = {delebecque:hal-02090402} |
| 158 |
} |
| 159 |
\end{verbatim} |
| 160 |
\subsection{softwaremodule} |
| 161 |
|
| 162 |
For highly modular software projects, like CGAL, one may need to |
| 163 |
reference specifically a particular module, that has distinguished |
| 164 |
authors, and may heve been introduced in the project at a later time. |
| 165 |
|
| 166 |
|
| 167 |
The following example uses \href{https://doc.cgal.org/latest/Manual/how\_to\_cite\_cgal.bib}{the informations in the existing BibTeX entries for CGAL} |
| 168 |
that currently refer to the user manual, to create the corresponding software entries. |
| 169 |
|
| 170 |
\begin{verbatim} |
| 171 |
@software {cgal, |
| 172 |
title = {The Computational Geometry Algorithms Library}, |
| 173 |
author = {{The CGAL Project}}, |
| 174 |
editor = {{CGAL Editorial Board}}, |
| 175 |
date = {1996}, |
| 176 |
url = {https://cgal.org/} |
| 177 |
} |
| 178 |
|
| 179 |
@softwareversion{cgal:5-0-2, |
| 180 |
crossref = {cgal}, |
| 181 |
version = {{5.0.2}}, |
| 182 |
url = {https://docs.cgal.org/5.02}, |
| 183 |
date = {2020}, |
| 184 |
swhid = {swh:1:rel:636541bbf6c77863908eae744610a3d91fa58855; |
| 185 |
origin=https://github.com/CGAL/cgal/} |
| 186 |
} |
| 187 |
|
| 188 |
@softwaremodule{cgal:lp-gi-20a, |
| 189 |
crossref = {cgal:5-0-2}, |
| 190 |
author = {Menelaos Karavelas}, |
| 191 |
subtitle = {{2D} Voronoi Diagram Adaptor}, |
| 192 |
license = {GPL}, |
| 193 |
introducedin = {cgal:3-1}, |
| 194 |
url = {https://doc.cgal.org/5.0.2/Manual/packages.html#PkgVoronoiDiagram2}, |
| 195 |
} |
| 196 |
\end{verbatim} |
| 197 |
|
| 198 |
Of course, it is always be possible to use only one entry to get an equivalent |
| 199 |
result; here one would use just \texttt{@softwaremodule} with all the needed data |
| 200 |
fields as follows: |
| 201 |
|
| 202 |
\begin{verbatim} |
| 203 |
@softwaremodule{cgal:lp-gi-20a-condensed, |
| 204 |
title = {The Computational Geometry Algorithms Library}, |
| 205 |
subtitle = {{2D} Voronoi Diagram Adaptor}, |
| 206 |
author = {Menelaos Karavelas}, |
| 207 |
editor = {{CGAL Editorial Board}}, |
| 208 |
license = {GPL}, |
| 209 |
version = {{5.0.2}}, |
| 210 |
introducedin = {cgal:3-1}, |
| 211 |
date = {2020}, |
| 212 |
swhid = {swh:1:rel:636541bbf6c77863908eae744610a3d91fa58855; |
| 213 |
origin=https://github.com/CGAL/cgal/}, |
| 214 |
url = {https://doc.cgal.org/5.0.2/Manual/packages.html#PkgVoronoiDiagram2}, |
| 215 |
} |
| 216 |
\end{verbatim} |
| 217 |
\subsection{codefragment} |
| 218 |
|
| 219 |
Finally, if one wants to have a particular code fragment appear in the bibliography, |
| 220 |
we can do this as follows: |
| 221 |
\begin{verbatim} |
| 222 |
@software {parmap, |
| 223 |
title = {The Parmap library}, |
| 224 |
author = {Di Cosmo, Roberto and Marco Danelutto}, |
| 225 |
date = {2012}, |
| 226 |
institution = {{Inria} and {University of Paris} and {University of Pisa}}, |
| 227 |
license = {LGPL-2.0}, |
| 228 |
url = {https://rdicosmo.github.io/parmap/}, |
| 229 |
repository= {https://github.com/rdicosmo/parmap}, |
| 230 |
} |
| 231 |
|
| 232 |
@softwareversion {parmap-1.1.1, |
| 233 |
crossref = {parmap}, |
| 234 |
date = {2020}, |
| 235 |
version = {1.1.1}, |
| 236 |
swhid = {swh:1:rel:373e2604d96de4ab1d505190b654c5c4045db773; |
| 237 |
origin=https://github.com/rdicosmo/parmap; |
| 238 |
visit=swh:1:snp:2a6c348c53eb77d458f24c9cbcecaf92e3c45615}, |
| 239 |
} |
| 240 |
|
| 241 |
@codefragment {simplemapper, |
| 242 |
subtitle = {Core mapping routine}, |
| 243 |
swhid = {swh:1:cnt:43a6b232768017b03da934ba22d9cc3f2726a6c5; |
| 244 |
origin=https://github.com/rdicosmo/parmap; |
| 245 |
visit=swh:1:snp:2a6c348c53eb77d458f24c9cbcecaf92e3c45615; |
| 246 |
anchor=swh:1:rel:373e2604d96de4ab1d505190b654c5c4045db773; |
| 247 |
path=/src/parmap.ml; |
| 248 |
lines=192-228}, |
| 249 |
crossref = {parmap-1.1.1} |
| 250 |
} |
| 251 |
\end{verbatim} |
| 252 |
|
| 253 |
Of course, it is always be possible to use only one entry to get an equivalent |
| 254 |
result; here one would use just \texttt{@codefragment} with all the needed data |
| 255 |
fields as follows: |
| 256 |
|
| 257 |
\begin{verbatim} |
| 258 |
@codefragment {simplemapper-condensed, |
| 259 |
title = {The Parmap library}, |
| 260 |
author = {Di Cosmo, Roberto and Marco Danelutto}, |
| 261 |
date = {2020}, |
| 262 |
institution = {{Inria} and {University of Paris} and {University of Pisa}}, |
| 263 |
license = {LGPL-2.0}, |
| 264 |
url = {https://rdicosmo.github.io/parmap/}, |
| 265 |
repository= {https://github.com/rdicosmo/parmap}, |
| 266 |
version = {1.1.1}, |
| 267 |
subtitle = {Core mapping routine}, |
| 268 |
swhid = {swh:1:cnt:43a6b232768017b03da934ba22d9cc3f2726a6c5; |
| 269 |
origin=https://github.com/rdicosmo/parmap; |
| 270 |
visit=swh:1:snp:2a6c348c53eb77d458f24c9cbcecaf92e3c45615; |
| 271 |
anchor=swh:1:rel:373e2604d96de4ab1d505190b654c5c4045db773; |
| 272 |
path=/src/parmap.ml; |
| 273 |
lines=192-228} |
| 274 |
} |
| 275 |
\end{verbatim} |