Debian Codegraph @

texmf-dist/doc/latex/biblatex-software/showcase-crossref.bib

raw
1 % Showcase bibliography demonstrating crossref functionality
2 % This file contains examples of all crossref features and inheritance chains
3
4 % ============================================================================
5 % SECTION 1: Basic Software → Version Examples
6 % ============================================================================
7 % Using real-world Scilab example from biblio.bib
8
9 % Scilab base software (real entry)
10 @software {delebecque:hal-02090402,
11 title = {Scilab},
12 author = {Delebecque, Fran{\c c}ois and Gomez, Claude and Goursat, Maurice
13 and Nikoukhah, Ramine and Steer, Serge and Chancelier, Jean-Philippe},
14 date = {1994},
15 institution = {Inria},
16 license = {Scilab license},
17 hal_id = {hal-02090402},
18 hal_version = {v1},
19 url = {https://www.scilab.org/},
20 abstract = {Software for Numerical Computation freely distributed.},
21 repository = {https://github.com/scilab/scilab}
22 }
23
24 % Scilab version 1.1 (real entry) - demonstrates different date (1994 vs 1994-01)
25 @softwareversion {delebecque:hal-02090402v1,
26 crossref = {delebecque:hal-02090402},
27 version = {1.1},
28 date = {1994-01},
29 file = {https://hal.inria.fr/hal-02090402/file/scilab-1.1.tar.gz},
30 swhid = {swh:1:dir:1ba0b67b5d0c8f10961d878d91ae9d6e499d746a;
31 origin=https://hal.archives-ouvertes.fr/hal-02090402},
32 note = {First Scilab version. It was distributed by anonymous ftp.}
33 }
34
35 % Scilab version 2.0 (variant) - demonstrates different version number
36 @softwareversion {delebecque:hal-02090402v2,
37 crossref = {delebecque:hal-02090402},
38 version = {2.0},
39 date = {1995},
40 swhid = {swh:1:rel:example1234567890abcdef1234567890abcdef12345678;
41 origin=https://hal.archives-ouvertes.fr/hal-02090402},
42 note = {Scilab version 2.0 with enhanced features.}
43 }
44
45 % Scilab version with different title (variant) - demonstrates title override
46 @softwareversion {delebecque:hal-02090402v3,
47 crossref = {delebecque:hal-02090402},
48 version = {1.5},
49 title = {Scilab Extended},
50 date = {1994-06},
51 note = {Extended version of Scilab with additional toolboxes.}
52 }
53
54 % Synthetic example: Version with all fields equal to parent (will show warning)
55 % Kept for pedagogical demonstration of duplicate detection
56 @software {showcase-base-software,
57 title = {Example Software},
58 author = {Smith, John and Doe, Jane},
59 date = {2020},
60 institution = {Example University},
61 url = {https://example.com/software},
62 license = {MIT}
63 }
64
65 @softwareversion {showcase-version-duplicate,
66 crossref = {showcase-base-software},
67 version = {1.0},
68 % All fields inherited, nothing new - this will trigger a warning
69 }
70
71 % ============================================================================
72 % SECTION 2: Module Inheritance Examples
73 % ============================================================================
74 % Using real-world CGAL example from biblio.bib
75
76 % CGAL base software (real entry)
77 @software {cgal,
78 title = {The Computational Geometry Algorithms Library},
79 author = {{The CGAL Project}},
80 editor = {{CGAL Editorial Board}},
81 date = {1996},
82 url = {https://cgal.org/}
83 }
84
85 % CGAL version (real entry)
86 @softwareversion {cgal:5-0-2,
87 crossref = {cgal},
88 version = {{5.0.2}},
89 url = {https://docs.cgal.org/5.02},
90 date = {2020},
91 swhid = {swh:1:rel:636541bbf6c77863908eae744610a3d91fa58855;
92 origin=https://github.com/CGAL/cgal/}
93 }
94
95 % CGAL module (real entry) - demonstrates module without explicit version
96 @softwaremodule {cgal:lp-gi-20a,
97 crossref = {cgal:5-0-2},
98 author = {Menelaos Karavelas},
99 subtitle = {{2D} Voronoi Diagram Adaptor},
100 license = {GPL},
101 introducedin = {cgal:3-1},
102 url = {https://doc.cgal.org/5.0.2/Manual/packages.html#PkgVoronoiDiagram2}
103 }
104
105 % CGAL module variant with explicit version (for demonstration)
106 @softwaremodule {cgal:module-with-version,
107 crossref = {cgal:5-0-2},
108 author = {Sylvain Pion},
109 subtitle = {{3D} Convex Hull},
110 version = {4.0},
111 license = {LGPL},
112 url = {https://doc.cgal.org/5.0.2/Manual/packages.html#PkgConvexHull3}
113 }
114
115 % CGAL module variant with different author (for demonstration)
116 @softwaremodule {cgal:module-diff-author,
117 crossref = {cgal:5-0-2},
118 author = {Andreas Fabri},
119 subtitle = {{2D} Arrangements},
120 license = {GPL},
121 url = {https://doc.cgal.org/5.0.2/Manual/packages.html#PkgArrangement2}
122 }
123
124 % CGAL fragment from module (for 4-level chain demonstration)
125 @codefragment {cgal:voronoi-fragment,
126 crossref = {cgal:lp-gi-20a},
127 subtitle = {Print Endpoint},
128 swhid = {swh:1:cnt:8451c216bded7e6769381cb49c5ebc1c7ca3f274;
129 origin=https://github.com/CGAL/cgal;
130 visit=swh:1:snp:b9276dcc8c0657480579375e334e4c59bc2d81ad;
131 anchor=swh:1:rel:636541bbf6c77863908eae744610a3d91fa58855;
132 path=/Voronoi_diagram_2/examples/Voronoi_diagram_2/vd_2_point_location.cpp;
133 lines=30-39}
134 }
135
136 % ============================================================================
137 % SECTION 3: Fragment Inheritance Examples
138 % ============================================================================
139 % Using real-world Parmap example from biblio.bib
140
141 % Parmap base software (real entry)
142 @software {parmap,
143 title = {The Parmap library},
144 author = {Di Cosmo, Roberto and Marco Danelutto},
145 date = {2012},
146 institution = {{Inria} and {University of Paris} and {University of Pisa}},
147 license = {LGPL-2.0},
148 url = {https://rdicosmo.github.io/parmap/},
149 repository = {https://github.com/rdicosmo/parmap}
150 }
151
152 % Parmap version (real entry)
153 @softwareversion {parmap-1.1.1,
154 crossref = {parmap},
155 date = {2020},
156 version = {1.1.1},
157 swhid = {swh:1:rel:373e2604d96de4ab1d505190b654c5c4045db773;
158 origin=https://github.com/rdicosmo/parmap;
159 visit=swh:1:snp:2a6c348c53eb77d458f24c9cbcecaf92e3c45615}
160 }
161
162 % Parmap code fragment (real entry) - fragment from version
163 @codefragment {simplemapper,
164 crossref = {parmap-1.1.1},
165 subtitle = {Core mapping routine},
166 swhid = {swh:1:cnt:43a6b232768017b03da934ba22d9cc3f2726a6c5;
167 origin=https://github.com/rdicosmo/parmap;
168 visit=swh:1:snp:2a6c348c53eb77d458f24c9cbcecaf92e3c45615;
169 anchor=swh:1:rel:373e2604d96de4ab1d505190b654c5c4045db773;
170 path=/src/parmap.ml;
171 lines=192-228}
172 }
173
174 % Parmap module (variant) - enables 4-level chain demonstration
175 @softwaremodule {parmap-module-core,
176 crossref = {parmap-1.1.1},
177 author = {Di Cosmo, Roberto},
178 subtitle = {Parallel mapping core},
179 url = {https://github.com/rdicosmo/parmap/tree/v1.1.1/src/core}
180 }
181
182 % Parmap fragment from module (variant) - demonstrates 4-level chain
183 @codefragment {parmap-fragment-from-module,
184 crossref = {parmap-module-core},
185 subtitle = {Work distribution algorithm},
186 swhid = {swh:1:cnt:example9876543210fedcba9876543210fedcba98765432;
187 origin=https://github.com/rdicosmo/parmap;
188 visit=swh:1:snp:2a6c348c53eb77d458f24c9cbcecaf92e3c45615;
189 anchor=swh:1:rel:373e2604d96de4ab1d505190b654c5c4045db773;
190 path=/src/core/distribution.ml;
191 lines=45-78}
192 }
193
194 % ============================================================================
195 % SECTION 4: Multi-level Inheritance Examples
196 % ============================================================================
197 % Multi-level chains use real-world examples defined above:
198 % - 3-level: cgal → cgal:5-0-2 → cgal:lp-gi-20a (defined in Section 2)
199 % - 4-level: parmap → parmap-1.1.1 → parmap-module-core → parmap-fragment-from-module (defined in Section 3)
200 % No additional entries needed for multi-level examples
201
202 % ============================================================================
203 % SECTION 5: Edge Cases and Special Scenarios
204 % ============================================================================
205 % These synthetic examples are kept for pedagogical demonstration of edge cases
206 % that may not exist in real-world data
207
208 % Example with editor field
209 @software {showcase-with-editor,
210 title = {Edited Software},
211 author = {Author, Main},
212 editor = {Editor, Chief},
213 date = {2021},
214 institution = {Publishing House}
215 }
216
217 @softwareversion {showcase-editor-same,
218 crossref = {showcase-with-editor},
219 version = {1.0}
220 }
221
222 @softwareversion {showcase-editor-diff,
223 crossref = {showcase-with-editor},
224 version = {1.1},
225 editor = {Editor, Different}
226 }
227
228 % Example with date precision differences
229 @software {showcase-date-base,
230 title = {Date Test Software},
231 author = {Tester, Date},
232 date = {2020},
233 institution = {Test Lab}
234 }
235
236 @softwareversion {showcase-date-year-month,
237 crossref = {showcase-date-base},
238 version = {1.0.1},
239 date = {2020-06}
240 }
241
242 @softwareversion {showcase-date-full,
243 crossref = {showcase-date-base},
244 version = {1.0.2},
245 date = {2020-06-15}
246 }
247
248 % Example with multiple authors
249 @software {showcase-multi-author,
250 title = {Collaborative Software},
251 author = {First, Author and Second, Author and Third, Author},
252 date = {2021},
253 institution = {Collaboration Inc}
254 }
255
256 @softwareversion {showcase-multi-author-version,
257 crossref = {showcase-multi-author},
258 version = {2.0},
259 author = {First, Author and Second, Author and Third, Author and Fourth, Author}
260 }
261