UNPKG

graphdb

Version:

Javascript client library supporting GraphDB and RDF4J REST API.

31 lines (30 loc) 731 B
export = Namespace; /** * Class for containing a namespace and it's associated prefix. * * @author Mihail Radkov * @author Svilen Velikov */ declare class Namespace { /** * Instantiates a namespace with its prefix. * * @param {string} prefix the namespace prefix * @param {NamedNode} namespace the namespace as named node */ constructor(prefix: string, namespace: NamedNode); prefix: string; namespace: NamedNode; /** * Returns the namespace prefix. * * @return {string} the namespace prefix */ getPrefix(): string; /** * Returns the namespace. * * @return {NamedNode} the namespace as named node */ getNamespace(): NamedNode; }