bSDD API list class properties

Question from a user:

I am trying to access and read a specific Property Set from bSDD. However, I am encountering some difficulties.

I am specifically interested in the following Property Set:

Code: EC004822

Identifier (URI): https://identifier.buildingsmart.org/uri/etim/etim/10.0/class/EC004822

Name: Medium voltage secondary switchgear

I am developing my solution in Python and need to extract the 21 associated properties, but I am unsure how to implement this.

Also when attempting to search for this specific class using the Swagger API Test Tool, it returns an empty list for ClassProperties.

Could you please provide guidance on:

  1. Whether it is possible to query these attributes using Python
  2. If so, what would be the recommended approach
  3. Any potential solutions to the empty list issue I’m experiencing in the Swagger API Test Tool

I would greatly appreciate any assistance or direction you could provide on this matter.

Thank you for your time and consideration.


You can list all properties of a class using: GET /api/Class/Properties/v1

For example:

curl -X ‘GET’
https://api.bsdd.buildingsmart.org/api/Class/Properties/v1?ClassUri=https%3A%2F%2Fidentifier.buildingsmart.org%2Furi%2Fetim%2Fetim%2F10.0%2Fclass%2FEC004822
-H ‘accept: text/plain’

In Python that would be:

import requests

url = “https://api.bsdd.buildingsmart.org/api/Class/Properties/v1
params = {“ClassUri”: “bSDD Search”}
headers = {“accept”: “text/plain”}

response = requests.get(url, headers=headers, params=params)
print(response.text)

Swagger API Test Tool? There is indeed a Test API, but there is no ETIM in the Test database. Just use the official (production environment) bSDD API: https://app.swaggerhub.com/apis-docs/buildingSMART/Dictionaries/v1