-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathWikidataFields.cs
More file actions
27 lines (25 loc) · 932 Bytes
/
WikidataFields.cs
File metadata and controls
27 lines (25 loc) · 932 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace WikiAccess
{
/// <summary>
/// Container to hold a single item grabbed from Wikidata
/// </summary>
public class WikidataFields
{
public int ID { get; set; }
public Dictionary<string, string> WikipediaLinks { get; set; }
public Dictionary<string, string> Labels { get; set; }
public Dictionary<string, string> Description { get; set; }
public List<KeyValuePair<int, WikidataClaim>> Claims { get; set; } // Cannot use Dictionary as can have multiple claims per item
public WikidataFields()
{
WikipediaLinks = new Dictionary<string, string>();
Labels = new Dictionary<string, string>();
Description = new Dictionary<string, string>();
Claims = new List<KeyValuePair<int, WikidataClaim>>();
}
}
}