Skip to content

Naming parameters created from SHACL Rules #204

@lazlop

Description

@lazlop

Is there any way to reliably and helpfully name parameters that are created based on SHACL rules?

For example, I am creating a TimeseriesReference using the template in Brick-full.ttl

from buildingmotif.dataclasses import Library
brick = Library.load(ontology_graph="Brick-full.ttl")
from buildingmotif.namespaces import REF
ref_template = brick.get_template_by_name(REF.TimeseriesReference)

The ref_template will have the parameter name, then a randomly named parameter for the TimeseriesId (p12,p27,p3, etc.).

print(ref_template.parameters)
    {'name', 'p27'}

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