Properties
Optional
author
author?: string
Optional
dateCreated
dateCreated?: string
graphs
graphs: {
[key: string]: NamedNode | null;
} = ...
Type declaration
-
[key: string]: NamedNode | null
prefixes
prefixes: {
[key: string]: string;
} = default_prefixes
rdfString
rdfString: string
store
store: Store<Quad, Quad, Quad, Quad>
Optional
uri
uri?: string
Create a Nanopub
const np = await Nanopub.fetch('https://purl.org/np/RA')
const np = await Nanopub.parse('ADD NP RDF')
const np = await Nanopub.parse(store)