@@ -5214,7 +5214,7 @@ <h2>The Application Programming Interface</h2>
5214
5214
JSON-LD data into a variety of output formats that are often easier to
5215
5215
work with.</ p >
5216
5216
5217
- < p > The JSON-LD API uses < a > Promises</ a > to represent
5217
+ < p > The JSON-LD API uses < a data-cite =" ECMASCRIPT#sec-promise-objects " > Promises</ a > to represent
5218
5218
the result of the various asynchronous operations.
5219
5219
< a data-cite ="ECMASCRIPT#sec-promise-objects "> Promises</ a > are defined in [[ECMASCRIPT]].
5220
5220
General use within specifications can be found in [[promises-guide]].</ p >
@@ -5241,24 +5241,25 @@ <h3>The <dfn>JsonLdProcessor</dfn> Interface</h3>
5241
5241
in this document mention this directly.</ p >
5242
5242
5243
5243
< pre class ="idl ">
5244
+ [Exposed=Window]
5244
5245
interface JsonLdProcessor {
5245
5246
static Promise<JsonLdDictionary> compact(
5246
5247
JsonLdInput input,
5247
- JsonLdContext context,
5248
- optional JsonLdOptions? options);
5248
+ optional JsonLdContext context = {} ,
5249
+ optional JsonLdOptions options = {} );
5249
5250
static Promise<sequence<JsonLdDictionary> > expand(
5250
5251
JsonLdInput input,
5251
- optional JsonLdOptions? options);
5252
+ optional JsonLdOptions options = {} );
5252
5253
static Promise<JsonLdDictionary> flatten(
5253
5254
JsonLdInput input,
5254
- optional JsonLdContext? context,
5255
- optional JsonLdOptions? options);
5255
+ optional JsonLdContext context = {} ,
5256
+ optional JsonLdOptions options = {} );
5256
5257
static Promise<sequence<JsonLdDictionary> > fromRdf(
5257
5258
RdfDataset input,
5258
- optional JsonLdOptions? options);
5259
+ optional JsonLdOptions options = {} );
5259
5260
static Promise<RdfDataset> toRdf(
5260
5261
JsonLdInput input,
5261
- optional JsonLdOptions? options);
5262
+ optional JsonLdOptions options = {} );
5262
5263
};
5263
5264
</ pre >
5264
5265
@@ -5533,7 +5534,7 @@ <h3>RDF Dataset Interfaces</h3>
5533
5534
which has a < a > default graph</ a > accessible via the < a data-link-for ="RdfDataset "> defaultGraph</ a > attribute.</ p >
5534
5535
5535
5536
< pre class ="idl changed " data-transform ="unComment ">
5536
- [Constructor]
5537
+ [Constructor, Exposed=Window ]
5537
5538
interface RdfDataset {
5538
5539
readonly attribute RdfGraph defaultGraph;
5539
5540
void add(USVString graphName, RdfGraph graph);
@@ -5575,7 +5576,7 @@ <h3>RDF Dataset Interfaces</h3>
5575
5576
which is composed of zero or more < a > RdfTriple</ a > instances.</ p >
5576
5577
5577
5578
< pre class ="idl changed " data-transform ="unComment ">
5578
- [Constructor]
5579
+ [Constructor, Exposed=Window ]
5579
5580
interface RdfGraph {
5580
5581
void add(RdfTriple triple);
5581
5582
iterable<RdfTriple> ;
@@ -5603,7 +5604,7 @@ <h3>RDF Dataset Interfaces</h3>
5603
5604
< p > The < dfn > RdfTriple</ dfn > interface describes an < a > triple</ a > .</ p >
5604
5605
5605
5606
< pre class ="idl changed " data-transform ="unComment ">
5606
- [Constructor]
5607
+ [Constructor, Exposed=Window ]
5607
5608
interface RdfTriple {
5608
5609
readonly attribute USVString subject;
5609
5610
readonly attribute USVString predicate;
@@ -5630,7 +5631,7 @@ <h3>RDF Dataset Interfaces</h3>
5630
5631
< p > The < dfn > RdfLiteral</ dfn > interface describes an < a > RDF Literal</ a > .</ p >
5631
5632
5632
5633
< pre class ="idl changed " data-transform ="unComment ">
5633
- [Constructor]
5634
+ [Constructor, Exposed=Window ]
5634
5635
interface RdfLiteral {
5635
5636
readonly attribute USVString value;
5636
5637
readonly attribute USVString datatype;
0 commit comments