Package | Description |
---|---|
com.github.jsonldjava.core | |
com.github.jsonldjava.impl |
Modifier and Type | Method and Description |
---|---|
JsonLdError |
JsonLdError.setType(JsonLdError.Error error) |
Modifier and Type | Method and Description |
---|---|
Object |
JsonLdApi.compact(Context activeCtx,
String activeProperty,
Object element)
Compaction Algorithm
http://json-ld.org/spec/latest/json-ld-api/#compaction-algorithm
|
Object |
JsonLdApi.compact(Context activeCtx,
String activeProperty,
Object element,
boolean compactArrays)
Compaction Algorithm
http://json-ld.org/spec/latest/json-ld-api/#compaction-algorithm
|
static Map<String,Object> |
JsonLdProcessor.compact(Object input,
Object context,
JsonLdOptions opts)
Compacts the given input using the context according to the steps in the
Compaction algorithm.
|
Object |
JsonLdApi.expand(Context activeCtx,
Object element)
Expansion Algorithm
http://json-ld.org/spec/latest/json-ld-api/#expansion-algorithm
|
Object |
JsonLdApi.expand(Context activeCtx,
String activeProperty,
Object element)
Expansion Algorithm
http://json-ld.org/spec/latest/json-ld-api/#expansion-algorithm
|
static List<Object> |
JsonLdProcessor.expand(Object input)
Expands the given input according to the steps in the Expansion
algorithm, using the default
JsonLdOptions . |
static List<Object> |
JsonLdProcessor.expand(Object input,
JsonLdOptions opts)
Expands the given input according to the steps in the Expansion
algorithm.
|
Object |
Context.expandValue(String activeProperty,
Object value) |
static Object |
JsonLdProcessor.flatten(Object input,
JsonLdOptions opts)
Flattens the given input and compacts it using the passed context
according to the steps in the Flattening
algorithm:
|
static Object |
JsonLdProcessor.flatten(Object input,
Object context,
JsonLdOptions opts) |
List<Object> |
JsonLdApi.frame(Object input,
List<Object> frame)
Performs JSON-LD framing.
|
static Map<String,Object> |
JsonLdProcessor.frame(Object input,
Object frame,
JsonLdOptions opts)
Frames the given input using the frame according to the steps in the
Framing Algorithm.
|
static Object |
JsonLdProcessor.fromRDF(Object dataset)
Converts an RDF dataset to JSON-LD, using the default
JsonLdOptions . |
static Object |
JsonLdProcessor.fromRDF(Object dataset,
JsonLdOptions options)
Converts an RDF dataset to JSON-LD.
|
static Object |
JsonLdProcessor.fromRDF(Object input,
JsonLdOptions options,
RDFParser parser)
Converts an RDF dataset to JSON-LD, using a specific instance of
RDFParser . |
static Object |
JsonLdProcessor.fromRDF(Object input,
RDFParser parser)
Converts an RDF dataset to JSON-LD, using a specific instance of
RDFParser , and the default JsonLdOptions . |
List<Object> |
JsonLdApi.fromRDF(RDFDataset dataset)
Converts RDF statements into JSON-LD.
|
Object |
Context.getContextValue(String activeProperty,
String string) |
RemoteDocument |
DocumentLoader.loadDocument(String url) |
Object |
JsonLdApi.normalize(Map<String,Object> dataset)
Performs RDF normalization on the given JSON-LD input.
|
static Object |
JsonLdProcessor.normalize(Object input)
Performs RDF dataset normalization on the given JSON-LD input.
|
static Object |
JsonLdProcessor.normalize(Object input,
JsonLdOptions options)
Performs RDF dataset normalization on the given JSON-LD input.
|
RDFDataset |
RDFParser.parse(Object input)
Parse the input into the internal RDF Dataset format The format is a Map
with the following structure: { GRAPH_1: [ TRIPLE_1, TRIPLE_2, ...,
TRIPLE_N ], GRAPH_2: [ TRIPLE_1, TRIPLE_2, ..., TRIPLE_N ], ...
|
Context |
Context.parse(Object localContext) |
Context |
Context.parse(Object localContext,
List<String> remoteContexts)
Context Processing Algorithm
http://json-ld.org/spec/latest/json-ld-api/#context-processing-algorithms
|
void |
RDFDataset.parseContext(Object contextLike)
parses a context object and sets any namespaces found within it
|
static RDFDataset |
RDFDatasetUtils.parseNQuads(String input)
Parses RDF in the form of N-Quads.
|
RDFDataset |
JsonLdApi.toRDF()
Adds RDF triples for each graph in the current node map to an RDF
dataset.
|
static Object |
JsonLdProcessor.toRDF(Object input)
Outputs the RDF dataset found in the given JSON-LD object, using the
default
JsonLdOptions . |
static Object |
JsonLdProcessor.toRDF(Object input,
JsonLdOptions options)
Outputs the RDF dataset found in the given JSON-LD object.
|
static Object |
JsonLdProcessor.toRDF(Object input,
JsonLdTripleCallback callback)
Outputs the RDF dataset found in the given JSON-LD object, using the
default
JsonLdOptions . |
static Object |
JsonLdProcessor.toRDF(Object input,
JsonLdTripleCallback callback,
JsonLdOptions options)
Outputs the RDF dataset found in the given JSON-LD object.
|
Constructor and Description |
---|
JsonLdApi(Object input,
JsonLdOptions opts)
Constructs a JsonLdApi object using the given object as the initial
JSON-LD object, and the given JsonLdOptions.
|
JsonLdApi(Object input,
Object context,
JsonLdOptions opts)
Constructs a JsonLdApi object using the given object as the initial
JSON-LD object, the given context, and the given JsonLdOptions.
|
Modifier and Type | Method and Description |
---|---|
RDFDataset |
NQuadRDFParser.parse(Object input) |
RDFDataset |
TurtleRDFParser.parse(Object input) |
Copyright © 2016. All rights reserved.