Skip to content

Conversation

Copy link

Copilot AI commented Aug 10, 2025

The building electrical meter example was using deprecated Brick 1.4 location classes that have been replaced by RealEstateCore (REC) classes. This made it difficult for users to implement building electrical meters properly, as the example referenced deprecated classes like brick:Building, brick:Floor, and brick:Site.

Changes Made

This PR updates the examples/building_meter/building_meter.ttl file to use the current Brick 1.4 schema recommendations:

  • Added REC namespace: @prefix rec: <https://w3id.org/rec#>
  • Replaced deprecated classes with REC equivalents:
    • brick:Buildingrec:Building
    • brick:Floorrec:Level
    • brick:Siterec:Site
  • Updated spatial relationships: brick:hasPart/brick:isPartOfrec:hasPart/rec:isPartOf

Before and After

Before (deprecated):

bldg:mysite a brick:Site ;
    brick:hasPart bldg:mybldg .
bldg:mybldg a brick:Building ;
    brick:isMeteredBy bldg:main-meter .
bldg:floor1 a brick:Floor ;
    brick:isPartOf bldg:mybldg .

After (REC compliant):

bldg:mysite a rec:Site ;
    rec:hasPart bldg:mybldg .
bldg:mybldg a rec:Building ;
    brick:isMeteredBy bldg:main-meter .
bldg:floor1 a rec:Level ;
    rec:isPartOf bldg:mybldg .

Validation

  • ✅ All existing tests pass
  • ✅ Spatial hierarchy preserved (site → building → floors)
  • ✅ Metering relationships intact (building and floor metering works correctly)
  • ✅ Example loads successfully with 55 triples
  • ✅ Provides proper reference implementation for building electrical metering in Brick 1.4

The updated example now serves as a correct reference for implementing building electrical meters with the latest Brick schema, using REC classes instead of deprecated location classes.

Fixes #709.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copy link
Author

Copilot AI commented Aug 10, 2025

@gtfierro 👋 This repository doesn't have Copilot instructions. With Copilot instructions, I can understand the repository better, work faster and produce higher quality PRs.

I can generate a .github/copilot-instructions.md file for you automatically. Click here to open a pre-filled issue and assign it to me. I'll write the instructions, and then tag you for review.

Copilot AI changed the title [WIP] Building electrical meter example doesn't fit the latest Brick 1.4 schema Update building meter example to use REC classes instead of deprecated Brick location classes Aug 10, 2025
Copilot AI requested a review from gtfierro August 10, 2025 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Building electrical meter example doesn't fit the latest Brick 1.4 schema

2 participants