Package com.apicatalog.jsonld
Class JsonLd
- java.lang.Object
-
- com.apicatalog.jsonld.JsonLd
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CompactionApicompact(Document document, Document context)CompactsDocumentdocument using the context.static CompactionApicompact(String documentLocation, Document context)Compacts the referenced document using the context.static CompactionApicompact(String documentLocation, String contextLocation)Compacts the referenced document using the context.static CompactionApicompact(URI documentUri, Document context)Compacts the referenced document using the context.static CompactionApicompact(URI documentUri, URI contextUri)Compacts the referenced document using the context.static ExpansionApiexpand(Document document)Expands the provided remote document.static ExpansionApiexpand(String documentLocation)Expands the referenced document.static ExpansionApiexpand(URI documentUri)Expands the referenced document.static FlatteningApiflatten(Document document)Flattens the remote input and optionally compacts it using context.static FlatteningApiflatten(String documentLocation)Flattens the given input and optionally compacts it using context.static FlatteningApiflatten(URI documentUri)Flattens the given input and optionally compacts it using context.static FramingApiframe(Document document, Document frame)Frames the remote input using given remote frame.static FramingApiframe(String documentLocation, String frameLocation)Frames the given input using frame.static FramingApiframe(URI documentUri, URI frameUri)Frames the given input using frame.static FromRdfApifromRdf(Document document)TransformsDocumentinto a JSON-LD document in expanded form.static FromRdfApifromRdf(String documentLocation)Transforms the referenced N-Quads document into a JSON-LD document in expanded form.static FromRdfApifromRdf(URI documentUri)Transforms the referenced N-Quads document into a JSON-LD document in expanded form.static ToRdfApitoRdf(Document document)TransformsDocumentintoRdfDataset.static ToRdfApitoRdf(String documentLocation)Transforms the given input intoRdfDataset.static ToRdfApitoRdf(URI documentUri)Transforms the given input intoRdfDataset.
-
-
-
Method Detail
-
expand
public static final ExpansionApi expand(String documentLocation)
Expands the referenced document.- Parameters:
documentLocation-IRIreferencing JSON-LD document to expand- Returns:
ExpansionApiallowing to set additional parameters
-
expand
public static final ExpansionApi expand(URI documentUri)
Expands the referenced document.- Parameters:
documentUri-URIreferencing JSON-LD document to expand- Returns:
ExpansionApiallowing to set additional parameters
-
expand
public static final ExpansionApi expand(Document document)
Expands the provided remote document.- Parameters:
document- to expand- Returns:
ExpansionApiallowing to set additional parameters
-
compact
public static final CompactionApi compact(String documentLocation, String contextLocation)
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
public static final CompactionApi compact(URI documentUri, URI contextUri)
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
public static final CompactionApi compact(String documentLocation, Document context)
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
public static final CompactionApi compact(URI documentUri, Document context)
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
public static final CompactionApi compact(Document document, Document context)
CompactsDocumentdocument using the context.- Parameters:
document- to compactcontext- JSON-LD document- Returns:
CompactionApiallowing to set additional parameters
-
flatten
public static final FlatteningApi flatten(String documentLocation)
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
public static final FlatteningApi flatten(URI documentUri)
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
public static final FlatteningApi flatten(Document document)
Flattens the remote input and optionally compacts it using context.- Parameters:
document- to flatten- Returns:
FlatteningApiallowing to set additional parameters
-
frame
public static final FramingApi frame(URI documentUri, URI frameUri)
Frames the given input using frame.- Parameters:
documentUri-URIreferencing JSON-LD document to frameframeUri-URIreferencing JSON-LD frame- Returns:
FramingApiallowing to set additional parameters
-
frame
public static final FramingApi frame(String documentLocation, String frameLocation)
Frames the given input using frame.- Parameters:
documentLocation-IRIreferencing JSON-LD document to frameframeLocation-IRIreferencing JSON-LD frame- Returns:
FramingApiallowing to set additional parameters
-
frame
public static final FramingApi frame(Document document, Document frame)
Frames the remote input using given remote frame.- Parameters:
document- to frameframe- JSON-LD definition- Returns:
FramingApiallowing to set additional parameters
-
toRdf
public static final ToRdfApi toRdf(String documentLocation)
Transforms the given input intoRdfDataset.- Parameters:
documentLocation-IRIreferencing JSON-LD document to transform- Returns:
ToRdfApiallowing to set additional parameters
-
toRdf
public static final ToRdfApi toRdf(URI documentUri)
Transforms the given input intoRdfDataset.- Parameters:
documentUri-URIreferencing JSON-LD document to transform- Returns:
ToRdfApiallowing to set additional parameters
-
toRdf
public static final ToRdfApi toRdf(Document document)
TransformsDocumentintoRdfDataset.- Parameters:
document- to transform- Returns:
ToRdfApiallowing to set additional parameters
-
fromRdf
public static final FromRdfApi fromRdf(String documentLocation)
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
public static final FromRdfApi fromRdf(URI documentUri)
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
public static final FromRdfApi fromRdf(Document document)
TransformsDocumentinto a JSON-LD document in expanded form.- Parameters:
document- to transform- Returns:
FromRdfApiallowing to set additional parameters
-
-