Hierarchy

  • Nanopub

Constructors

Properties

author?: string
dateCreated?: string
displayNp?: NpDisplay
graphs: {
    [key: string]: NamedNode | null;
} = ...

Type declaration

  • [key: string]: NamedNode | null
prefixes: {
    [key: string]: string;
} = default_prefixes

Type declaration

  • [key: string]: string
rdfString: string

Create a Nanopub

  • Fetch from URL: const np = await Nanopub.fetch('https://purl.org/np/RA')
  • Create from a string: const np = await Nanopub.parse('ADD NP RDF')
  • Or provide a RDF/JS store: const np = await Nanopub.parse(store)
store: Store<Quad, Quad, Quad, Quad>
uri?: string

Methods

Generated using TypeDoc