RdfQuad

@Serializable
data class RdfQuad(val subject: String, val predicate: String, val object: String, val datatype: String? = null, val language: String? = null, val graph: String? = null)

Lightweight representation of an RDF quad (triple + optional named graph).

Object interpretation:

  • datatype == null && language == null → IRI or blank-node object

  • datatype != null → typed literal (e.g. xsd:string, xsd:dateTime)

  • language != null → language-tagged string literal

Blank nodes use the "_:" prefix per the N-Quads / RdfQuadConsumer convention.

Constructors

Link copied to clipboard
constructor(subject: String, predicate: String, object: String, datatype: String? = null, language: String? = null, graph: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

true when object is a blank node (not a literal and has the _: prefix).

Link copied to clipboard

true when subject is a blank node (has the _: prefix).

Link copied to clipboard

true when object is a literal, i.e. a datatype or language is set.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard