Definition
JSON-LD 1.1 Processing Algorithms and API defines JsonLdProcessor
[Exposed=JsonLd]
interface JsonLdProcessor {
constructor();
static Promise<JsonLdRecord> compact(
JsonLdInput input,
optional JsonLdContext context = null,
optional JsonLdOptions options = {});
static Promise<sequence<JsonLdRecord>> expand(
JsonLdInput input,
optional JsonLdOptions options = {});
static Promise<JsonLdRecord> flatten(
JsonLdInput input,
optional JsonLdContext context = null,
optional JsonLdOptions options = {});
static Promise<sequence<JsonLdRecord>> fromRdf(
RdfDataset input,
optional JsonLdOptions options = {});
static Promise<RdfDataset> toRdf(
JsonLdInput input,
optional JsonLdOptions options = {});
};
This interface is extended in the following specifications:
- JSON-LD 1.1 Framing
[Exposed=JsonLd] partial interface JsonLdProcessor { static Promise<JsonLdRecord> frame( JsonLdInput input, JsonLdInput frame, optional JsonLdOptions options = {}); };
Consolidated IDL (across mixin and partials)
[Exposed=JsonLd]
interface JsonLdProcessor {
constructor();
static Promise<JsonLdRecord> compact(
JsonLdInput input,
optional JsonLdContext context = null,
optional JsonLdOptions options = {});
static Promise<sequence<JsonLdRecord>> expand(
JsonLdInput input,
optional JsonLdOptions options = {});
static Promise<JsonLdRecord> flatten(
JsonLdInput input,
optional JsonLdContext context = null,
optional JsonLdOptions options = {});
static Promise<sequence<JsonLdRecord>> fromRdf(
RdfDataset input,
optional JsonLdOptions options = {});
static Promise<RdfDataset> toRdf(
JsonLdInput input,
optional JsonLdOptions options = {});
static Promise<JsonLdRecord> frame(
JsonLdInput input,
JsonLdInput frame,
optional JsonLdOptions options = {});
};
Methods and attributes that return objects implementing JsonLdProcessor
Referring specifications
- JSON-LD 1.1 Framing refers to
JsonLdProcessor