UKO Python Vocabulary
type: Ontology
comment: Layer 3 technology vocabulary for Python.

PythonModule
type: Class
subclass of: Module
comment: A Python module (.py file) — extends uko-code:Module.

PythonClass
type: Class
subclass of: Class
comment: A Python class definition — extends uko-oo:Class.

PythonFunction
type: Class
subclass of: Method
comment: A Python function or method — extends uko-oo:Method. Includes decorators and type annotations.

PythonDecorator
type: Class
subclass of: TypeDefinition
comment: A decorator chain entry (@property, @staticmethod, @classmethod, custom decorators).

PythonTypeStub
type: Class
subclass of: TypeDefinition
comment: Type annotations from .pyi stub files or inline typing module usage.

hasDecorator
type: ObjectProperty
domain: PythonFunction
domain: PythonClass
range: PythonDecorator
comment: Links a function/class to its decorator chain entries.

hasTypeStub
type: ObjectProperty
domain: PythonModule
domain: PythonClass
domain: PythonFunction
range: PythonTypeStub
comment: Links a module/class/function to its .pyi type stub.

hasTest
type: ObjectProperty
domain: PythonFunction
domain: PythonClass
range: PythonFunction
comment: Links a callable to its associated test cases (for WITH_TESTS depth level).

decoratorName
type: DatatypeProperty
domain: PythonDecorator
range: string
comment: The string name of a decorator (e.g. 'property', 'staticmethod').

stubAnnotation
type: DatatypeProperty
domain: PythonTypeStub
range: string
comment: Type annotation string from a .pyi stub file.