Name

class kgpy.Name(base='', parent=None)

Bases: object

Representation of a hierarchical namespace. Names are a composition of a parent, which is also a name, and a base which is a simple string. The string representation of a name is <parent>.base, where <parent> is the parent’s string expansion.

Parameters
__init__(base='', parent=None)
Parameters
Return type

None

Attributes

base

Base of the name, this string will appear last in the string representation

parent

Parent string of the name, this itself also a name

Methods

__init__([base, parent])

copy()

Inheritance Diagram

Inheritance diagram of kgpy.Name

copy()
base: str = ''

Base of the name, this string will appear last in the string representation

parent: typing.Optional[kgpy.Name] = None

Parent string of the name, this itself also a name