| 1 | <?php declare(strict_types = 1); |
||
| 12 | class Mapping extends Resource |
||
| 13 | { |
||
| 14 | const TYPES = [ |
||
| 15 | 'http://www.w3.org/2004/02/skos/core#mappingRelation', |
||
| 16 | 'http://www.w3.org/2004/02/skos/core#closeMatch', |
||
| 17 | 'http://www.w3.org/2004/02/skos/core#exactMatch', |
||
| 18 | 'http://www.w3.org/2004/02/skos/core#broadMatch', |
||
| 19 | 'http://www.w3.org/2004/02/skos/core#narrowMatch', |
||
| 20 | 'http://www.w3.org/2004/02/skos/core#relatedMatch', |
||
| 21 | ]; |
||
| 22 | |||
| 23 | const FIELDS = [ |
||
| 24 | # TODO |
||
| 25 | ]; |
||
| 26 | |||
| 27 | public $from; |
||
| 28 | public $to; |
||
| 29 | |||
| 30 | public $fromScheme; |
||
| 31 | public $toScheme; |
||
| 32 | |||
| 33 | public $mappingRelevance; // experimental |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Create a new mapping. |
||
| 37 | * |
||
| 38 | * @param String|Array|Resource JSON data to copy |
||
| 39 | */ |
||
| 40 | public function __construct($data = null) |
||
| 52 | } |
||
| 53 |