Constructor
new Namespace(prefix, namespace)
Instantiates a namespace with its prefix.
Parameters:
Name | Type | Description |
---|---|---|
prefix |
string | the namespace prefix |
namespace |
NamedNode | the namespace as named node |
- Source:
Methods
getNamespace() → {NamedNode}
Returns the namespace.
- Source:
Returns:
the namespace as named node
- Type
- NamedNode
getPrefix() → {string}
Returns the namespace prefix.
- Source:
Returns:
the namespace prefix
- Type
- string