schema_to_ttl.py§
schema_to_ttl(state, config)
§
Generate a TTL (Turtle) script from the building description and component hierarchy.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
state
|
State
|
The current state containing the user prompt, sensors, and element hierarchy. |
required |
config
|
dict
|
Configuration dictionary containing the language model. |
required |
Returns:
Name | Type | Description |
---|---|---|
dict |
Dict[str, Any]
|
A dictionary containing the generated TTL output. |
Source code in brickllm/nodes/schema_to_ttl.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
|