https://github.com/schemaorg/schemaorg
Tip revision: ae70d0a9dbab49c005fd8dd1fd522f7236b04be0 authored by Dan Brickley on 17 October 2023, 15:51:02 UTC
Version 23.0 release files
Version 23.0 release files
Tip revision: ae70d0a
sdo-website-examples.txt
TYPES: #eg-0457 SearchAction, WebSite
PRE-MARKUP:
<p>(A WebSite describing its search options)</p>
MICRODATA:
<div itemscope itemtype="https://schema.org/WebSite">
<link itemprop="url" href="http://www.example.com/"/>
<form itemprop="potentialAction" itemscope itemtype="https://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="https://schema.org/" typeof="WebSite">
<link property="url" href="http://www.example.com/"/>
<form property="potentialAction" typeof="https://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": "https://schema.org",
"@type": "WebSite",
"url": "http://example.com/",
"potentialAction": {
"@type": "SearchAction",
"target": "http://example.com/search?&q={query}",
"query": "required"
}
}
</script>