Skip to content

Commit

Permalink
REC Updates (#647)
Browse files Browse the repository at this point in the history
* (no commit message provided)

* Add deprecated brick locations from the 'x' file to `bricksrc/recpatches.ttl` following existing styles and properties.

* remove bad module

* adding rec

* add submodules to checkout

* small fixes

* add pyproject

* bump pyontoenv
  • Loading branch information
gtfierro authored Aug 7, 2024
1 parent b4f160f commit 0a213dd
Show file tree
Hide file tree
Showing 11 changed files with 188 additions and 3,020 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
python-version: ['3.9', '3.10']
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/nightly-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "rec"]
path = rec
url = https://github.com/RealEstateCore/rec
2 changes: 1 addition & 1 deletion bricksrc/env.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from ontoenv import OntoEnv, Config
cfg = Config(["support/", "extensions/", "examples/"], strict=False, offline=True)
cfg = Config(["support/", "extensions/", "examples/", "rec/Source/SHACL/RealEstateCore"], strict=False, offline=True)
env = OntoEnv(cfg)
1 change: 0 additions & 1 deletion bricksrc/ontology.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"ref": "https://brickschema.org/schema/Brick/ref",
"rec": "https://w3id.org/rec",
"recimports": "https://w3id.org/rec/recimports",
"brickpatches": "https://w3id.org/rec/brickpatches",
"quantitykind": "http://qudt.org/2.1/vocab/quantitykind",
"qudtsou": "http://qudt.org/2.1/vocab/sou",
"qudtdv": "http://qudt.org/2.1/vocab/dimensionvector",
Expand Down
141 changes: 140 additions & 1 deletion support/brickpatches.ttl → bricksrc/recpatches.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,149 @@ brick:Ablutions_Room
brick:deprecatedInVersion "1.4.0" ;
brick:deprecationMitigationMessage "Brick location classes are being phased out in favor of RealEstateCore classes. There is not yet a replacement in REC for Ablutions_Room" ;
.
brick:Detention_Room
owl:deprecated "true"^^xsd:boolean ;
brick:deprecatedInVersion "1.4.0" ;
brick:deprecationMitigationMessage "Brick location classes are being phased out in favor of RealEstateCore classes. There is not yet a replacement in REC for Detention_Room" ;
.
brick:Environment_Box
owl:deprecated "true"^^xsd:boolean ;
brick:deprecatedInVersion "1.4.0" ;
brick:deprecationMitigationMessage "Brick location classes are being phased out in favor of RealEstateCore classes. There is not yet a replacement in REC for Environment_Box" ;
.
brick:Field_Of_Play
owl:deprecated "true"^^xsd:boolean ;
brick:deprecatedInVersion "1.4.0" ;
brick:deprecationMitigationMessage "Brick location classes are being phased out in favor of RealEstateCore classes. There is not yet a replacement in REC for Field_Of_Play" ;
.
brick:First_Aid_Room
owl:deprecated "true"^^xsd:boolean ;
brick:deprecatedInVersion "1.4.0" ;
brick:deprecationMitigationMessage "Brick location classes are being phased out in favor of RealEstateCore classes. There is not yet a replacement in REC for First_Aid_Room" ;
.
brick:Freezer
owl:deprecated "true"^^xsd:boolean ;
brick:deprecatedInVersion "1.4.0" ;
brick:deprecationMitigationMessage "Brick location classes are being phased out in favor of RealEstateCore classes. There is not yet a replacement in REC for Freezer" ;
.
brick:Gatehouse
owl:deprecated "true"^^xsd:boolean ;
brick:deprecatedInVersion "1.4.0" ;
brick:deprecationMitigationMessage "Brick location classes are being phased out in favor of RealEstateCore classes. There is not yet a replacement in REC for Gatehouse" ;
.
brick:Hospitality_Box
owl:deprecated "true"^^xsd:boolean ;
brick:deprecatedInVersion "1.4.0" ;
brick:deprecationMitigationMessage "Brick location classes are being phased out in favor of RealEstateCore classes. There is not yet a replacement in REC for Hospitality_Box" ;
.
brick:Hot_Box
owl:deprecated "true"^^xsd:boolean ;
brick:deprecatedInVersion "1.4.0" ;
brick:deprecationMitigationMessage "Brick location classes are being phased out in favor of RealEstateCore classes. There is not yet a replacement in REC for Hot_Box" ;
.
brick:Information_Area
owl:deprecated "true"^^xsd:boolean ;
brick:deprecatedInVersion "1.4.0" ;
brick:deprecationMitigationMessage "Brick location classes are being phased out in favor of RealEstateCore classes. There is not yet a replacement in REC for Information_Area" ;
.
brick:Lighting_Zone
owl:deprecated "true"^^xsd:boolean ;
brick:deprecatedInVersion "1.4.0" ;
brick:deprecationMitigationMessage "Brick location classes are being phased out in favor of RealEstateCore classes. There is not yet a replacement in REC for Lighting_Zone" ;
.
brick:Loading_Dock
owl:deprecated "true"^^xsd:boolean ;
brick:deprecatedInVersion "1.4.0" ;
brick:deprecationMitigationMessage "Brick location classes are being phased out in favor of RealEstateCore classes. There is not yet a replacement in REC for Loading_Dock" ;
.
brick:Majlis
owl:deprecated "true"^^xsd:boolean ;
brick:deprecatedInVersion "1.4.0" ;
brick:deprecationMitigationMessage "Brick location classes are being phased out in favor of RealEstateCore classes. There is not yet a replacement in REC for Majlis" ;
.
brick:Media_Room
owl:deprecated "true"^^xsd:boolean ;
brick:deprecatedInVersion "1.4.0" ;
brick:deprecationMitigationMessage "Brick location classes are being phased out in favor of RealEstateCore classes. There is not yet a replacement in REC for Media_Room" ;
.
brick:Media_Hot_Desk
owl:deprecated "true"^^xsd:boolean ;
brick:deprecatedInVersion "1.4.0" ;
brick:deprecationMitigationMessage "Brick location classes are being phased out in favor of RealEstateCore classes. There is not yet a replacement in REC for Media_Hot_Desk" ;
.
brick:Media_Production_Room
owl:deprecated "true"^^xsd:boolean ;
brick:deprecatedInVersion "1.4.0" ;
brick:deprecationMitigationMessage "Brick location classes are being phased out in favor of RealEstateCore classes. There is not yet a replacement in REC for Media_Production_Room" ;
.
brick:Outside
owl:deprecated "true"^^xsd:boolean ;
brick:deprecatedInVersion "1.4.0" ;
brick:deprecationMitigationMessage "Brick location classes are being phased out in favor of RealEstateCore classes. There is not yet a replacement in REC for Outside" ;
.
brick:Parking_Level
owl:deprecated "true"^^xsd:boolean ;
brick:deprecatedInVersion "1.4.0" ;
brick:deprecationMitigationMessage "Brick location classes are being phased out in favor of RealEstateCore classes. There is not yet a replacement in REC for Parking_Level" ;
.
brick:Parking_Structure
owl:deprecated "true"^^xsd:boolean ;
brick:deprecatedInVersion "1.4.0" ;
brick:deprecationMitigationMessage "Brick location classes are being phased out in favor of RealEstateCore classes. There is not yet a replacement in REC for Parking_Structure" ;
.
brick:Prayer_Room
owl:deprecated "true"^^xsd:boolean ;
brick:deprecatedInVersion "1.4.0" ;
brick:deprecationMitigationMessage "Brick location classes are being phased out in favor of RealEstateCore classes. There is not yet a replacement in REC for Prayer_Room" ;
.
brick:Pump_Room
owl:deprecated "true"^^xsd:boolean ;
brick:deprecatedInVersion "1.4.0" ;
brick:deprecationMitigationMessage "Brick location classes are being phased out in favor of RealEstateCore classes. There is not yet a replacement in REC for Pump_Room" ;
.
brick:Riser
owl:deprecated "true"^^xsd:boolean ;
brick:deprecatedInVersion "1.4.0" ;
brick:deprecationMitigationMessage "Brick location classes are being phased out in favor of RealEstateCore classes. There is not yet a replacement in REC for Riser" ;
.
brick:Sports_Service_Room
owl:deprecated "true"^^xsd:boolean ;
brick:deprecatedInVersion "1.4.0" ;
brick:deprecationMitigationMessage "Brick location classes are being phased out in favor of RealEstateCore classes. There is not yet a replacement in REC for Sports_Service_Room" ;
.
brick:Stage_Riser
owl:deprecated "true"^^xsd:boolean ;
brick:deprecatedInVersion "1.4.0" ;
brick:deprecationMitigationMessage "Brick location classes are being phased out in favor of RealEstateCore classes. There is not yet a replacement in REC for Stage_Riser" ;
.
brick:TETRA_Room
owl:deprecated "true"^^xsd:boolean ;
brick:deprecatedInVersion "1.4.0" ;
brick:deprecationMitigationMessage "Brick location classes are being phased out in favor of RealEstateCore classes. There is not yet a replacement in REC for TETRA_Room" ;
.
brick:Ticketing_Booth
owl:deprecated "true"^^xsd:boolean ;
brick:deprecatedInVersion "1.4.0" ;
brick:deprecationMitigationMessage "Brick location classes are being phased out in favor of RealEstateCore classes. There is not yet a replacement in REC for Ticketing_Booth" ;
.
brick:Tunnel
owl:deprecated "true"^^xsd:boolean ;
brick:deprecatedInVersion "1.4.0" ;
brick:deprecationMitigationMessage "Brick location classes are being phased out in favor of RealEstateCore classes. There is not yet a replacement in REC for Tunnel" ;
.
brick:Water_Tank
owl:deprecated "true"^^xsd:boolean ;
brick:deprecatedInVersion "1.4.0" ;
brick:deprecationMitigationMessage "Brick location classes are being phased out in favor of RealEstateCore classes. There is not yet a replacement in REC for Water_Tank" ;
.
brick:Vertical_Space
owl:deprecated "true"^^xsd:boolean ;
brick:deprecatedInVersion "1.4.0" ;
brick:deprecationMitigationMessage "Brick location classes are being phased out in favor of RealEstateCore classes. There is not yet a replacement in REC for Vertical_Space" ;
.
brick:Absolute_Humidity_Sensor
rdf:type owl:Class ;
rdf:type sh:NodeShape ;
rdfs:label "Absolute Humidity Sensor" ;
rdfs:subClassOf brick:Humidity_Sensor ;
sh:property [
rdf:type sh:PropertyShape ;
Expand Down
1 change: 0 additions & 1 deletion generate_brick.py
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,6 @@ def handle_concept_labels():

# add rec stuff
env.import_graph(G, "https://w3id.org/rec")
env.import_graph(G, "https://w3id.org/rec/brickpatches")

# add inferred information to Brick
# logger.info("Adding inferred information to Brick")
Expand Down
36 changes: 36 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[project]
name = "brick"
version = "0.1.0"
description = "Add your description here"
authors = [
{ name = "Gabe Fierro", email = "[email protected]" }
]
dependencies = [
"owlrl>=6.0",
"rdflib>=7.0",
"pytest>=7.3",
"tqdm>=4.0",
"pyshacl>=0.25",
"docker>=6.0",
"black==24.3.0",
"pre-commit>=3.2",
"flake8>=6.0",
"pytest-xdist[psutil]>=3.5.0",
"brickschema[all]>=0.7.5",
"semver>=2.10.1",
"html5lib>=1.1",
"pyontoenv>=0.1.9a6",
]
readme = "README.md"
requires-python = ">= 3.9"

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.rye]
managed = true
dev-dependencies = []

[tool.hatch.metadata]
allow-direct-references = true
1 change: 1 addition & 0 deletions rec
Submodule rec added at 352187
Loading

0 comments on commit 0a213dd

Please sign in to comment.