Class JsonLdOptions

java.lang.Object
com.github.jsonldjava.core.JsonLdOptions

public class JsonLdOptions extends Object
The JsonLdOptions type as specified in the JSON-LD- API specification.
  • Field Details

    • JSON_LD_1_0

      public static final String JSON_LD_1_0
      See Also:
    • JSON_LD_1_1

      public static final String JSON_LD_1_1
      See Also:
    • DEFAULT_COMPACT_ARRAYS

      public static final boolean DEFAULT_COMPACT_ARRAYS
      See Also:
    • base

      private String base
      http://www.w3.org/TR/json-ld-api/#widl-JsonLdOptions-base
    • compactArrays

      private Boolean compactArrays
      http://www.w3.org/TR/json-ld-api/#widl-JsonLdOptions-compactArrays
    • expandContext

      private Object expandContext
      http://www.w3.org/TR/json-ld-api/#widl-JsonLdOptions-expandContext
    • processingMode

      private String processingMode
      http://www.w3.org/TR/json-ld-api/#widl-JsonLdOptions-processingMode
    • documentLoader

      private DocumentLoader documentLoader
      http://www.w3.org/TR/json-ld-api/#widl-JsonLdOptions-documentLoader
    • embed

      private JsonLdConsts.Embed embed
    • explicit

      private Boolean explicit
    • omitDefault

      private Boolean omitDefault
    • omitGraph

      private Boolean omitGraph
    • frameExpansion

      private Boolean frameExpansion
    • pruneBlankNodeIdentifiers

      private Boolean pruneBlankNodeIdentifiers
    • requireAll

      private Boolean requireAll
    • allowContainerSetOnType

      private Boolean allowContainerSetOnType
    • useRdfType

      Boolean useRdfType
    • useNativeTypes

      Boolean useNativeTypes
    • produceGeneralizedRdf

      private boolean produceGeneralizedRdf
    • format

      public String format
    • useNamespaces

      public Boolean useNamespaces
    • outputForm

      public String outputForm
  • Constructor Details

    • JsonLdOptions

      public JsonLdOptions()
      Constructs an instance of JsonLdOptions using an empty base.
    • JsonLdOptions

      public JsonLdOptions(String base)
      Constructs an instance of JsonLdOptions using the given base.
      Parameters:
      base - The base IRI for the document.
  • Method Details

    • copy

      public JsonLdOptions 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

      public String getEmbed()
    • getEmbedVal

      JsonLdConsts.Embed getEmbedVal()
    • setEmbed

      public void setEmbed(Boolean embed)
    • setEmbed

      public void setEmbed(String embed) throws JsonLdError
      Throws:
      JsonLdError
    • setEmbed

      public void setEmbed(JsonLdConsts.Embed embed) throws JsonLdError
      Throws:
      JsonLdError
    • getExplicit

      public Boolean getExplicit()
    • setExplicit

      public void setExplicit(Boolean explicit)
    • getOmitDefault

      public Boolean getOmitDefault()
    • setOmitDefault

      public void setOmitDefault(Boolean omitDefault)
    • getFrameExpansion

      public Boolean getFrameExpansion()
    • setFrameExpansion

      public void setFrameExpansion(Boolean frameExpansion)
    • getOmitGraph

      public Boolean getOmitGraph()
    • setOmitGraph

      public void setOmitGraph(Boolean omitGraph)
    • getPruneBlankNodeIdentifiers

      public Boolean getPruneBlankNodeIdentifiers()
    • setPruneBlankNodeIdentifiers

      public void setPruneBlankNodeIdentifiers(Boolean pruneBlankNodeIdentifiers)
    • getRequireAll

      public Boolean getRequireAll()
    • setRequireAll

      public void setRequireAll(Boolean requireAll)
    • getAllowContainerSetOnType

      public Boolean getAllowContainerSetOnType()
    • setAllowContainerSetOnType

      public void setAllowContainerSetOnType(Boolean allowContainerSetOnType)
    • getCompactArrays

      public Boolean getCompactArrays()
    • setCompactArrays

      public void setCompactArrays(Boolean compactArrays)
    • getExpandContext

      public Object getExpandContext()
    • setExpandContext

      public void setExpandContext(Object expandContext)
    • getProcessingMode

      public String getProcessingMode()
    • setProcessingMode

      public void setProcessingMode(String processingMode)
    • getBase

      public String getBase()
    • setBase

      public void setBase(String base)
    • getUseRdfType

      public Boolean getUseRdfType()
    • setUseRdfType

      public void setUseRdfType(Boolean useRdfType)
    • getUseNativeTypes

      public Boolean getUseNativeTypes()
    • setUseNativeTypes

      public void setUseNativeTypes(Boolean useNativeTypes)
    • getProduceGeneralizedRdf

      public boolean getProduceGeneralizedRdf()
    • setProduceGeneralizedRdf

      public void setProduceGeneralizedRdf(Boolean produceGeneralizedRdf)
    • getDocumentLoader

      public DocumentLoader getDocumentLoader()
    • setDocumentLoader

      public void setDocumentLoader(DocumentLoader documentLoader)