elm-cardano/json-ld/1.0.0

JsonLd.Rdf

Core RDF data model types.

type Term
= Iri String
| BlankNode String
| LiteralTerm Literal

An RDF term — each value represents a node in the graph.

type alias Literal =
{ value : String
, datatype : String
, language : Maybe String
}

An RDF literal with a value, datatype, and optional language tag. The datatype is always present per W3C spec (defaults to xsd:string).

type alias Quad =
{ subject : Term
, predicate : String
, object : Term
, graph : Maybe Term
}

A quad is a single directed edge in an RDF dataset.

type alias Dataset =
List Quad

An RDF dataset is a list of quads.

xsdString : String

xsd:string IRI — the default datatype for plain literals.

rdfLangString : String

rdf:langString IRI — the datatype for language-tagged literals.

rdfType : String

rdf:type IRI.

rdfFirst : String

rdf:first IRI — used in RDF list encoding.

rdfRest : String

rdf:rest IRI — used in RDF list encoding.

rdfNil : String

rdf:nil IRI — the empty list terminator in RDF list encoding.