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 {
105SOURCEMETA_CORE_JSONLD_EXPORT
131SOURCEMETA_CORE_JSONLD_EXPORT
155SOURCEMETA_CORE_JSONLD_EXPORT
181SOURCEMETA_CORE_JSONLD_EXPORT
186 const bool compact_arrays =
true,
187 const bool compact_to_relative =
true) -> JSON;
211SOURCEMETA_CORE_JSONLD_EXPORT
237SOURCEMETA_CORE_JSONLD_EXPORT
242 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, const JSONLDExpandDropCallback &drop_callback={}) -> JSON
std::function< void( JSONLDExpandDropReason, const WeakPointer &, const JSON &)> JSONLDExpandDropCallback
Definition jsonld.h:82
SOURCEMETA_CORE_JSONLD_EXPORT auto jsonld_flatten(const JSON &input) -> JSON
JSONLDExpandDropReason
Definition jsonld.h:45
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
@ FreeFloatingValue
Definition jsonld.h:66
@ IncompleteValueObject
A value object that carries a language or a direction but no value.
Definition jsonld.h:63
@ UnhandledKeyword
Definition jsonld.h:59
@ RetiredKey
Definition jsonld.h:54
@ NullValueObject
A value object whose value is null.
Definition jsonld.h:61
@ UndefinedType
A type that expands to no absolute IRI, which cannot name a type.
Definition jsonld.h:56
@ KeywordFormKey
Definition jsonld.h:51
@ UndefinedKey
Definition jsonld.h:48
@ NullValue
A null written where a value was expected.
Definition jsonld.h:68
@ 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
GenericPointer< std::reference_wrapper< const std::string >, PropertyHashJSON< JSON::String > > WeakPointer
Definition jsonpointer.h:46