equal
deleted
inserted
replaced
|
1 <?php |
|
2 namespace CorpusParole\Services; |
|
3 |
|
4 interface BnfResolverInterface { |
|
5 |
|
6 /** |
|
7 * Get name from Viaf id |
|
8 * @param string $id The id to resolve. Can be an url starting with http://data.bnf.fr/ or http://ark.bnf.fr/ |
|
9 * @return a string with the name |
|
10 */ |
|
11 public function getLabel($id); |
|
12 |
|
13 /** |
|
14 * Get a list of names from an array of viaf ids. |
|
15 * @param array $ids The array of ids to resolve. |
|
16 * Each id can be an url starting with http://data.bnf.fr/ or http://ark.bnf.fr/ |
|
17 */ |
|
18 public function getLabels(array $ids); |
|
19 |
|
20 } |