Skip to main content

Convert BIM data to RDF models

Project description

BIM2RDF

Functionality used to convert building models in Speckle to ASHRAE S223 semantic models. The operationalized version will be on Speckle Automate.

Each top-level directory is a 'component' of the project. Furthermore, the following dependencies were extracted as generic stand-alone libraries: PyTQSHACL, RDF-Engine, JSON2RDF.

Development

Setup

> uv sync --all-packages
> uv run pre-commit install
# activate environment
> .venv/Scripts/activate

Make a .secrets.toml file with

[speckle]
token = "yourtoken"

In development, a .cache directory will be created in the working directory to save expensive processing in general but mainly to save Speckle query results. Thus, the user must clear the cache to be able to access new data.

Process

Follow test instructions.

Usage

...is a three-step process:

  1. Get an ontology. You can use the built-in process, bim2rdf ontologies.import followed by bim2rdf ontologies.import, to create an ontology ttl from a definition.
  2. Create mappings.
  3. Execute. Configure with a params.yaml.

Interfaces

CLI

bim2rdf --help

Function

from bim2rdf import Run
# initialize with a db
from pyoxigraph import Store
db = Store()
r = Run(db)
# execute with desired options
help(Run.run)

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bim2rdf-2025.5.1803.tar.gz (85.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bim2rdf-2025.5.1803-py3-none-any.whl (60.3 kB view details)

Uploaded Python 3

File details

Details for the file bim2rdf-2025.5.1803.tar.gz.

File metadata

  • Download URL: bim2rdf-2025.5.1803.tar.gz
  • Upload date:
  • Size: 85.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for bim2rdf-2025.5.1803.tar.gz
Algorithm Hash digest
SHA256 f8b3583a8b840e402f3623956aff26112f45b0350d7b80e780dd3e5e0cb37373
MD5 2d2de968613771e20f2c0597e86c5b4f
BLAKE2b-256 a50d42bf8e8d9752c188fdf8ae74a9b405e3de6dbe1a4a9d7216a1c36c94d809

See more details on using hashes here.

Provenance

The following attestation bundles were made for bim2rdf-2025.5.1803.tar.gz:

Publisher: python-publish.yml on pnnl/BIM2RDF

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bim2rdf-2025.5.1803-py3-none-any.whl.

File metadata

  • Download URL: bim2rdf-2025.5.1803-py3-none-any.whl
  • Upload date:
  • Size: 60.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for bim2rdf-2025.5.1803-py3-none-any.whl
Algorithm Hash digest
SHA256 e9391418e0aea09c56ffbc513df1c5b75f2b9a45a0f858e1a042457fdaca9371
MD5 098dd75a8b769259d24cbe0bbbaa8125
BLAKE2b-256 206d6326d755d991b550f3aa970e1b581539dfff353a84a4c7f9c85904685b03

See more details on using hashes here.

Provenance

The following attestation bundles were made for bim2rdf-2025.5.1803-py3-none-any.whl:

Publisher: python-publish.yml on pnnl/BIM2RDF

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page