1#ifndef SOURCEMETA_BLAZE_OUTPUT_JSONLD_H_
2#define SOURCEMETA_BLAZE_OUTPUT_JSONLD_H_
4#ifndef SOURCEMETA_BLAZE_OUTPUT_EXPORT
5#include <sourcemeta/blaze/output_export.h>
8#include <sourcemeta/core/json.h>
9#include <sourcemeta/core/jsonpointer.h>
11#include <sourcemeta/blaze/evaluator.h>
12#include <sourcemeta/blaze/output_simple.h>
21namespace sourcemeta::blaze {
26inline constexpr std::array<sourcemeta::core::JSON::StringView, 13>
28 "x-jsonld-datatype",
"x-jsonld-language",
29 "x-jsonld-direction",
"x-jsonld-json",
"x-jsonld-graph",
30 "x-jsonld-container",
"x-jsonld-self",
"x-jsonld-override",
31 "x-jsonld-value",
"x-jsonld-constants"}};
55 sourcemeta::core::Pointer instance_location;
77 std::variant<sourcemeta::core::JSON, JSONLDInvalid, JSONLDResolutionError>;
125auto SOURCEMETA_BLAZE_OUTPUT_EXPORT
std::string schema_location
The schema location of the annotation the error is about.
Definition output_jsonld.h:59
std::optional< std::string > conflicting_schema_location
Definition output_jsonld.h:62
std::optional< std::string > inert_override_location
Definition output_jsonld.h:65
std::vector< SimpleOutput::Entry > JSONLDInvalid
Definition output_jsonld.h:71
JSONLDFacet
Definition output_jsonld.h:35
std::variant< sourcemeta::core::JSON, JSONLDInvalid, JSONLDResolutionError > JSONLDOutcome
Definition output_jsonld.h:76
constexpr std::array< sourcemeta::core::JSON::StringView, 13 > JSONLD_KEYWORDS
Definition output_jsonld.h:27
auto jsonld(Evaluator &evaluator, const Template &schema, const sourcemeta::core::JSON &instance) -> JSONLDOutcome