diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index 2c53702e..19234cbe 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -1,16 +1,11 @@ name: Build -permissions: - pull-requests: write - issues: write - on: push: branches: - master - v1.* pull_request: - pull_request_target: concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -67,7 +62,7 @@ jobs: extensions.zip - name: comment artifact # if the trigger is on a pull request - if: ${{ github.event_name == 'pull_request' && matrix.python-version == env.RELEASE_PYTHON_VERSION }} + if: ${{ github.event_name == 'pull_request' && matrix.python-version == env.RELEASE_PYTHON_VERSION && github.event.pull_request.head.repo.full_name == 'BrickSchema/Brick' }} uses: peter-evans/create-or-update-comment@v4 with: issue-number: ${{ github.event.number }} diff --git a/bricksrc/entity_properties.py b/bricksrc/entity_properties.py index 65256c78..145aad64 100644 --- a/bricksrc/entity_properties.py +++ b/bricksrc/entity_properties.py @@ -76,6 +76,14 @@ RDFS.label: Literal("Coordinates", lang="en"), "property_of": [BRICK.Equipment, BRICK.Location], }, + BRICK.resolution: { + SKOS.definition: Literal( + "The resolution of the entity specifing the smallest measurable or controllable increment" + ), + SH.node: BSH.ResolutionShape, + RDFS.label: Literal("Resolution", lang="en"), + "property_of": BRICK.Point, + }, # electrical properties BRICK.electricalComplexPower: { SKOS.definition: Literal("Associated electrical complexity with the entity"), @@ -272,7 +280,7 @@ }, BRICK.operationalStageCount: { SKOS.definition: Literal( - "The number of operational stages supported by this eqiupment" + "The number of operational stages supported by this equipment" ), "property_of": BRICK.Equipment, SH.node: BSH.StageShape, @@ -333,7 +341,7 @@ # special stuff BRICK.aggregate: { SKOS.definition: Literal( - "Description of how the dta for this point is aggregated" + "Description of how the data for this point is aggregated" ), "property_of": BRICK.Point, SH.node: BSH.AggregationShape, @@ -514,6 +522,10 @@ "units": [UNIT.PERCENT], "range": {"minInclusive": 0}, }, + BSH.ResolutionShape: { + "datatype": BSH.NumericValue, + "range": {"minExclusive": 0}, + }, BSH.CoolingCapacityShape: { "datatype": BSH.NumericValue, "units": [UNIT.TON_FG, UNIT["BTU_IT-PER-HR"], UNIT["BTU_TH-PER-HR"], UNIT.W], diff --git a/pyproject.toml b/pyproject.toml index 22e46ab2..5023360d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,4 +37,4 @@ managed = true dev-dependencies = [] [tool.hatch.metadata] -allow-direct-references = true +allow-direct-references = true \ No newline at end of file