1#ifndef SOURCEMETA_CORE_JSONLD_H_
2#define SOURCEMETA_CORE_JSONLD_H_
4#ifndef SOURCEMETA_CORE_JSONLD_EXPORT
5#include <sourcemeta/core/jsonld_export.h>
8#include <sourcemeta/core/json.h>
9#include <sourcemeta/core/jsonld_error.h>
10#include <sourcemeta/core/jsonld_materialize.h>
26namespace sourcemeta::core {
63SOURCEMETA_CORE_JSONLD_EXPORT
88SOURCEMETA_CORE_JSONLD_EXPORT
111SOURCEMETA_CORE_JSONLD_EXPORT
137SOURCEMETA_CORE_JSONLD_EXPORT
142 const bool compact_arrays =
true,
143 const bool compact_to_relative =
true) -> JSON;
167SOURCEMETA_CORE_JSONLD_EXPORT
193SOURCEMETA_CORE_JSONLD_EXPORT
198 const bool compact_arrays =
true) -> JSON;
std::basic_string_view< Char, CharTraits > StringView
The string view type used by the JSON document.
Definition json_value.h:54
SOURCEMETA_CORE_JSONLD_EXPORT auto jsonld_expand(const JSON &input, const JSON::StringView base_iri="", const JSONLDResolver &resolver={}, const JSONLDVersion version=JSONLDVersion::V1_1) -> JSON
SOURCEMETA_CORE_JSONLD_EXPORT auto jsonld_flatten(const JSON &input) -> JSON
SOURCEMETA_CORE_JSONLD_EXPORT auto jsonld_is_expanded(const JSON &document) -> bool
std::function< std::optional< JSON >(JSON::StringView)> JSONLDResolver
Definition jsonld.h:32
JSONLDVersion
Definition jsonld.h:36
SOURCEMETA_CORE_JSONLD_EXPORT auto jsonld_compact(const JSON &input, const JSON &context, const JSON::StringView base_iri="", const JSONLDResolver &resolver={}, const JSONLDVersion version=JSONLDVersion::V1_1, const bool compact_arrays=true, const bool compact_to_relative=true) -> JSON
@ V1_1
The JSON-LD 1.1 processing mode.
Definition jsonld.h:40
@ V1_0
The JSON-LD 1.0 processing mode.
Definition jsonld.h:38