UNPKG

rdf-ext

Version:

RDF-Ext is a developer-friendly extension for RDF/JS

15 lines (11 loc) 248 B
import LiteralBase from '@rdfjs/data-model/lib/Literal.js' import toNT from '@rdfjs/to-ntriples' class Literal extends LiteralBase { toCanonical () { return toNT(this) } toString () { return this.value } } export default Literal