1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Spatie\SchemaOrg; |
4
|
|
|
|
5
|
|
|
/** |
6
|
|
|
* A body of structured information describing some topic(s) of interest. |
7
|
|
|
* |
8
|
|
|
* @see http://schema.org/Dataset |
9
|
|
|
*/ |
10
|
|
|
class Dataset extends CreativeWork |
11
|
|
|
{ |
12
|
|
|
/** |
13
|
|
|
* A data catalog which contains this dataset. |
14
|
|
|
* |
15
|
|
|
* @param DataCatalog|DataCatalog[] $catalog |
16
|
|
|
* |
17
|
|
|
* @return static |
18
|
|
|
* |
19
|
|
|
* @see http://schema.org/catalog |
20
|
|
|
*/ |
21
|
|
|
public function catalog($catalog) |
22
|
|
|
{ |
23
|
|
|
return $this->setProperty('catalog', $catalog); |
24
|
|
|
} |
25
|
|
|
|
26
|
|
|
/** |
27
|
|
|
* The range of temporal applicability of a dataset, e.g. for a 2011 census |
28
|
|
|
* dataset, the year 2011 (in ISO 8601 time interval format). |
29
|
|
|
* |
30
|
|
|
* @param \DateTimeInterface|\DateTimeInterface[] $datasetTimeInterval |
31
|
|
|
* |
32
|
|
|
* @return static |
33
|
|
|
* |
34
|
|
|
* @see http://schema.org/datasetTimeInterval |
35
|
|
|
*/ |
36
|
|
|
public function datasetTimeInterval($datasetTimeInterval) |
37
|
|
|
{ |
38
|
|
|
return $this->setProperty('datasetTimeInterval', $datasetTimeInterval); |
39
|
|
|
} |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* A downloadable form of this dataset, at a specific location, in a |
43
|
|
|
* specific format. |
44
|
|
|
* |
45
|
|
|
* @param DataDownload|DataDownload[] $distribution |
46
|
|
|
* |
47
|
|
|
* @return static |
48
|
|
|
* |
49
|
|
|
* @see http://schema.org/distribution |
50
|
|
|
*/ |
51
|
|
|
public function distribution($distribution) |
52
|
|
|
{ |
53
|
|
|
return $this->setProperty('distribution', $distribution); |
54
|
|
|
} |
55
|
|
|
|
56
|
|
|
/** |
57
|
|
|
* A data catalog which contains this dataset (this property was previously |
58
|
|
|
* 'catalog', preferred name is now 'includedInDataCatalog'). |
59
|
|
|
* |
60
|
|
|
* @param DataCatalog|DataCatalog[] $includedDataCatalog |
61
|
|
|
* |
62
|
|
|
* @return static |
63
|
|
|
* |
64
|
|
|
* @see http://schema.org/includedDataCatalog |
65
|
|
|
*/ |
66
|
|
|
public function includedDataCatalog($includedDataCatalog) |
67
|
|
|
{ |
68
|
|
|
return $this->setProperty('includedDataCatalog', $includedDataCatalog); |
69
|
|
|
} |
70
|
|
|
|
71
|
|
|
/** |
72
|
|
|
* A data catalog which contains this dataset. |
73
|
|
|
* |
74
|
|
|
* @param DataCatalog|DataCatalog[] $includedInDataCatalog |
75
|
|
|
* |
76
|
|
|
* @return static |
77
|
|
|
* |
78
|
|
|
* @see http://schema.org/includedInDataCatalog |
79
|
|
|
*/ |
80
|
|
|
public function includedInDataCatalog($includedInDataCatalog) |
81
|
|
|
{ |
82
|
|
|
return $this->setProperty('includedInDataCatalog', $includedInDataCatalog); |
83
|
|
|
} |
84
|
|
|
|
85
|
|
|
/** |
86
|
|
|
* The International Standard Serial Number (ISSN) that identifies this |
87
|
|
|
* serial publication. You can repeat this property to identify different |
88
|
|
|
* formats of, or the linking ISSN (ISSN-L) for, this serial publication. |
89
|
|
|
* |
90
|
|
|
* @param string|string[] $issn |
91
|
|
|
* |
92
|
|
|
* @return static |
93
|
|
|
* |
94
|
|
|
* @see http://schema.org/issn |
95
|
|
|
*/ |
96
|
|
|
public function issn($issn) |
97
|
|
|
{ |
98
|
|
|
return $this->setProperty('issn', $issn); |
99
|
|
|
} |
100
|
|
|
|
101
|
|
|
/** |
102
|
|
|
* The range of spatial applicability of a dataset, e.g. for a dataset of |
103
|
|
|
* New York weather, the state of New York. |
104
|
|
|
* |
105
|
|
|
* @param Place|Place[] $spatial |
106
|
|
|
* |
107
|
|
|
* @return static |
108
|
|
|
* |
109
|
|
|
* @see http://schema.org/spatial |
110
|
|
|
*/ |
111
|
|
|
public function spatial($spatial) |
112
|
|
|
{ |
113
|
|
|
return $this->setProperty('spatial', $spatial); |
114
|
|
|
} |
115
|
|
|
|
116
|
|
|
/** |
117
|
|
|
* The range of temporal applicability of a dataset, e.g. for a 2011 census |
118
|
|
|
* dataset, the year 2011 (in ISO 8601 time interval format). |
119
|
|
|
* |
120
|
|
|
* @param \DateTimeInterface|\DateTimeInterface[] $temporal |
121
|
|
|
* |
122
|
|
|
* @return static |
123
|
|
|
* |
124
|
|
|
* @see http://schema.org/temporal |
125
|
|
|
*/ |
126
|
|
|
public function temporal($temporal) |
127
|
|
|
{ |
128
|
|
|
return $this->setProperty('temporal', $temporal); |
129
|
|
|
} |
130
|
|
|
|
131
|
|
|
} |
132
|
|
|
|