forked from schemaorg/schemaorg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsdo-website-examples.txt
48 lines (39 loc) · 1.22 KB
/
sdo-website-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
TYPES: #website-1 SearchAction, WebSite
PRE-MARKUP:
<p>(A WebSite describing its search options)</p>
MICRODATA:
<div itemscope itemtype="http://schema.org/WebSite">
<link itemprop="url" href="http://www.example.com/"/>
<form itemprop="potentialAction" itemscope itemtype="http://schema.org/SearchAction">
<meta itemprop="target" content="http://example.com/search?q={query}"/>
<input itemprop="query" type="text" name="query"/>
<input type="submit"/>
</form>
</div>
RDFA:
<div vocab="http://schema.org/" typeof="WebSite">
<link property="url" href="http://www.example.com/"/>
<form property="potentialAction" typeof="http://schema.org/SearchAction">
<meta property="target" content="http://www.example.com/search?q={query}"/>
<input property="query" type="text" name="query">
<input type="submit">
</form>
</div>
JSON:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite",
"url": "http://example.com/",
"potentialAction": {
"@type": "SearchAction",
"target": "http://example.com/search?&q={query}",
"query": "required"
}
}
</script>
TYPES: FakeEntryNeeded, FixMeSomeDay
PRE-MARKUP:
MICRODATA:
RDFA:
JSON: