Skip to content

Commit 3d8b639

Browse files
committed
Merge branch 'develop' of github.com:NREL/buildingmotif into ts/library_packaging
2 parents 1227232 + 64ae7a0 commit 3d8b639

26 files changed

+97136
-51
lines changed

docs/README.md

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -17,32 +17,6 @@ Currently, ***BuildingMOTIF*** is planned to support [Brick](https://brickschema
1717

1818
# Documentation
1919

20-
The documentation uses Diataxis[^1] as a framework for its structure, which is organized into the following sections.
20+
[Documentation](https://buildingmotif.readthedocs.io/) is organized into sections for *References*, *Tutorials*, *Guides*, and *Explanations* following the framework Diataxis[^1].
2121

2222
[^1]: https://diataxis.fr/
23-
24-
## Reference
25-
26-
- [Developer Documentation](https://nrel.github.io/BuildingMOTIF/reference/developer_documentation.html)
27-
- [Command Line Interface](https://nrel.github.io/BuildingMOTIF/reference/cli_tool.html)
28-
- [Code Documentation](https://nrel.github.io/BuildingMOTIF/reference/apidoc/index.html)
29-
30-
## Tutorials
31-
32-
- [Model Creation](https://nrel.github.io/BuildingMOTIF/tutorials/model_creation.html)
33-
- [Model Validation](https://nrel.github.io/BuildingMOTIF/tutorials/model_validation.html)
34-
- [Model Correction](https://nrel.github.io/BuildingMOTIF/tutorials/model_correction.html)
35-
- [Template Writing](https://nrel.github.io/BuildingMOTIF/tutorials/template_writing.html)
36-
37-
## Guides
38-
39-
- [CSV Import](https://nrel.github.io/BuildingMOTIF/guides/csv-import.html)
40-
- [Brick model from BACnet network guide](https://nrel.github.io/BuildingMOTIF/guides/bacnet-to-brick.html)
41-
42-
## Explanations
43-
44-
- [Ingresses](https://nrel.github.io/BuildingMOTIF/explainations/ingresses.html)
45-
46-
## Appendix
47-
48-
- [Bibiography](https://nrel.github.io/BuildingMOTIF/bibliography.html)

docs/_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Book settings
44
title : BuildingMOTIF Documentation
55
author : NREL
6-
copyright : "2023"
6+
copyright : "2025"
77
logo : BuildingMOTIF-logo-rev.svg
88

99
# Execution settings
@@ -17,7 +17,7 @@ execute:
1717
# HTML-specific settings
1818
html:
1919
favicon : BuildingMOTIF-icon-rev.svg
20-
announcement : "⚠️ This is an BETA release for testing purposes only ⚠️"
20+
announcement : ""
2121
use_issues_button : true
2222
use_repository_button : true
2323

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
autosummary_generate = True
1010
bibtex_bibfiles = ['bibliography.bib']
1111
comments_config = {'hypothesis': False, 'utterances': False}
12-
copyright = '2023'
12+
copyright = '2025'
1313
exclude_patterns = ['**.ipynb_checkpoints', '.DS_Store', 'Thumbs.db', '_build']
1414
extensions = ['sphinx_togglebutton', 'sphinx_copybutton', 'myst_nb', 'jupyter_book', 'sphinx_thebe', 'sphinx_comments', 'sphinx_external_toc', 'sphinx.ext.intersphinx', 'sphinx_design', 'sphinx_book_theme', 'sphinx.ext.autodoc', 'sphinx.ext.autosummary', 'sphinx.ext.viewcode', 'sphinxcontrib.bibtex', 'sphinx_jupyterbook_latex']
1515
external_toc_exclude_missing = False
@@ -19,7 +19,7 @@
1919
html_logo = 'BuildingMOTIF-logo-rev.svg'
2020
html_sourcelink_suffix = ''
2121
html_theme = 'sphinx_book_theme'
22-
html_theme_options = {'search_bar_text': 'Search this book...', 'launch_buttons': {'notebook_interface': 'classic', 'binderhub_url': '', 'jupyterhub_url': '', 'thebe': False, 'colab_url': ''}, 'path_to_docs': 'docs', 'repository_url': 'https://github.com/NREL/BuildingMOTIF', 'repository_branch': 'main', 'extra_footer': '', 'home_page_in_toc': True, 'announcement': '⚠️ This is an BETA release for testing purposes only ⚠️', 'analytics': {'google_analytics_id': ''}, 'use_repository_button': True, 'use_edit_page_button': False, 'use_issues_button': True}
22+
html_theme_options = {'search_bar_text': 'Search this book...', 'launch_buttons': {'notebook_interface': 'classic', 'binderhub_url': '', 'jupyterhub_url': '', 'thebe': False, 'colab_url': ''}, 'path_to_docs': 'docs', 'repository_url': 'https://github.com/NREL/BuildingMOTIF', 'repository_branch': 'main', 'extra_footer': '', 'home_page_in_toc': True, 'announcement': '', 'analytics': {'google_analytics_id': ''}, 'use_repository_button': True, 'use_edit_page_button': False, 'use_issues_button': True}
2323
html_title = 'BuildingMOTIF Documentation'
2424
latex_engine = 'pdflatex'
2525
myst_enable_extensions = ['colon_fence', 'dollarmath', 'linkify', 'substitution', 'tasklist']

docs/reference/developer_documentation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Installing
44

55
1. Install prerequisites:
6-
- [Python >= 3.8.0](https://www.python.org/downloads/)
6+
- [Python >= 3.10.0, < 3.13](https://www.python.org/downloads/)
77
- [Poetry 1.4.0](https://python-poetry.org/docs/#installation)
88
2. Clone this repository.
99
3. Change directory to the new `/BuildingMOTIF` directory.
@@ -15,7 +15,7 @@
1515
```
1616
5. Install dependencies and pre-commit.
1717
```
18-
poetry install --with dev # includes development dependencies
18+
poetry install --with dev # includes development dependencies
1919
poetry run pre-commit install
2020
```
2121
@@ -68,8 +68,8 @@ pre-commit run -a
6868
6969
Pre-commit commands can be run individually with the following commands. Configuration of `isort`, `black`, and `mypy` are done in [pyproject.toml](https://github.com/NREL/BuildingMOTIF/blob/develop/pyproject.toml) and configuration of `flake8` is done in [.flake8](https://github.com/NREL/BuildingMOTIF/blob/develop/.flake8).
7070
```
71-
poetry run isort
72-
poetry run black
71+
poetry run isort .
72+
poetry run black .
7373
poetry run flake8 buildingmotif
7474
poetry run mypy --install-types --non-interactive --ignore-missing-imports
7575
```

docs/tutorials/model_correction.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ constraints = Library.load(ontology_graph="constraints/constraints.ttl")
5151
brick = Library.load(ontology_graph="../../libraries/brick/Brick-subset.ttl")
5252
g36 = Library.load(directory="../../libraries/ashrae/guideline36")
5353
54-
5554
# load tutorial 2 model and manifest
5655
model.graph.parse("tutorial2_model.ttl", format="ttl")
5756
manifest = Library.load(ontology_graph="tutorial2_manifest.ttl")
@@ -123,13 +122,13 @@ ahu_name = "Core_ZN-PSC_AC"
123122
124123
# lookup for the name of the template to the name of the point or part
125124
points_and_parts = {
126-
"resolve_Core_ZN-PSC_ACMixed_Air_Temperature_Sensor": "-MAT",
127-
"resolve_Core_ZN-PSC_ACFilter_Differential_Pressure_Sensor": "-FilterDPS",
128-
"resolve_Core_ZN-PSC_ACCooling_Command": "-CCmd",
129-
"resolve_Core_ZN-PSC_ACHeating_Command": "-HCmd",
130-
"resolve_Core_ZN-PSC_ACOutside_Air_Temperature_Sensor": "-OAT",
131-
"resolve_Core_ZN-PSC_ACSupply_Air_Temperature_Sensor": "-SAT",
132-
"resolve_Core_ZN-PSC_ACReturn_Air_Temperature_Sensor": "-RAT",
125+
"resolveCore_ZN-PSC_ACMixed_Air_Temperature_Sensor": "-MAT",
126+
"resolveCore_ZN-PSC_ACFilter_Differential_Pressure_Sensor": "-FilterDPS",
127+
"resolveCore_ZN-PSC_ACCooling_Command": "-CCmd",
128+
"resolveCore_ZN-PSC_ACHeating_Command": "-HCmd",
129+
"resolveCore_ZN-PSC_ACOutside_Air_Temperature_Sensor": "-OAT",
130+
"resolveCore_ZN-PSC_ACSupply_Air_Temperature_Sensor": "-SAT",
131+
"resolveCore_ZN-PSC_ACReturn_Air_Temperature_Sensor": "-RAT",
133132
"resolveCore_ZN-PSC_ACsa-fan": "-Fan", # this is an existing fan in the model!
134133
}
135134

docs/tutorials/model_creation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Currently, libraries in `../../buildingmotif/libraries/` are *included* and libr
8585
```{code-cell}
8686
# load a library
8787
from buildingmotif.dataclasses import Library
88-
brick = Library.load(ontology_graph="../../libraries/brick/Brick-full.ttl")
88+
brick = Library.load(ontology_graph="../../libraries/brick/Brick-subset.ttl")
8989
9090
# print the first 10 templates
9191
print("The Brick library contains the following templates:")
@@ -120,7 +120,7 @@ You should not load ontologies, schemas, rules, etc. into a Model. These belong
120120

121121
It is also possible to import RDF graphs into a `Model`.
122122

123-
If you already have an in-memory `RDFlib.Graph` object available (e.g. through an [Graph Ingress](/guides/ingresses) or loading in a Turtle file), just use `Model.add_graph`:
123+
If you already have an in-memory `RDFlib.Graph` object available (e.g. through an [Graph Ingress](../explanations/ingresses) or loading in a Turtle file), just use `Model.add_graph`:
124124

125125
```{code-cell}
126126
import rdflib

docs/tutorials/model_validation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Here is the header of a manifest file. This should also suffice for most of your
106106
@prefix : <urn:my_site_constraints/> .
107107
108108
: a owl:Ontology ;
109-
owl:imports <https://brickschema.org/schema/1.3/Brick>,
109+
owl:imports <https://brickschema.org/schema/1.4/Brick>,
110110
<https://nrel.gov/BuildingMOTIF/constraints>,
111111
<urn:ashrae/g36> .
112112
```
@@ -183,7 +183,7 @@ with open("tutorial1_manifest.ttl", "w") as f:
183183
@prefix : <urn:my_site_constraints/> .
184184
185185
: a owl:Ontology ;
186-
owl:imports <https://brickschema.org/schema/1.3/Brick>,
186+
owl:imports <https://brickschema.org/schema/1.4/Brick>,
187187
<https://nrel.gov/BuildingMOTIF/constraints>,
188188
<urn:ashrae/g36> .
189189

docs/tutorials/tutorial1_manifest.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
@prefix : <urn:my_site_constraints/> .
77

88
: a owl:Ontology ;
9-
owl:imports <https://brickschema.org/schema/1.3/Brick>,
9+
owl:imports <https://brickschema.org/schema/1.4/Brick>,
1010
<https://nrel.gov/BuildingMOTIF/constraints>,
1111
<urn:ashrae/g36> .
1212

docs/tutorials/tutorial2_manifest.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
@prefix : <urn:my_site_constraints/> .
77

88
: a owl:Ontology ;
9-
owl:imports <https://brickschema.org/schema/1.3/Brick>,
9+
owl:imports <https://brickschema.org/schema/1.4/Brick>,
1010
<https://nrel.gov/BuildingMOTIF/constraints>,
1111
<urn:ashrae/g36> .
1212

libraries/brick/Brick-subset.ttl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@prefix sh: <http://www.w3.org/ns/shacl#> .
55
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
66

7-
<https://brickschema.org/schema/1.3/Brick> a owl:Ontology .
7+
<https://brickschema.org/schema/1.4/Brick> a owl:Ontology .
88

99
brick:Acceleration_Time_Setpoint a owl:Class,
1010
sh:NodeShape ;
@@ -4970,4 +4970,9 @@ brick:Valve_Position_Command a owl:Class,
49704970
brick:Damper a owl:Class,
49714971
sh:NodeShape ;
49724972
rdfs:label "Damper" ;
4973-
rdfs:subClassOf brick:HVAC_Equipment .
4973+
rdfs:subClassOf brick:HVAC_Equipment .
4974+
4975+
brick:Outside_Damper a owl:Class,
4976+
sh:NodeShape ;
4977+
rdfs:label "Outside Damper" ;
4978+
rdfs:subClassOf brick:Damper .

0 commit comments

Comments
 (0)