docs← Back to article

Markdown for LLMs

type-step

The source Markdown for this article. Copy it into your assistant or download it as a text file.

Download this articlePlain text ↗
# type-step

Один шаг цепочки типов субъекта — alias или subtype от названного типа к цели; следующий шаг — тот же вопрос с полученным to и пакетом цели.

## Parameters

- `type`
- `pkg`

## Example

The filed example, as is:

```text
type=urn:kz:corpus:clir:osms#Person pkg=kz.corpus.osms
```

## Query

```lawq
from l in corpus("${pkg}").links
where l.from == "${type}" and l.kind in ["alias", "subtype"]
select l.kind as step, l.to as to
```