-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main'
# Conflicts: # src/portable_app_framework/__init__.py
- Loading branch information
Showing
11 changed files
with
299 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[//]: # (AUTOMATICALLY GENERATED DO NOT MODIFY) | ||
|
||
# App Template | ||
|
||
#### Version v.1.0 (YYYY-MM-DD) | ||
|
||
Short description | ||
|
||
## Structure | ||
|
||
The app[^1] is structured as follows: | ||
|
||
- Configuration file ([config.yaml](config.yaml)) | ||
- SPARQL query ([query.rq](query.rq)) | ||
- SHACL Shape or manifest ([manifest.ttl](manifest.ttl)) | ||
|
||
## Usage | ||
|
||
```python | ||
import pandas as pd | ||
import brickschema | ||
from portable_app_framework import Application | ||
|
||
app = Application( | ||
data=pd.DataFrame(), | ||
metadata=brickschema.Graph(), | ||
app_name='app_template' | ||
) | ||
app.qualify() | ||
app.fetch() | ||
app.clean() | ||
app.analyze() | ||
``` | ||
|
||
[^1]: by Author Name - example@mail.com |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
def analyze_fn(): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
def clean_fn(): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
details: | ||
name: App name | ||
description: Short description | ||
version: 1.0 | ||
author: Author Name | ||
email: example@mail.com | ||
created_at: YYYY-MM-DD | ||
|
||
parameters: | ||
time_from: | ||
value: 2021-01-01T00:00:00Z | ||
description: The starting time for the analysis | ||
type: string | ||
time_to: | ||
value: 2021-01-01T00:00:00Z | ||
description: The ending time for the analysis | ||
type: string | ||
aggregation: | ||
value: 1h | ||
description: The aggregation level for the analysis | ||
type: string | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@prefix brick: <https://brickschema.org/schema/Brick#> . | ||
@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
@prefix sh: <http://www.w3.org/ns/shacl#> . | ||
@prefix constraint: <https://nrel.gov/BuildingMOTIF/constraints#> . | ||
@prefix : <urn:my_site_constraints/> . | ||
|
||
: | ||
a owl:Ontology . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX brick: <https://brickschema.org/schema/Brick#> | ||
PREFIX bldg: <http://bldg-59#> | ||
SELECT * | ||
WHERE { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
@prefix bldg: <http://bldg-59#> . | ||
@prefix brick: <https://brickschema.org/schema/Brick#> . | ||
|
||
bldg:AHU | ||
a brick:AHU ; | ||
brick:feeds bldg:Zone_1, bldg:Zone_2, bldg:Zone_3, bldg:Zone_4, bldg:Zone_5 ; | ||
brick:hasPart bldg:Cooling_Coil, bldg:Outdoor_Air_Damper, bldg:Return_Air_Damper, bldg:Return_Air_Fan, | ||
bldg:Supply_Air_Fan ; | ||
brick:hasPoint bldg:MA_TEMP, bldg:OA_CFM, bldg:OA_TEMP, bldg:RA_CFM, bldg:RA_TEMP, bldg:SA_CFM, bldg:SA_SP, | ||
bldg:SA_SPSPT, bldg:SA_TEMP, bldg:SA_TEMPSPT, bldg:SYS_CTL . | ||
|
||
bldg:CHWC_VLV | ||
a brick:Valve_Position_Sensor . | ||
|
||
bldg:CHWC_VLV_DM | ||
a brick:Valve_Position_Command . | ||
|
||
#bldg:Cooling_Coil | ||
# a brick:Chilled_Water_Coil ; | ||
# brick:hasPoint bldg:CHWC_VLV, bldg:CHWC_VLV_DM . | ||
|
||
bldg:Cooling_Coil | ||
a brick:Cooling_Coil ; # changed in Cooling_Coil https://brickschema.org/ontology/Nightly/classes/Cooling_Coil | ||
brick:hasPoint bldg:CHWC_VLV, bldg:CHWC_VLV_DM . | ||
|
||
bldg:MA_TEMP | ||
a brick:Mixed_Air_Temperature_Sensor . | ||
|
||
bldg:OA_CFM | ||
a brick:Outside_Air_Flow_Sensor . | ||
|
||
bldg:OA_DMPR | ||
a brick:Damper_Position_Sensor . | ||
|
||
bldg:OA_DMPR_DM | ||
a brick:Damper_Position_Command . | ||
|
||
bldg:OA_TEMP | ||
a brick:Outside_Air_Temperature_Sensor . | ||
|
||
bldg:Outdoor_Air_Damper | ||
a brick:Outside_Damper ; | ||
brick:hasPoint bldg:OA_DMPR, bldg:OA_DMPR_DM . | ||
|
||
bldg:RA_CFM | ||
a brick:Return_Air_Flow_Sensor . | ||
|
||
bldg:RA_DMPR | ||
a brick:Damper_Position_Sensor . | ||
|
||
bldg:RA_DMPR_DM | ||
a brick:Damper_Position_Command . | ||
|
||
bldg:RA_TEMP | ||
a brick:Return_Air_Temperature_Sensor . | ||
|
||
bldg:RF_CS | ||
a brick:Speed_Setpoint . | ||
|
||
bldg:RF_SPD | ||
a brick:Speed_status . | ||
|
||
bldg:RF_SPD_DM | ||
a brick:Fan_On_Off_Status . | ||
|
||
bldg:RF_WAT | ||
a brick:Electrical_Power_Sensor . | ||
|
||
bldg:Return_Air_Damper | ||
a brick:Return_Damper ; | ||
brick:hasPoint bldg:RA_DMPR, bldg:RA_DMPR_DM . | ||
|
||
#bldg:Return_Air_Fan | ||
# a brick:Fan ; | ||
# brick:hasPoint bldg:RF_CS, bldg:RF_SPD, bldg:RF_SPD_DM, bldg:RF_WAT . | ||
bldg:Return_Air_Fan | ||
a brick:Return_Fan ; # changed in Return_Fan | ||
brick:hasPoint bldg:RF_CS, bldg:RF_SPD, bldg:RF_SPD_DM, bldg:RF_WAT . | ||
|
||
bldg:SA_CFM | ||
a brick:Supply_Air_Flow_Sensor . | ||
|
||
bldg:SA_SP | ||
a brick:Supply_Air_Static_Pressure_Sensor . | ||
|
||
bldg:SA_SPSPT | ||
a brick:Supply_Air_Static_Pressure_Setpoint . | ||
|
||
bldg:SA_TEMP | ||
a brick:Supply_Air_Temperature_Sensor . | ||
|
||
bldg:SA_TEMPSPT | ||
a brick:Supply_Air_Temperature_Setpoint . | ||
|
||
bldg:SF_CS | ||
a brick:Speed_Setpoint . | ||
|
||
bldg:SF_SPD | ||
a brick:Speed_status . | ||
|
||
bldg:SF_SPD_DM | ||
a brick:Fan_On_Off_Status . | ||
|
||
bldg:SF_WAT | ||
a brick:Electrical_Power_Sensor . | ||
|
||
bldg:SYS_CTL | ||
a brick:Occupancy_Status . | ||
|
||
#bldg:Supply_Air_Fan | ||
# a brick:Fan ; | ||
# brick:hasPoint bldg:SF_CS, bldg:SF_SPD, bldg:SF_SPD_DM, bldg:SF_WAT . | ||
bldg:Supply_Air_Fan | ||
a brick:Supply_Fan ; ## changed fan into Supply_Fan | ||
brick:hasPoint bldg:SF_CS, bldg:SF_SPD, bldg:SF_SPD_DM, bldg:SF_WAT . | ||
|
||
bldg:ZONE_TEMP_1 | ||
a brick:Zone_Air_Temperature_Sensor . | ||
|
||
bldg:ZONE_TEMP_2 | ||
a brick:Zone_Air_Temperature_Sensor . | ||
|
||
bldg:ZONE_TEMP_3 | ||
a brick:Zone_Air_Temperature_Sensor . | ||
|
||
bldg:ZONE_TEMP_4 | ||
a brick:Zone_Air_Temperature_Sensor . | ||
|
||
bldg:ZONE_TEMP_5 | ||
a brick:Zone_Air_Temperature_Sensor . | ||
|
||
bldg:Zone_1 | ||
a brick:HVAC_Zone ; | ||
brick:hasPoint bldg:ZONE_TEMP_1 . | ||
|
||
bldg:Zone_2 | ||
a brick:HVAC_Zone ; | ||
brick:hasPoint bldg:ZONE_TEMP_2 . | ||
|
||
bldg:Zone_3 | ||
a brick:HVAC_Zone ; | ||
brick:hasPoint bldg:ZONE_TEMP_3 . | ||
|
||
bldg:Zone_4 | ||
a brick:HVAC_Zone ; | ||
brick:hasPoint bldg:ZONE_TEMP_4 . | ||
|
||
bldg:Zone_5 | ||
a brick:HVAC_Zone ; | ||
brick:hasPoint bldg:ZONE_TEMP_5 . | ||
|
Oops, something went wrong.