Generates the SPARQL representation of a single Triple.
Renders the triple as subject predicate object ., with the subject and object rendered via term. The
predicate renders as an IRI reference, except for the type IRI of the rdf vocabulary namespace,
which is abbreviated to the SPARQL ashorthand.
Parameters
triple: Triple
The triple to serialise, as a [subject, predicate, object] tuple
Returns string
The generated triple
Throws
RangeError if triple carries a malformed IRI, lexical form, or language tag
Generates the SPARQL representation of a single Triple.
Renders the triple as
subject predicate object ., with the subject and object rendered via term. The predicate renders as an IRI reference, except for thetypeIRI of the rdf vocabulary namespace, which is abbreviated to the SPARQLashorthand.