ralphtq/elm-rdf-n3-quads/1.0.0

Rdf.Wire.Encode

Json.Encode constructors for every wire-format type in Rdf.Wire.Types. Use these when the Elm side needs to construct a wire value to send back to the TypeScript companion via a port — for example, to ship a list of JSONrdfQuads to writeQuads or shaclValidateWithQuads.

jsonRdfTermTypeAndValue : JSONrdfTermTypeAndValue -> Value

Encode a JSONrdfTermTypeAndValue.

jsonRdfObject : JSONrdfObject -> Value

Encode a JSONrdfObject. language and datatype are emitted as JSON null when Nothing.

jsonRdfQuad : JSONrdfQuad -> Value

Encode a JSONrdfQuad.

jsonDataModel : JSONdataModel -> Value

Encode a JSONdataModel.

graphTicket : GraphTicket -> Value

Encode a GraphTicket.

prefixObject : PrefixObject -> Value

Encode a PrefixObject.