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
|
[Constructor]
interface JsonLdProcessor {
static Promise<JsonLdDictionary> compact(JsonLdInput input, JsonLdContext context, optional JsonLdOptions? options);
static Promise<sequence<JsonLdDictionary>> expand(JsonLdInput input, optional JsonLdOptions? options);
static Promise<JsonLdDictionary> flatten(JsonLdInput input, optional JsonLdContext? context, optional JsonLdOptions? options);
};
dictionary JsonLdDictionary {
};
typedef (JsonLdDictionary or sequence<JsonLdDictionary> or USVString) JsonLdInput;
typedef (JsonLdDictionary or USVString or sequence<(JsonLdDictionary or USVString)>) JsonLdContext;
dictionary JsonLdOptions {
USVString? base;
boolean compactArrays = true;
LoadDocumentCallback? documentLoader = null;
(JsonLdDictionary? or USVString) expandContext = null;
boolean produceGeneralizedRdf = true;
USVString? processingMode = null;
boolean compactToRelative = true;
};
callback LoadDocumentCallback = Promise (USVString url);
dictionary RemoteDocument {
USVString contextUrl = null;
USVString documentUrl;
any document;
};
dictionary JsonLdError {
JsonLdErrorCode code;
USVString? message = null;
};
enum JsonLdErrorCode {
"colliding keywords",
"conflicting indexes",
"cyclic IRI mapping",
"invalid @id value",
"invalid @index value",
"invalid @nest value",
"invalid @prefix value",
"invalid @reverse value",
"invalid @version value",
"invalid base IRI",
"invalid container mapping",
"invalid default language",
"invalid IRI mapping",
"invalid keyword alias",
"invalid language map value",
"invalid language mapping",
"invalid language-tagged string",
"invalid language-tagged value",
"invalid local context",
"invalid remote context",
"invalid reverse property",
"invalid reverse property map",
"invalid reverse property value",
"invalid scoped context",
"invalid set or list object",
"invalid term definition",
"invalid type mapping",
"invalid type value",
"invalid typed value",
"invalid value object",
"invalid value object value",
"invalid vocab mapping",
"keyword redefinition",
"loading document failed",
"loading remote context failed",
"multiple context link headers",
"processing mode conflict",
"recursive context inclusion"
};
|