Package com.github.jsonldjava.core
Class JsonLdOptions
java.lang.Object
com.github.jsonldjava.core.JsonLdOptions
The JsonLdOptions type as specified in the
JSON-LD-
API specification.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Booleanprivate Stringhttp://www.w3.org/TR/json-ld-api/#widl-JsonLdOptions-baseprivate Booleanhttp://www.w3.org/TR/json-ld-api/#widl-JsonLdOptions-compactArraysstatic final booleanprivate DocumentLoaderhttp://www.w3.org/TR/json-ld-api/#widl-JsonLdOptions-documentLoaderprivate JsonLdConsts.Embedprivate Objecthttp://www.w3.org/TR/json-ld-api/#widl-JsonLdOptions-expandContextprivate Booleanprivate Booleanstatic final Stringstatic final Stringprivate Booleanprivate Booleanprivate Stringhttp://www.w3.org/TR/json-ld-api/#widl-JsonLdOptions-processingModeprivate booleanprivate Booleanprivate Boolean(package private) Boolean(package private) Boolean -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an instance of JsonLdOptions using an empty base.JsonLdOptions(String base) Constructs an instance of JsonLdOptions using the given base. -
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates a shallow copy of this JsonLdOptions object.getBase()getEmbed()(package private) JsonLdConsts.EmbedbooleanvoidsetAllowContainerSetOnType(Boolean allowContainerSetOnType) voidvoidsetCompactArrays(Boolean compactArrays) voidsetDocumentLoader(DocumentLoader documentLoader) voidsetEmbed(JsonLdConsts.Embed embed) voidvoidvoidsetExpandContext(Object expandContext) voidsetExplicit(Boolean explicit) voidsetFrameExpansion(Boolean frameExpansion) voidsetOmitDefault(Boolean omitDefault) voidsetOmitGraph(Boolean omitGraph) voidsetProcessingMode(String processingMode) voidsetProduceGeneralizedRdf(Boolean produceGeneralizedRdf) voidsetPruneBlankNodeIdentifiers(Boolean pruneBlankNodeIdentifiers) voidsetRequireAll(Boolean requireAll) voidsetUseNativeTypes(Boolean useNativeTypes) voidsetUseRdfType(Boolean useRdfType)
-
Field Details
-
JSON_LD_1_0
- See Also:
-
JSON_LD_1_1
- See Also:
-
DEFAULT_COMPACT_ARRAYS
public static final boolean DEFAULT_COMPACT_ARRAYS- See Also:
-
base
http://www.w3.org/TR/json-ld-api/#widl-JsonLdOptions-base -
compactArrays
http://www.w3.org/TR/json-ld-api/#widl-JsonLdOptions-compactArrays -
expandContext
http://www.w3.org/TR/json-ld-api/#widl-JsonLdOptions-expandContext -
processingMode
http://www.w3.org/TR/json-ld-api/#widl-JsonLdOptions-processingMode -
documentLoader
http://www.w3.org/TR/json-ld-api/#widl-JsonLdOptions-documentLoader -
embed
-
explicit
-
omitDefault
-
omitGraph
-
frameExpansion
-
pruneBlankNodeIdentifiers
-
requireAll
-
allowContainerSetOnType
-
useRdfType
Boolean useRdfType -
useNativeTypes
Boolean useNativeTypes -
produceGeneralizedRdf
private boolean produceGeneralizedRdf -
format
-
useNamespaces
-
outputForm
-
-
Constructor Details
-
JsonLdOptions
public JsonLdOptions()Constructs an instance of JsonLdOptions using an empty base. -
JsonLdOptions
Constructs an instance of JsonLdOptions using the given base.- Parameters:
base- The base IRI for the document.
-
-
Method Details
-
copy
Creates a shallow copy of this JsonLdOptions object. It will share the same DocumentLoader unless that is overridden, and other mutable objects, so it isn't immutable.- Returns:
- A copy of this JsonLdOptions object.
-
getEmbed
-
getEmbedVal
JsonLdConsts.Embed getEmbedVal() -
setEmbed
-
setEmbed
- Throws:
JsonLdError
-
setEmbed
- Throws:
JsonLdError
-
getExplicit
-
setExplicit
-
getOmitDefault
-
setOmitDefault
-
getFrameExpansion
-
setFrameExpansion
-
getOmitGraph
-
setOmitGraph
-
getPruneBlankNodeIdentifiers
-
setPruneBlankNodeIdentifiers
-
getRequireAll
-
setRequireAll
-
getAllowContainerSetOnType
-
setAllowContainerSetOnType
-
getCompactArrays
-
setCompactArrays
-
getExpandContext
-
setExpandContext
-
getProcessingMode
-
setProcessingMode
-
getBase
-
setBase
-
getUseRdfType
-
setUseRdfType
-
getUseNativeTypes
-
setUseNativeTypes
-
getProduceGeneralizedRdf
public boolean getProduceGeneralizedRdf() -
setProduceGeneralizedRdf
-
getDocumentLoader
-
setDocumentLoader
-