bauzertifikate.de

Dokumentation / Schema-Referenz

common.json

Gemeinsame Typen: IDs, Hashes, Zeiten, Punkte, Quellen, Aufbauten, Adressen, Geld.

BZF 0.3.0Stabil/schema/bzf/1/common.jsonStand: .md
  • Status: Stabil
  • Ablage: kein eigenes Dokument; die anderen Schemas verweisen auf seine Typen
  • $id: https://bauzertifikate.de/schema/bzf/1/common.json
  • Schema laden: /schema/bzf/1/common.json (JSON Schema 2020-12)

#Beschreibung

What the documents of a bzf project share: ids, hashes, times, dates, versions, points, open values, sources, constructions, products, identifiers, addresses, carriers, services, money and document classes. Lengths in plan are integer millimetres in the project's frame, heights are millimetres relative to its ±0,00, layer thicknesses are metres. Every object keeps the fields a reader doesn't know (additionalProperties: true), and every closed set of values is open: one of the known values, or any other string or object a newer writer wrote, which a reader keeps and writes back unchanged.

#Typen

Die gemeinsamen Typen, auf die die anderen Schemas mit common.json#/$defs/<name> verweisen.

#id

An item's identity for life: a UUID (version 7 when we make it) in its standard text form, given by whoever creates the item, never reused and never derived from position, name or order. References go by id only. Ids an item has in a source (a LoD2 gml:id, an IFC GlobalId, a DWG handle) go into its source instead.

Typ: string · (Muster ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)

#hash

The SHA-256 of a file's or an object's bytes, 64 lower-case hex digits: its identity in the store.

Typ: string · (Muster ^[0-9a-f]{64}$)

#time

A time in RFC 3339, local time with its offset: "2026-11-06T10:12:00+01:00".

Typ: string (date-time)

#schemaVersion

A document's schema version, major.minor. A minor version only adds; a reader opens a document of a newer major version read-only, never refuses it and never rewrites it.

Typ: string · (Muster ^[0-9]+\.[0-9]+$)

#label

What people read beside an id, which may be renumbered: "EG", "Wohnen", "Nr. 12". Left out when empty.

Typ: string

#mm

A length or a level, integer millimetres.

Typ: integer

#point

A point in plan, mm: x and y in the project's frame (or, inside a plate, in the plate's plane).

Typ: Tupel (integer, integer) · (mindestens 2 Einträge)

#point3

A point in space, mm: x, y and height above ±0,00.

Typ: Tupel (integer, integer, integer) · (mindestens 3 Einträge)

#ring

A closed outline, mm, without repeating its first point. Outlines run counter-clockwise seen from above, holes clockwise.

Typ: Liste von point · (mindestens 3 Einträge)

#newerValue

A value of a closed set that this version of the schema doesn't list: written by a newer writer, kept as it came and written back unchanged. Readers treat it as unknown, never as an error. A value national to one country is written <country>:<value>, the country as ISO 3166-1 alpha-2 in lower case (de:isfp, de:AN); a value the EPBD or an EU or international standard defines stays bare (nzeb, scop). The listed values follow the same rule.

Typ: string oder object

#phase

Whether an item stands and stays (existing), stands and goes (demolished), or is to be built (new). Left out for new.

Typ: string, offen

Bekannte Werte: existing, demolished, new; ein neuerer Wert ist gültig.

#sourceKind

The kind of source: drawn in an app, an architect's plans (DWG, DXF), a LoD2 scene, an IFC model, a carpenter's cadwork model.

Typ: string, offen

Bekannte Werte: drawn, plan, lod2, ifc, cadwork; ein neuerer Wert ist gültig.

#source

Where an item came from: the kind of source, its plan state, file, layer and entity, the ids it has there, the texts that came with it, a note.

Feld Typ Beschreibung
kind sourceKind The kind of source.
planState id The plan state it came with.
file hash The received file's hash.
layer string The CAD layer.
handle string The entity's handle in the file.
ids Liste von string Its ids in the source: a gml:id, an IFC GlobalId.
texts Liste von string The plan's texts that came with it: a room's "Kochen", "10,5m²".
note string A note.

#material

A material by value, with the catalogue and row it came from, so a catalogue update never changes an old project. The spec publishes no catalogue: a project holds the values its user entered.

Feld Typ Beschreibung
name string Its name.
lambda number Thermal conductivity, W/(m·K). (> 0)
density number Density, kg/m³. (≥ 0)
heatCapacity number Specific heat capacity, J/(kg·K): with the density, the thermal capacity the method takes from the layers (EPBD Annex I 4(a)(i)). (> 0)
catalogue string The catalogue it came from, by name and edition: "DIN 4108-4:2020-11".
row string The catalogue's row.
product product The product an item is.

#layer

A layer of a construction: a material and its thickness.

