-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.go
48 lines (41 loc) · 1.39 KB
/
types.go
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
package googlekg
type KGRequest struct {
URL string
}
type KG struct {
Context KGContext `json:"@context"`
Type string `json:"@type"`
ItemListElement []KGItem `json:"itemListElement"`
}
type KGContext struct {
Vocab string `json:"@vocab"`
Goog string `json:"goog"`
ResultScore string `json:"resultScore"`
DetailedDescription string `json:"detailedDescription"`
EntitySearchResult string `json:"EntitySearchResult"`
KG string `json:"kg"`
}
type KGItem struct {
Type string `json:"@type"`
Result KGItemResult `json:"result"`
ResultScore float64 `json:"resultScore"`
}
type KGItemResult struct {
ID string `json:"@id"`
Name string `json:"name"`
Type []string `json:"@type"`
Description string `json:"description"`
Image KGImage `json:"image"`
DetailedDescription KGDetailedDescription `json:"detailedDescription"`
URL string `json:"url"`
}
type KGImage struct {
ContentUrl string `json:"contentUrl"`
URL string `json:"url"`
License string `json:"license"`
}
type KGDetailedDescription struct {
ArticleBody string `json:"articleBody"`
URL string `json:"url"`
License string `json:"license"`
}