-
Notifications
You must be signed in to change notification settings - Fork 0
/
DocumentLoad.cs
81 lines (66 loc) · 2.14 KB
/
DocumentLoad.cs
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
using System.Collections.Generic;
using Newtonsoft.Json;
namespace DatasetProg
{
// classes created to represent each attribute of json-ld end file
public class ContactPoint
{
// JsonProperty used to include @ sign in final tags to enable discoverability
[JsonProperty("@type")]
public string type { get; set; }
public string contactType { get; set; }
public string telephone { get; set; }
public string email { get; set; }
}
public class Creator
{
[JsonProperty("@type")]
public string type { get; set; }
public string url { get; set; }
public string name { get; set; }
public ContactPoint contactPoint { get; set; }
}
public class IncludedInDataCatalog
{
[JsonProperty("@type")]
public string type { get; set; }
public string name { get; set; }
}
public class Distribution
{
[JsonProperty("@type")]
public string type { get; set; }
public string encodingFormat { get; set; }
public string contentUrl { get; set; }
}
public class Geo
{
[JsonProperty("@type")]
public string type { get; set; }
public string latitude { get; set; }
public string longitude { get; set; }
}
public class SpatialCoverage
{
[JsonProperty("@type")]
public string type { get; set; }
public Geo geo { get; set; }
}
public class Dataset
{
[JsonProperty("@context")]
public string context { get; set; }
[JsonProperty("@type")]
public string type { get; set; }
public string name { get; set; }
public string description { get; set; }
public string url { get; set; }
public string sameAs { get; set; }
public IList<string> keywords { get; set; }
public Creator creator { get; set; }
public IncludedInDataCatalog includedInDataCatalog { get; set; }
public IList<Distribution> distribution { get; set; }
public string temporalCoverage { get; set; }
public SpatialCoverage spatialCoverage { get; set; }
}
}