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 Boolean
private String
http://www.w3.org/TR/json-ld-api/#widl-JsonLdOptions-baseprivate Boolean
http://www.w3.org/TR/json-ld-api/#widl-JsonLdOptions-compactArraysstatic final boolean
private DocumentLoader
http://www.w3.org/TR/json-ld-api/#widl-JsonLdOptions-documentLoaderprivate JsonLdConsts.Embed
private Object
http://www.w3.org/TR/json-ld-api/#widl-JsonLdOptions-expandContextprivate Boolean
private Boolean
static final String
static final String
private Boolean
private Boolean
private String
http://www.w3.org/TR/json-ld-api/#widl-JsonLdOptions-processingModeprivate boolean
private Boolean
private 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.Embed
boolean
void
setAllowContainerSetOnType
(Boolean allowContainerSetOnType) void
void
setCompactArrays
(Boolean compactArrays) void
setDocumentLoader
(DocumentLoader documentLoader) void
setEmbed
(JsonLdConsts.Embed embed) void
void
void
setExpandContext
(Object expandContext) void
setExplicit
(Boolean explicit) void
setFrameExpansion
(Boolean frameExpansion) void
setOmitDefault
(Boolean omitDefault) void
setOmitGraph
(Boolean omitGraph) void
setProcessingMode
(String processingMode) void
setProduceGeneralizedRdf
(Boolean produceGeneralizedRdf) void
setPruneBlankNodeIdentifiers
(Boolean pruneBlankNodeIdentifiers) void
setRequireAll
(Boolean requireAll) void
setUseNativeTypes
(Boolean useNativeTypes) void
setUseRdfType
(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
-