Type Parameters
- Q extends RDF.BaseQuad = RDF.Quad
Constructors
constructor
- new Writer<Q>(options?): Writer<Q>
Type Parameters
- Q extends BaseQuad = Quad
Parameters
Optional
options: WriterOptions
- new Writer<Q>(fd, options?): Writer<Q>
Type Parameters
- Q extends BaseQuad = Quad
Parameters
- fd: any
Optional
options: WriterOptions
Methods
addPrefix
- addPrefix(prefix, iri, done?): void
Parameters
- prefix: string
- iri: string | NamedNode<string>
Optional
done: (() => void)
Returns void
addPrefixes
- addPrefixes(prefixes, done?): void
Parameters
- prefixes: Prefixes<string | NamedNode<string>>
Optional
done: (() => void)
Returns void
addQuad
- addQuad(subject, predicate, object, graph?, done?): void
Parameters
- subject: Q["subject"]
- predicate: Q["predicate"]
- object: Q["object"] | Q["object"][]
Optional
graph: Q["graph"]Optional
done: (() => void)
Returns void
- addQuad(quad): void
Returns void
addQuads
- addQuads(quads): void
Returns void
blank
- blank(predicate, object): BlankNode
Parameters
- predicate: Q["predicate"]
- object: Q["object"]
- blank(triple): BlankNode
Parameters
- triple:
| Quad
| Quad[]
| BlankTriple<Quad>
| BlankTriple<Quad>[]
end
- end(err?, result?): void
Parameters
Optional
err: ErrorCallbackOptional
result: string
Returns void
list
- list(triple): Quad_Object[]
quadToString
- quadToString(subject, predicate, object, graph?): string
Parameters
- subject: Q["subject"]
- predicate: Q["predicate"]
- object: Q["object"]
Optional
graph: Q["graph"]
Returns string
quadsToString
- quadsToString(quads): string
Returns string