forked from schemaorg/schemaorg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsdo-datafeed-examples.txt
97 lines (76 loc) · 1.8 KB
/
sdo-datafeed-examples.txt
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
TYPES: #datafeed-1 DataFeed
PRE-MARKUP:
Company Directory
last modified: 2015-01-02
Alice: [email protected]
entry added: 2014-07-01
Bob: [email protected]
entry modified: 2015-01-02
MICRODATA:
TODO.
RDFA:
TODO.
JSON:
<script type="application/ld+json">
{
"@context": "http://schema.org/",
"@type": "DataFeed",
"name": "Company directory",
"dateModified": "2015-01-02",
"dataFeedElement": [
{
"@type": "DataFeedItem",
"dateCreated": "2014-07-01",
"item": {
"@type": "Person",
"name": "Alice",
"email": "[email protected]"
}
},
{
"@type": "DataFeedItem",
"dateModified": "2015-01-02",
"item": {
"@type": "Person",
"name": "Bob",
"email": "[email protected]"
}
}
]
}
</script>
TYPES: #datafeed-2 MobileApplication, DataFeed, supportingData
PRE-MARKUP:
The e-reader comes installed with Anna Karenina, Pride and Prejudice, and My Bondage and My Freedom
MICRODATA:
Example is JSON-LD only.
RDFA:
Example is JSON-LD only.
JSON:
<script type="application/ld+json">
{
"@context": "http://schema.org/",
"@type": "MobileApplication",
"applicationCategory": "https://en.wikipedia.org/wiki/E-reader",
"supportingData": {
"@type": "DataFeed",
"dataFeedElement": [
{
"@type": "Book",
"name": "Anna Karenina",
"sameAs": "https://en.wikipedia.org/wiki/Anna_Karenina"
},
{
"@type": "Book",
"name": "Pride and Prejudice",
"sameAs": "https://en.wikipedia.org/wiki/Pride_and_Prejudice"
},
{
"@type": "Book",
"name": "My Bondage and My Freedom",
"sameAs": "https://en.wikipedia.org/wiki/My_Bondage_and_My_Freedom"
}
]
}
}
</script>