Feld Typ Beschreibung
material Pflicht material A material by value, with the catalogue and row it came from, so a catalogue update never changes an old project.
thickness Pflicht number Metres (a 0,2 mm vapour barrier has one). (≥ 0)

#construction

A build-up that walls, slabs and roofs refer to by id: its layers, outside to inside.

Feld Typ Beschreibung
id Pflicht id An item's identity for life.
name string Its name.
layers Liste von layer Outside to inside.
source source Where an item came from.

#date

A calendar date, ISO 8601: "2026-11-06".

Typ: string (date)

#year

A year: when an item was built, installed or last renewed (Baujahr), or when a step is planned.

Typ: integer · (≥ 1000, ≤ 2999)

#identifier

An id a building, a register entry or a document has in someone else's system, beside our own id: the scheme that issued it and its value. Schemes national to a country carry its code (see newerValue). Known schemes: de:alkis (the German cadastre's building id, which LoD2's gml:id carries), de:land-register (Grundbuch), de:dibt (the DIBt registration number of an energy performance certificate), de:bafa (BAFA's Vorgangsnummer of an iSFP); a national building register's id, once one exists, as <country>:building-id. Documents written before 2026-11-08 may name alkis and land-register bare, which readers take as de:alkis and de:land-register. Any other scheme is kept.

Feld Typ Beschreibung
scheme Pflicht eins von oder string –
value Pflicht string –
note string –

#address

A postal address. A building's address is personal data where the building is a home (README, "Privacy").

Feld Typ Beschreibung
street string –
number string The house number with its suffix: "12a".
postcode string –
city string –
country string ISO 3166-1 alpha-2: "DE". (Muster ^[A-Z]{2}$)
label string The address as one line, where it isn't split.

#product

The product an item is: its maker and name, and where its data lie. An environmental product declaration (EPD, EN 15804) gives what a life-cycle GWP takes (EPBD Annex III); a digital product passport (Regulation (EU) 2024/1781) once products have one.

Feld Typ Beschreibung
maker string –
name string The product's name and model.
gtin string Its GTIN, where it has one.
epd string Where its EPD is: a URL or a received file's hash.
dpp string Its digital product passport: a URL.
datasheet hash Its data sheet, a received file.

#carrier

An energy carrier a system takes in or a meter measures.

Typ: string, offen

Bekannte Werte: naturalGas, biomethane, lpg, heatingOil, bioOil, hydrogen, districtHeating, districtCooling, electricity, woodPellets, logWood, woodChips, hardCoal, lignite; ein neuerer Wert ist gültig.

#service

An energy service, as the EPBD's Annex V lists energy use by them (and DIN/TS 18599 balances them): space heating, hot water, cooling, ventilation, built-in lighting.

Typ: string, offen

Bekannte Werte: heating, hotWater, cooling, ventilation, lighting; ein neuerer Wert ist gültig.

#money

An amount of money, with its currency (ISO 4217) and whether it includes VAT.

Feld Typ Beschreibung
amount Pflicht number –
currency string (Muster ^[A-Z]{3}$) Standard: "EUR"
gross boolean Whether it includes VAT. Standard: true

#figures

Figures a method worked out for a building, one entry per state: the building as it is, after each step of a roadmap, the target. They are the method's, under its standard conditions. An issue states them as issued (versand.json) and a result as calculated (result.json); in neither are they part of the model or inputs to another calculation.

Typ: Liste von object

#documentClass

Where a document may go (README, "Privacy"): building documents (the physical model, sources, plans, results) are shared with the owner's consent; party documents (people, contacts, consents) and commercial ones (prices, costs, funding amounts, fees) never leave the organisation that holds them.

Typ: string, offen

Bekannte Werte: building, party, commercial; ein neuerer Wert ist gültig.

#conflict

A value two writers changed differently, as the store's merge keeps it in place of the value: the value before both changes (absent where there was none) and the values the writers gave it, at least two, in canonical order. Any value of a document in the store may be one; the document's schema applies once each conflict is settled. Keys starting with "$" are the store's in every document.

Feld Typ Beschreibung
$conflict Pflicht object –
$conflict.base beliebig –
$conflict.values Pflicht Liste (mindestens 2 Einträge)

#Lesen und prüfen

Die Beschreibungen stammen unverändert aus dem Schema und sind wie die Spezifikation englisch. Jedes Objekt lässt weitere Felder zu (additionalProperties: true): Programme bewahren Felder und Werte, die sie nicht kennen. Wie ein Dokument geprüft wird, steht im Schnellstart.

Grundlage: BZF 0.3.0 von Bauzertifikate contributors. Spezifikation und Dokumentation: CC BY 4.0, Schemas und Beispiele: CC0 1.0. Maßgeblich ist der englische Text der Spezifikation.