forked from schemaorg/schemaorg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathactions.html
742 lines (664 loc) · 22.1 KB
/
actions.html
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Schema.org Actions - schema.org</title>
<meta name="description" content="Schema.org is a set of extensible schemas that enables webmasters to embed
structured data on their web pages for use by search engines and other applications." />
<link rel="stylesheet" type="text/css" href="schemaorg.css" />
<link href="prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="prettify.js"></script>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
prettyPrint();
setTimeout(function(){
$('.atn').each(function(i) {
if (($(this).text() == 'itemscope') || ($(this).text() == 'itemtype') || ($(this).text() == 'itemprop') || ($(this).text() == 'itemid') || ($(this).text() == 'time') || ($(this).text() == 'datetime') || ($(this).text() == 'vocab') || ($(this).text() == 'property') || ($(this).text() == 'typeOf') || ($(this).text() == 'rel'))
$(this).addClass('custom');
});
}, 500);
});
</script>
<!-- ##### Generated insert [CSEScript-start] see scripts/genhtmlinserts.sh ##### -->
<!-- Enable CSE Search -->
<script>
(function() {
var cx = '013516846811604855281:nj5laplixaa'; // Insert your own Custom Search engine ID here
var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true;
gcse.src = 'https://cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s);
})();
</script>
<!-- ##### Generated insert [CSEScript-end] see scripts/genhtmlinserts.sh ##### -->
<style>
.tag { color: #000; } /* div, span, etc. */
.atn { color: #000; } /* href, datetime */
.custom { color: #660003; } /* itemscope, itemtype, etc. */
table {
border-collapse:collapse;
border:1px solid #ccc;
}
tbody, tr, td {
border:inherit;
border-collapse:inherit;
}
td {
padding:5px;
}
.style0 {
border:1px solid #000000;
font-family: monospace;
line-height: 0.8;
white-space: pre;
margin-top: 1em;
}
</style>
</head>
<body onload="prettyPrint();">
<!-- ##### Generated insert [DOCSHDR-start] see scripts/genhtmlinserts.sh ##### -->
<div id="container">
<div id="intro">
<div id="pageHeader">
<div class="wrapper">
<div id="sitename">
<h1>
<a href="../">schema.org</a>
</h1>
</div>
<div id="cse-search-form" style="width: 400px;">
<div class="gcse-searchbox-only" data-resultsurl="search_results.html"></div>
</div>
</div>
</div>
</div>
</div>
<div id="selectionbar">
<div class="wrapper">
<ul>
<li>
<a href="documents.html" >Documentation</a>
</li>
<li>
<a href="schemas.html" >Schemas</a>
</li>
<li>
<a href="../" >Home</a>
</li>
</ul>
</div>
</div>
<!-- ##### Generated insert [DOCSHDR-end] see scripts/genhtmlinserts.sh ##### -->
<div id="mainContent">
<h1>Potential Actions</h1>
<p> What follows describes some terminology and conventions for use with
<a href="http://schema.org/Action">http://schema.org/Action</a>.
The purpose is to enable describing the capability to perform an action in the future, as well as how that capability
can be exercised. See the blog post
<a href="http://blog.schema.org/2014/04/announcing-schemaorg-actions.html">Schema.org Actions</a> (April 2014) for more
background. Earlier drafts and alternate formats are available from the <a href="https://www.w3.org/wiki/WebSchemas/ActivityActions">W3C Wiki</a>.
</p>
<h2 id="part-1">Part 1: Action status</h2>
<p>First, we need a mechanism for differentiating potential actions from actions that have actually taken place or are even still in-progress. The expectation is that the status of an action will often be self-evident based on the usage context, so this property can often be elided. However, it may still be necessary for resolving ambiguous cases when they arise. For this we introduce a new property of Action called "actionStatus.</p>
<h3>Thing > Action</h3>
<table class="style0">
<tbody>
<tr>
<td><b>Property</b><br/>
</td>
<td><b>Expected Type</b><br/>
</td>
<td><b>Description</b><br/>
</td>
</tr>
<tr>
<td><i>actionStatus</i><br/>
</td>
<td>ActionStatusType<br/>
</td>
<td>Indicates the current disposition of the Action.<br/>
</td>
</tr>
</tbody>
</table>
<h3>Thing > Intangible > Enumeration > ActionStatusType</h3>
<ul>
<li><b>PotentialActionStatus</b> - A description of an action that is supported</li>
<li><b>ActiveActionStatus</b> - An in-progress action (e..g, while watching the movie, or driving to a location)</li>
<li><b>CompletedActionStatus</b> - An action that has already taken place.</li>
</ul>
<h4>Example: actionStatus</h4>
<table class="style0">
<tbody>
<tr>
<td>{<br/>
"@context": "http://schema.org",<br/>
"@type": "WatchAction",<br/>
<b> "actionStatus": "CompletedActionStatus"</b>,<br/>
"agent" : {<br/>
"@type": "Person",<br/>
"name": "Kevin Bacon"<br/>
},<br/>
"object" : {<br/>
"@type": "Movie",<br/>
"name": "Footloose"<br/>
},<br/>
"startTime" : "2014-03-01"<br/>
}<br/>
</td>
</tr>
</tbody>
</table>
<h2 id="part-2">Part 2: Connecting Actions to Things</h2>
<p>Frequently actions are taken or offered in the context of an object (e.g., watch this movie, review this article, share this webpage, etc.). We introduce a new property called potentialAction for describing the "prototype" of an action that can be taken on that Thing.</p>
<h3>Thing</h3>
<table class="style0">
<tbody>
<tr>
<td><b>Property</b><br/>
</td>
<td><b>Expected Type</b><br/>
</td>
<td><b>Description</b><br/>
</td>
</tr>
<tr>
<td><i>potentialAction</i><br/>
</td>
<td>Action<br/>
</td>
<td>Indicates a potential Action, which describes an idealised action in which this thing would play the 'object' role.<br/>
</td>
</tr>
</tbody>
</table>
<h4>Example: Thing.potentialAction</h4>
<table class="style0">
<tbody>
<tr>
<td>{<br/>
"@context": "http://schema.org",<br/>
"@type": "Movie",<br/>
"name": "Footloose",<br/>
<b>"potentialAction"</b> : {<br/>
"@type": "WatchAction"<br/>
}<br/>
}<br/>
</td>
</tr>
</tbody>
</table>
<h2 id="part-3">Part 3: Action EntryPoints</h2>
<p>Potential actions are materialized via execution against the target EntryPoint of an Action.</p>
<h4>Example: Action target URL</h4>
<table class="style0">
<tbody>
<tr>
<td>{<br/>
"@context": "http://schema.org",<br/>
"@type": "Movie",<br/>
"name": "Footloose",<br/>
<b>"</b>potentialAction<b>"</b> : {<br/>
"@type": "WatchAction",<br/>
<b> "target" : "http://example.com/player?id=123"</b><br/>
}<br/>
}<br/>
</td>
</tr>
</tbody>
</table>
<p>For some platforms and use cases, however, a simple URL is insufficient for formulating a request and/or processing the result, so we are introducing a new EntryPoint class for specifying that additional context beyond a URL when necessary.</p>
<h3>Action</h3>
<table class="style0">
<tbody>
<tr>
<td><b>Property</b><br/>
</td>
<td><b>Expected Type</b><br/>
</td>
<td><b>Description</b><br/>
</td>
</tr>
<tr>
<td><i>target</i><br/>
</td>
<td>EntryPoint<br/>
</td>
<td>An entrypoint used to execute the action.<br/>
</td>
</tr>
</tbody>
</table>
<h3>Thing > Intangible > EntryPoint</h3>
<table class="style0">
<tbody>
<tr>
<td><b>Property</b><br/>
</td>
<td><b>Expected Type</b><br/>
</td>
<td><b>Description</b><br/>
</td>
</tr>
<tr>
<td><i>urlTemplate</i><br/>
</td>
<td>Text<br/>
</td>
<td>An url template (RFC6570) that will be used to construct the target of the execution of the action.<br/>
</td>
</tr>
<tr>
<td><i>encodingType</i><br/>
</td>
<td>Text<br/>
</td>
<td>Supported MIME type(s) for the request<br/>
</td>
</tr>
<tr>
<td><i>contentType</i><br/>
</td>
<td>Text<br/>
</td>
<td>Supported MIME type(s) of the response<br/>
</td>
</tr>
<tr>
<td><i>httpMethod</i><br/>
</td>
<td>Text<br/>
</td>
<td>An HTTP method that specifies the appropriate HTTP method for a request to an HTTP Entrypoint. Values are capitalized strings as used in HTTP.<br/>
</td>
</tr>
<tr>
<td><i>application</i><br/>
</td>
<td>SoftwareApplication<br/>
</td>
<td>The host application<br/>
</td>
</tr>
</tbody>
</table>
<h3>Scheme-based encoding of EntryPoint</h3>
<p>Ideally, the simple "deep link" use cases should work with just a simple URL template. In some cases, new schemes might even be created to make that possible for some platforms, for example:</p>
<div><pre class="prettyprint">
android-app://{package_id}/{scheme}/{host_path}
</pre></div>
<h4>Example: Multiple platform URLs</h4>
<p>Note: we expect the detail of platform-specific bindings to evolve and be clarified through implementation experience. These examples indicate the general approach rather than the exact information needs of each platform. Also note that the example syntax shown here is not strictly JSON; inline comments have been added for readability.</p>
<table class="style0">
<tbody>
<tr>
<td>{<br/>
"@context": "<a href="http://schema.org">http://schema.org</a>",<br/>
"@type": "Restaurant",<br/>
"name": "Tartine Bakery",<br/>
"potentialAction": {<br/>
"@type": "ViewAction",<br/>
"target": [<br/>
<b> /* Web deep link */</b><br/>
<b> "http://www.urbanspoon.com/r/6/92204",</b><br/>
<b> /* HTTP API that returns JSON-LD */</b><br/>
<b> {</b><br/>
<b> "@type": "EntryPoint",</b><br/>
<b> "urlTemplate": "http://api.urbanspoon.com/r/6/92204",</b><br/>
<b> "contentType": "application/json+ld"</b><br/>
<b> },</b><br/>
<b> /* Android app deep link */</b><br/>
<b> "android-app://com.urbanspoon/http/www.urbanspoon.com/r/6/92204",</b><br/>
<b> /* iOS deep link */</b><br/>
<b> {</b><br/>
<b> "@type": "EntryPoint",</b><br/>
<b> "urlTemplate": "urbanspoon://r/6/92204",</b><br/>
<b> "application": {</b><br/>
<b> "@type": "SoftwareApplication",</b><br/>
<b> "@id": "284708449",</b><br/>
<b> "name": "Urbanspoon iPhone and iPad App",</b><br/>
<b> "operatingSystem": "iOS"</b><br/>
<b> }</b><br/>
<b> },</b><br/>
<b> /* Windows Phone deep link */</b><br/>
<b> {</b><br/>
<b> "@type": "EntryPoint",</b><br/>
<b> "urlTemplate": "urbanspoon://r/6/92204",</b><br/>
<b> "application": {</b><br/>
<b> "@type": "SoftwareApplication",</b><br/>
<b> "@id": "5b23b738-bb64-4829-9296-5bcb59bb0d2d",</b><br/>
<b> "name": "Windows Phone App",</b><br/>
<b> "operatingSystem": "Windows Phone 8"</b><br/>
<b> }</b><br/>
<b> }</b><br/>
]<br/>
}<br/>
}<br/>
</td>
</tr>
</tbody>
</table>
<h2 id="part-4">Part 4: Input and Output constraints</h2>
<p>Additional information is often required from a user or client in order to formulate a complete request. To facilitate this process we need the ability to describe within a potential action how to construct these inputs. Since we need this capability for filling in <i>any</i> property of an Action, we introduce a notion of property annotations using a hypen ("-") delimiter. For example, by specifying a "location-input" property on a potential action we are indicating that "location" is a supported input for completing the action.</p>
<p>Similarly, it is also helpful to indicate to clients what will be included in the final completed version of an action, so we introduce the corresponding -output annotation for indicating which properties will be present in the completed action.</p>
<table class="style0">
<tbody>
<tr>
<td><b>Annotation</b><br/>
</td>
<td><b>Expected Type</b><br/>
</td>
<td><b>Description</b><br/>
</td>
</tr>
<tr>
<td><i><property>-input</i><br/>
</td>
<td>PropertyValueSpecification<br/>
</td>
<td>Indicates how a property should be filled in before initiating the action. <br/>
</td>
</tr>
<tr>
<td><i><property>-output</i><br/>
</td>
<td>PropertyValueSpecification<br/>
</td>
<td>Indicates how the field will be filled in when the action is completed.<br/>
</td>
</tr>
</tbody>
</table>
<h3>Thing > Intangible > PropertyValueSpecification</h3>
<p>A property value specification.</p>
<table class="style0">
<tbody>
<tr>
<td><b>Property</b><br/>
</td>
<td><b>Expected Type</b><br/>
</td>
<td><b>Description</b><br/>
</td>
</tr>
<tr>
<td><i>valueRequired</i><br/>
</td>
<td>Boolean<br/>
</td>
<td>Whether the property must be filled in to complete the action. Default is false. <br/>
Equivalent to HTML's <a href="http://www.w3.org/TR/html5/forms.html#the-required-attribute">input@required</a>.<br/>
</td>
</tr>
<tr>
<td><i>defaultValue</i><br/>
</td>
<td>Thing, DataType<br/>
</td>
<td>The default value for the property. For properties that expect a DataType, <br/>
it's a literal value, for properties that expect an object, it's an ID <br/>
reference to one of the current values. Equivalent to HTML's input@value.<br/>
</td>
</tr>
<tr>
<td><i>valueName</i><br/>
</td>
<td>Text<br/>
</td>
<td>Indicates the name of the PropertyValueSpecification to be used in URL templates <br/>
and form encoding in a manner analogous to HTML's input@name.<br/>
</td>
</tr>
<tr>
<td><i>readonlyValue</i><br/>
</td>
<td>Boolean<br/>
</td>
<td>Whether or not a property is mutable. Default is false. <br/>
Equivalent to HTML's <a href="http://www.w3.org/TR/html5/forms.html#the-readonly-attribute">input@readonly</a>.
Specifying this for a property that also has a value makes it act <br/>
similar to a "hidden" input in an HTML form<a href="http://www.w3.org/TR/html5/forms.html#the-pattern-attribute">.</a>
<br/>
</td>
</tr>
<tr>
<td><i><a href="http://www.w3.org/TR/html5/forms.html#the-pattern-attribute">multi</a>pleValues</i><br/>
</td>
<td>Boolean<br/>
</td>
<td>Whether multiple values are allowed for the property. Default is false. <br/>
Equivalent to HTML's <a href="http://www.w3.org/TR/html5/forms.html#the-multiple-attribute">input@multiple</a>.<br/>
</td>
</tr>
<tr>
<td><i>valueMinLength</i><br/>
</td>
<td>Number<br/>
</td>
<td>Specifies the minimum number of characters in a literal value. <br/>
Equivalent to HTML's <a href="http://www.w3.org/TR/html5/forms.html#the-maxlength-and-minlength-attributes">input@minlength</a>.<br/>
</td>
</tr>
<tr>
<td><i>valueMaxLength</i><br/>
</td>
<td>Number<br/>
</td>
<td>Specifies the maximum number of characters in a literal value. <br/>
Equivalent to HTML's <a href="http://www.w3.org/TR/html5/forms.html#the-maxlength-and-minlength-attributes">input@maxlength</a>.<br/>
</td>
</tr>
<tr>
<td><i>valuePattern</i><br/>
</td>
<td>Text<br/>
</td>
<td>Specifies a regular expression for testing literal values <br/>
Equivalent to HTML's <a href="http://www.w3.org/TR/html5/forms.html#the-pattern-attribute">input@pattern</a>.<br/>
</td>
</tr>
<tr>
<td><i>minValue </i><br/>
</td>
<td>Number, Date, Time, DateTime<br/>
</td>
<td>Specifies the allowed range and intervals for literal values. <br/>
Equivalent to HTML's <a href="http://www.w3.org/TR/html5/forms.html#the-min-and-max-attributes">input@min, max, step</a>.The lower value of some characteristic or property<br/>
</td>
</tr>
<tr>
<td><i>maxValue</i><br/>
</td>
<td>Number, Date, Time, DateTime<br/>
</td>
<td>The upper value of some characteristic or property. <br/>
Equivalent to HTML's <a href="http://www.w3.org/TR/html5/forms.html#the-min-and-max-attributes">input@min, max, step</a>.<br/>
</td>
</tr>
<tr>
<td><i>stepValue</i><br/>
</td>
<td>Number<br/>
</td>
<td>The step attribute indicates the granularity that is expected (and required) of the value.<br/>
</td>
</tr>
</tbody>
</table>
<p>The minValue, maxValue and stepValue properties specify the allowed range and intervals for literal values and are equivalent to HTML's <a href="http://www.w3.org/TR/html5/forms.html#the-min-and-max-attributes">input@min, max, step</a>. It should also be noted that if both a property and its -input annotation are present, the value of the un-annotated property should be treated as the allowed options for input (similar to <select><option> in HTML) unless the Input indicates that the value is also readonly, in which case the value(s) should all be returned in a manner analogous to hidden inputs in forms.</p>
<p><b>Textual representations of Input and Output</b><br/>
For convenience, we also support a textual short-hand for both of these types that is formatted and named similarly to how they would appear in their HTML equivalent. For example:</p>
<div><pre class="prettyprint">
"<property>-input": {
"@type": "PropertyValueSpecification",
"valueRequired": true,
"valueMaxlength": 100,
"valueName": "q"
}
</pre></div>
<p>Can also be expressed as:</p>
<div><pre class="prettyprint">
<property>-input: "required maxlength=100 name=q"
</pre></div>
<p><b>URI Templates</b><br/>
Finally, we also allow URI templating (using <a href="http://tools.ietf.org/html/rfc6570">RFC6570</a>) for inlining the resulting value of -input properties into action URLs. The allowed references in the templates for substitution are dotted schema paths to the filled-in properties (relative to the Action object).</p>
<h4>Example: Text search deep link with -input</h4>
<p><span style="color:#666666"><u>description</u></span></p>
<table class="style0">
<tbody>
<tr>
<td>{<br/>
"@context": "<a href="http://schema.org">http://schema.org</a>",<br/>
"@type": "WebSite",<br/>
"name": "Example.com",<br/>
"potentialAction": {<br/>
"@type": "SearchAction",<br/>
<b> </b>"target": "http://example.com/search?q=<b>{q}",</b><br/>
<b> "query-input": "required maxlength=100 name=q"</b><br/>
}<br/>
}<br/>
</td>
</tr>
</tbody>
</table>
<h5>request</h5>
<table class="style0">
<tbody>
<tr>
<td>GET <a href="http://example.com/search?q=the+search">http://example.com/search?q=the+search</a><br/>
</td>
</tr>
</tbody>
</table>
<h4>Example: Product purchase API call with -output</h4>
<h5>description</h5>
<table class="style0">
<tbody>
<tr>
<td>{<br/>
"@type": "Product",<br/>
<span style="color:#222222"> "url": "http://example.com/products/ipod",</span><br/>
"potentialAction": {<br/>
"@type": "BuyAction",<br/>
"target": {<br/>
"@type": "EntryPoint",<br/>
<span style="color:#222222"> "urlTemplate": "https://example.com/products/ipod/buy",</span><br/>
"encodingType": "application/ld+json",<br/>
"contentType": "application/ld+json"<br/>
},<br/>
"result": {<br/>
"@type": "Order",<br/>
<span style="color:#222222"><b> "url-output": "required",</b></span><br/>
<span style="color:#222222"><b> "confirmationNumber-output": "required",</b></span><br/>
<span style="color:#222222"><b> "orderNumber-output": "required",</b></span><br/>
<span style="color:#222222"><b> "orderStatus-output": "required"</b></span><br/>
}<br/>
}<br/>
}<br/>
</td>
</tr>
</tbody>
</table>
<h5>request</h5>
<table class="style0">
<tbody>
<tr>
<td><span style="color:#222222">POST <a href="https://example.com/products/ipod/buy">https://example.com/products/ipod/buy</a></span><br/>
</td>
</tr>
</tbody>
</table>
<h5>response</h5>
<table class="style0">
<tbody>
<tr>
<td>{<br/>
"@type": "BuyAction",<br/>
"actionStatus": "CompletedActionStatus",<br/>
<span style="color:#222222"> "object": "https://example.com/products/ipod",</span><br/>
"result": {<br/>
"@type": "Order",<br/>
<span style="color:#222222"><b> "url": "http://example.com/orders/1199334"</b></span><br/>
<span style="color:#222222"><b> "confirmationNumber": "1ABBCDDF23234",</b></span><br/>
<span style="color:#222222"><b> "orderNumber": "1199334",</b></span><br/>
<span style="color:#222222"><b> "orderStatus": "PROCESSING"</b></span><br/>
},<br/>
}<br/>
</td>
</tr>
</tbody>
</table>
<h4>Example: Movie review site API with -input and -output</h4>
<h5>description</h5>
<table class="style0">
<tbody>
<tr>
<td>{<br/>
"@context": "http://schema.org",<br/>
"@type": "ReviewAction",<br/>
"target": {<br/>
"@type": "EntryPoint",<br/>
<span style="color:#222222"> <b>"</b>urlTemplate<b>"</b>: "https://api.example.com/review",</span><br/>
"encodingType": "application/ld+json",<br/>
"contentType": "application/ld+json"<br/>
},<br/>
<span style="color:#222222"><b> "object" : {</b></span><br/>
"@type": "Movie",<br/>
<span style="color:#222222"><b> "url-input": "required",</b></span><br/>
<span style="color:#222222"><b> },</b></span><br/>
"result": {<br/>
"@type": "Review",<br/>
<span style="color:#222222"><b> "url-output": "required",</b></span><br/>
<span style="color:#222222"><b> "reviewBody-input": "required",</b></span><br/>
"reviewRating": {<br/>
<span style="color:#222222"><b> "ratingValue-input": "required"</b></span><br/>
}<br/>
}<br/>
}<br/>
</td>
</tr>
</tbody>
</table>
<h5>request</h5>
<table class="style0">
<tbody>
<tr>
<td>POST <a href="https://api.example.com/review">https://api.example.com/review</a><br/>
{<br/>
"@context": "http://schema.org",<br/>
"@type": "ReviewAction",<br/>
"object" : {<br/>
<span style="color:#222222"> "@id": "http://example.com/movies/123"</span><br/>
},<br/>
"result": {<br/>
"@type": "Review",<br/>
"reviewBody": "yada, yada, yada",<br/>
"reviewRating": {<br/>
"ratingValue": "4"<br/>
}<br/>
}<br/>
}<br/>
</td>
</tr>
</tbody>
</table>
<h5>response</h5>
<table class="style0">
<tbody>
<tr>
<td>{<br/>
"@context": "http://schema.org",<br/>
"@type": "ReviewAction",<br/>
"actionStatus": "CompletedActionStatus",<br/>
<span style="color:#222222"> "result" : {<br/>
"@type": "Review",<br/>
"url"<b>: "http://example.com/reviews/abc"</b></span><br/>
}<br/>
}<br/>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>