MCPcopy Create free account
hub / github.com/cockscomb/cel2sql / NewWikipediaTableMetadata

Function NewWikipediaTableMetadata

test/testdata.go:213–377  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

211}
212
213func NewWikipediaTableMetadata() *bigquery.TableMetadata {
214 return &bigquery.TableMetadata{
215 Name: "",
216 Location: "US",
217 Description: "",
218 Schema: bigquery.Schema{
219 &bigquery.FieldSchema{
220 Name: "title",
221 Description: "The title of the page, as displayed on the page (not in the URL). Always starts with a capital letter and may begin with a namespace (e.g. \"Talk:\", \"User:\", \"User Talk:\", ... )",
222 Repeated: false,
223 Required: true,
224 Type: "STRING",
225 PolicyTags: nil,
226 Schema: nil,
227 },
228 &bigquery.FieldSchema{
229 Name: "id",
230 Description: "A unique ID for the article that was revised. These correspond to the order in which articles were created, except for the first several thousand IDs, which are issued in alphabetical order.",
231 Repeated: false,
232 Required: false,
233 Type: "INTEGER",
234 PolicyTags: nil,
235 Schema: nil,
236 },
237 &bigquery.FieldSchema{
238 Name: "language",
239 Description: "Empty in the current dataset.",
240 Repeated: false,
241 Required: true,
242 Type: "STRING",
243 PolicyTags: nil,
244 Schema: nil,
245 },
246 &bigquery.FieldSchema{
247 Name: "wp_namespace",
248 Description: "Wikipedia segments its pages into namespaces (e.g. \"Talk\", \"User\", etc.)\n\nMEDIA = 202; // =-2 in WP XML, but these values must be >0\nSPECIAL = 201; // =-1 in WP XML, but these values must be >0\nMAIN = 0;\nTALK = 1;\nUSER = 2;\nUSER_TALK = 3;\nWIKIPEDIA = 4;\nWIKIPEDIA_TALK = 5;\nIMAGE = 6; // Has since been renamed to \"File\" in WP XML.\nIMAGE_TALK = 7; // Equivalent to \"File talk\".\nMEDIAWIKI = 8;\nMEDIAWIKI_TALK = 9;\nTEMPLATE = 10;\nTEMPLATE_TALK = 11;\nHELP = 12;\nHELP_TALK = 13;\nCATEGORY = 14;\nCATEGORY_TALK = 15;\nPORTAL = 100;\nPORTAL_TALK = 101;\nWIKIPROJECT = 102;\nWIKIPROJECT_TALK = 103;\nREFERENCE = 104;\nREFERENCE_TALK = 105;\nBOOK = 108;\nBOOK_TALK = 109;",
249 Repeated: false,
250 Required: true,
251 Type: "INTEGER",
252 PolicyTags: nil,
253 Schema: nil,
254 },
255 &bigquery.FieldSchema{
256 Name: "is_redirect",
257 Description: "Versions later than ca. 200908 may have a redirection marker in the XML.",
258 Repeated: false,
259 Required: false,
260 Type: "BOOLEAN",
261 PolicyTags: nil,
262 Schema: nil,
263 },
264 &bigquery.FieldSchema{
265 Name: "revision_id",
266 Description: "These are unique across all revisions to all pages in a particular language and increase with time. Sorting the revisions to a page by revision_id will yield them in chronological order.",
267 Repeated: false,
268 Required: false,
269 Type: "INTEGER",
270 PolicyTags: nil,

Callers 3

TestConvertFunction · 0.92

Calls

no outgoing calls

Tested by 3

TestConvertFunction · 0.74