Class JsonLd
java.lang.Object
no.hasmac.jsonld.JsonLd
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidassertJsonDocument(Document document, String param) private static URIassertLocation(String location, String param) private static voidassertNotNull(Object value, String param) private static voidassertRdfDocument(Document document, String param) private static voidstatic CompactionApiCompacts the referenced document using the context.static CompactionApiCompactsDocumentdocument using the context.static CompactionApiCompacts the referenced document using the context.static CompactionApiCompactsDocumentdocument using the context.static CompactionApiCompacts the referenced document using the context.static CompactionApiCompacts the referenced document using the context.static CompactionApiCompactsDocumentdocument using the context.static CompactionApiCompactsDocumentdocument using the context.static CompactionApiCompactsDocumentdocument using the context.static ExpansionApiExpands the referenced document.static ExpansionApiExpands the referenced document.static ExpansionApiExpands the provided remote document.static FlatteningApiFlattens the given input and optionally compacts it using context.static FlatteningApiFlattens the given input and optionally compacts it using context.static FlatteningApiFlattens the remote input and optionally compacts it using context.static FramingApiFrames the given remote input using remote frame.static FramingApiFrames the remote input using given remote frame.static FramingApiFrames the remote input using given local frame.static FramingApiFrames the remote input using given remote frame.static FramingApiFrames the given remote input using remote frame.static FramingApiFrames the remote input using given local frame.static FramingApiFrames the local document using given remote frame.static FramingApiFrames the local document using given remote frame.static FramingApiFrames the local document using given local frame.static FromRdfApiTransforms the referenced N-Quads document into a JSON-LD document in expanded form.static FromRdfApiTransforms the referenced N-Quads document into a JSON-LD document in expanded form.static FromRdfApiTransformsDocumentinto a JSON-LD document in expanded form.static ToRdfApiTransforms the given input intoRdfDataset.static ToRdfApiTransforms the given input intoRdfDataset.static ToRdfApiTransformsDocumentintoRdfDataset.
-
Field Details
-
DOCUMENT_LOCATION_PARAM_NAME
- See Also:
-
DOCUMENT_URI_PARAM_NAME
- See Also:
-
DOCUMENT_PARAM_NAME
- See Also:
-
CONTEXT_PARAM_NAME
- See Also:
-
FRAME_LOCATION_PARAM_NAME
- See Also:
-
FRAME_URI_PARAM_NAME
- See Also:
-
FRAME_PARAM_NAME
- See Also:
-
-
Constructor Details
-
JsonLd
private JsonLd()
-
-
Method Details
-
expand
Expands the referenced document.- Parameters:
documentLocation-IRIreferencing JSON-LD document to expand- Returns:
ExpansionApiallowing to set additional parameters
-
expand
Expands the referenced document.- Parameters:
documentUri-URIreferencing JSON-LD document to expand- Returns:
ExpansionApiallowing to set additional parameters
-
expand
Expands the provided remote document.- Parameters:
document- to expand- Returns:
ExpansionApiallowing to set additional parameters
-
compact
Compacts the referenced document using the context.- Parameters:
documentLocation-IRIreferencing JSON-LD document to compactcontextLocation-IRIreferencing the context to use when compacting the document- Returns:
CompactionApiallowing to set additional parameters
-
compact
Compacts the referenced document using the context.- Parameters:
documentUri-URIreferencing JSON-LD document to compactcontextUri-URIreferencing the context to use when compacting the document- Returns:
CompactionApiallowing to set additional parameters
-
compact
Compacts the referenced document using the context.- Parameters:
documentLocation-IRIreferencing JSON-LD document to compactcontext-Documentrepresenting the context orJsonArrayconsisting ofJsonObjectandJsonStringreferencing the context to use when compacting the document- Returns:
CompactionApiallowing to set additional parameters
-
compact
Compacts the referenced document using the context.- Parameters:
documentUri-URIreferencing JSON-LD document to compactcontext-Documentrepresenting the context orJsonArrayconsisting of one or manyJsonObjectandJsonStringreferencing the context to use when compacting the document- Returns:
CompactionApiallowing to set additional parameters
-
compact
CompactsDocumentdocument using the context.- Parameters:
document- to compactcontext- JSON-LD document- Returns:
CompactionApiallowing to set additional parameters
-
compact
CompactsDocumentdocument using the context.- Parameters:
document- to compactcontextLocation-IRIreferencing the context to use when compacting the document- Returns:
CompactionApiallowing to set additional parameters
-
compact
CompactsDocumentdocument using the context.- Parameters:
document- to compactcontextUri-URIreferencing the context to use when compacting the document- Returns:
CompactionApiallowing to set additional parameters
-
compact
CompactsDocumentdocument using the context.- Parameters:
documentLocation-IRIreferencing JSON-LD document to compactcontextUri-URIreferencing the context to use when compacting the document- Returns:
CompactionApiallowing to set additional parameters
-
compact
CompactsDocumentdocument using the context.- Parameters:
documentUri-URIreferencing JSON-LD document to compactcontextLocation-IRIreferencing the context to use when compacting the document- Returns:
CompactionApiallowing to set additional parameters
-
flatten
Flattens the given input and optionally compacts it using context.- Parameters:
documentLocation-IRIreferencing JSON-LD document to flatten- Returns:
FlatteningApiallowing to set additional parameters
-
flatten
Flattens the given input and optionally compacts it using context.- Parameters:
documentUri-URIreferencing JSON-LD document to flatten- Returns:
FlatteningApiallowing to set additional parameters
-
flatten
Flattens the remote input and optionally compacts it using context.- Parameters:
document- to flatten- Returns:
FlatteningApiallowing to set additional parameters
-
frame
Frames the given remote input using remote frame.- Parameters:
documentUri-URIreferencing JSON-LD document to frameframeUri-URIreferencing JSON-LD frame- Returns:
FramingApiallowing to set additional parameters
-
frame
Frames the given remote input using remote frame.- Parameters:
documentLocation-IRIreferencing JSON-LD document to frameframeLocation-IRIreferencing JSON-LD frame- Returns:
FramingApiallowing to set additional parameters
-
frame
Frames the local document using given local frame.- Parameters:
document- to frameframe- JSON-LD definition- Returns:
FramingApiallowing to set additional parameters
-
frame
Frames the local document using given remote frame.- Parameters:
document- to frameframeLocation-IRIreferencing JSON-LD frame- Returns:
FramingApiallowing to set additional parameters
-
frame
Frames the local document using given remote frame.- Parameters:
document- to frameframeUri-URIreferencing JSON-LD frame- Returns:
FramingApiallowing to set additional parameters
-
frame
Frames the remote input using given local frame.- Parameters:
documentLocation-IRIreferencing JSON-LD document to frameframe- JSON-LD definition- Returns:
FramingApiallowing to set additional parameters
-
frame
Frames the remote input using given remote frame.- Parameters:
documentLocation-IRIreferencing JSON-LD document to frameframeUri-URIreferencing JSON-LD frame- Returns:
FramingApiallowing to set additional parameters
-
frame
Frames the remote input using given local frame.- Parameters:
documentUri-URIreferencing JSON-LD document to frameframe- JSON-LD definition- Returns:
FramingApiallowing to set additional parameters
-
frame
Frames the remote input using given remote frame.- Parameters:
documentUri-URIreferencing JSON-LD document to frameframeLocation-IRIreferencing JSON-LD frame- Returns:
FramingApiallowing to set additional parameters
-
toRdf
Transforms the given input intoRdfDataset.- Parameters:
documentLocation-IRIreferencing JSON-LD document to transform- Returns:
ToRdfApiallowing to set additional parameters
-
toRdf
Transforms the given input intoRdfDataset.- Parameters:
documentUri-URIreferencing JSON-LD document to transform- Returns:
ToRdfApiallowing to set additional parameters
-
toRdf
TransformsDocumentintoRdfDataset.- Parameters:
document- to transform- Returns:
ToRdfApiallowing to set additional parameters
-
fromRdf
Transforms the referenced N-Quads document into a JSON-LD document in expanded form.- Parameters:
documentLocation-URIreferencing N-Quads document to expand- Returns:
FromRdfApiallowing to set additional parameters
-
fromRdf
Transforms the referenced N-Quads document into a JSON-LD document in expanded form.- Parameters:
documentUri-URIreferencing N-Quads document to expand- Returns:
FromRdfApiallowing to set additional parameters
-
fromRdf
TransformsDocumentinto a JSON-LD document in expanded form.- Parameters:
document- to transform- Returns:
FromRdfApiallowing to set additional parameters
-
assertLocation
-
assertUri
-
assertJsonDocument
-
assertRdfDocument
-
assertNotNull
-