Skip to content

Commit 5dba9fd

Browse files
committed
Update contributors.
1 parent f76cb77 commit 5dba9fd

File tree

3 files changed

+63
-16
lines changed

3 files changed

+63
-16
lines changed

spec/common/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ This repository is meant to be used as a submodule in multiple repository holdin
55

66
## Retrieving group participants
77

8-
The `participants.js` Node script can be used to retrieve the list of working group participants. It requires an API Key.
8+
The `participants.js` Node script can be used to retrieve the list of working group participants. It takes an optional API Key (use empty string to omit).
99

1010
node participants.js <apikey> wg/rdf-star > participants.html

spec/common/participants.html

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,44 @@
1-
Members of the RDF-star Working Group Group included Achille Zappa, Adrian Gschwend, Alan Snyder, Amin Anjomshoaa, Andy Seaborne, Antoine Zimmermann, Dan Brickley, Dave Raggett, Dominik Tomaszuk, Dörthe Arndt, Enrico Franconi, Erich Bremer, Fabien Gandon, Felix Sasaki, Gregg Kellogg, Gregory Williams, Jean-Yves Rossi, Jose Emilio Labra Gayo, Julián Arenas-Guerrero, Kurt Cagle, Niklas Lindström, Olaf Hartig, Ora Lassila, Pasquale Lisena, Peter Patel-Schneider, Pierre-Antoine Champin, Raphaël Troncy, Richard Lea, Ruben Taelman, Rémi Ceres, Souripriya Das, Ted Thibodeau Jr, Thomas Lörtsch, Thomas Pellissier Tanon, Timothée Haudebourg, and Vladimir Alexiev.
1+
Members of the RDF-star Working Group Group included
2+
Vladimir Alexiev,
3+
Amin Anjomshoaa,
4+
Julián Arenas-Guerrero,
5+
Dörthe Arndt,
6+
Bilal Ben Mahria,
7+
Erich Bremer,
8+
Kurt Cagle,
9+
Rémi Ceres,
10+
Pierre-Antoine Champin,
11+
Souripriya Das,
12+
Daniil Dobriy,
13+
Enrico Franconi,
14+
Jeffrey Phillips Freeman,
15+
Fabien Gandon,
16+
Benjamin Goering,
17+
Adrian Gschwend,
18+
Olaf Hartig,
19+
Timothée Haudebourg,
20+
Ian Horrocks,
21+
Gregg Kellogg,
22+
Mark Kim,
23+
Jose Emilio Labra Gayo,
24+
Ora Lassila,
25+
Richard Lea,
26+
Niklas Lindström,
27+
Pasquale Lisena,
28+
Thomas Lörtsch,
29+
Matthew Nguyen,
30+
Peter Patel-Schneider,
31+
Thomas Pellissier Tanon,
32+
Dave Raggett,
33+
Jean-Yves ROSSI,
34+
Felix Sasaki,
35+
Andy Seaborne,
36+
Ruben Taelman,
37+
Ted Thibodeau Jr,
38+
Dominik Tomaszuk,
39+
Raphaël Troncy,
40+
William Van Woensel,
41+
Gregory Williams,
42+
Jesse Wright,
43+
Achille Zappa, and
44+
Antoine Zimmermann.

spec/common/participants.js

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,22 @@
1010
const https = require('https');
1111
const process = require('process');
1212

13-
const APIKEY = process.env.APIKEY || process.argv[2];
13+
const APIKEY = process.env.APIKEY || process.argv[2] || '';
1414
const GROUP = process.env.GROUP || process.argv[3] || "wg/rdf-star";
1515

16-
if (!APIKEY) {
17-
console.error('Error: APIKEY must be specified as either an environment variable or a command-line argument.');
18-
process.exit(1);
19-
}
16+
var apikey = APIKEY.length > 0 ? `&apikey=${APIKEY}` : ''
2017

2118
const groupOptions = {
2219
hostname: 'api.w3.org',
23-
path: `/groups/${GROUP}?items=50&apikey=${APIKEY}`,
20+
path: `/groups/${GROUP}?items=50${apikey}`,
2421
headers: {
2522
'Accept': 'application/json'
2623
}
2724
};
2825

2926
const userOptions = {
3027
hostname: 'api.w3.org',
31-
path: `/groups/${GROUP}/users?items=50&apikey=${APIKEY}`,
28+
path: `/groups/${GROUP}/users?items=50${apikey}`,
3229
headers: {
3330
'Accept': 'application/json'
3431
}
@@ -53,16 +50,23 @@ https.get(groupOptions, (res) => {
5350

5451
res.on('end', () => {
5552
const users = JSON.parse(userData)._links.users.map(u => u.title);
56-
const sortedUsers = users.sort();
5753

58-
if (sortedUsers.length === 1) {
59-
console.log(`The sole member of the ${groupName} Group was ${sortedUsers[0]}.`);
60-
} else if (sortedUsers.length === 2) {
61-
const joinedUsers = sortedUsers.join(' and ');
54+
if (users.length === 1) {
55+
console.log(`The sole member of the ${groupName} Group was ${users[0]}.`);
56+
} else if (users.length === 2) {
57+
const joinedUsers = users.join(' and ');
6258
console.log(`Members of the ${groupName} Group included ${joinedUsers}.`);
6359
} else {
64-
const joinedUsers = sortedUsers.slice(0, -1).join(', ');
65-
console.log(`Members of the ${groupName} Group included ${joinedUsers}, and ${sortedUsers[sortedUsers.length - 1]}.`);
60+
// Find the maximum length of the first part (before the space)
61+
const maxLength = Math.max(...users.map(user => user.split(" ")[0].length));
62+
63+
// Right-align the first component and format the strings
64+
const alignedUsers = users.map(user => {
65+
const [first, ...rest] = user.split(" ");
66+
return first.padStart(maxLength, " ") + " " + rest.join(" ");
67+
});
68+
const joinedUsers = alignedUsers.slice(0, -1).join(",\n");
69+
console.log(`Members of the ${groupName} Group included\n${joinedUsers}, and\n${alignedUsers[users.length - 1]}.`);
6670
}
6771
});
6872
}).on('error', (err) => {

0 commit comments

Comments
 (0)