Skip to content

Copy of Tutorial Templates for S223 #390

@XaelZeph

Description

@XaelZeph

Since buildingMOTIF is compatible with more than brick, would it be possible to provide example templates with the other schemas on the tutorial for templates page.

For the tutorial, the dependencies use the pattern:

body> ...
    brick:hasPoint p:sa-flow
    ...
.
.
.
template: https://brickschema.org/schema/Brick#Supply_Air_Flow_Sensor
          ^ overall link                       ^ specific equipment name
# or manually
template: other_manually_written_template

I found a few template examples inside the github folder BuildingMOTIF/.../ashrae/223p/nrel-templates, and I was wondering if it was possible to put these into the official documentation for others to reference.

One thing I noticed in these examples is that the dependencies never get template from url.

For example:

pipe:
  body: >
    @prefix P: <urn:___param___#> .
    @prefix s223: <http://data.ashrae.org/standard223#> .
    P:name a s223:Pipe ;
      s223:hasMedium s223:Fluid-Water ;
      s223:cnx P:a, P:b .
  1. From the yml I've skimmed, all of the dependencies' template are manually written elsewhere, rather than grabbing from an url/pre-existing template. Why does the tutorial with brickschema In one, I saw this, but it is obviously commented out:
sensor:
  body: >
    @prefix P: <urn:___param___#> .
    @prefix s223: <http://data.ashrae.org/standard223#> .
    P:name a s223:Sensor ;
      s223:hasObservationLocation P:where ;
      s223:observes P:property .
      #dependencies:
      #  - template: http://data.ashrae.org/standard223#Property
      #    library: http://data.ashrae.org/standard223/1.0/model/all
      #    args: {"name": "property"}
      #  - template: http://data.ashrae.org/standard223#Connectable
      #    library: http://data.ashrae.org/standard223/1.0/model/all
      #    args: {"name": "where"}
      #    #optional: ["where"]
  1. Does the above work? Or does ashrae s223 not have templates?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions