A names pace makes content from an odML document available in other documents. A name space object therefore provided an URI to the odML document to include and a prefix. The prefix can be used to address content from the included document from the referencing one.
Create a new namespace object.
| Parameters: |
|---|
Since instances of NameSpace should be treated as immutable objects the copy() method can be used as an alternative to change the objects attributes.
Just reassign a modified copy:
ns = doc.namespaces["gnode"]
doc.namespaces["gnode"] = ns.copy(uri="gnode-terms.yml")
| Parameters: | |
|---|---|
| Returns: | A (modified) copy of the name space. |
Try to open the document the uri of the name space points to.
| Returns: | The odML document the uri points to. |
|---|---|
| Return type: | Document |
The prefix used to reference the linked document.
| Type: | str |
|---|
The uri to the linked document.
| Type: | str |
|---|