Expand description
openbim-dt — ISO 23387 data templates.
§What this is
The concept vocabulary that describes properties themselves: property definitions, groups of properties, quantity kinds, dimensions, units, object types, and the reference machinery binding them to external dictionaries such as bSDD.
§Why it is a crate and not part of openbim-loin
LOIN does not own ISO 23387. The ISO 7817-3 schema imports the ISO 23387 namespace and uses its types. Data-template tooling and dictionary clients also need the vocabulary without acquiring a LOIN dependency.
The dependency direction is therefore openbim-loin to openbim-dt, never
the reverse.
§Status
The crate implements validated lexical contracts, a bounded namespace-aware parser, semantic XML round trips with unknown-content retention, owned type contracts and typed global/local DT element views, diagnostics, and a CLI.
It does not claim XML Schema or clause-level ISO conformance, byte-identical output, ISO 23386 governance workflows, or ISO 12006-3 mapping. Parsing and validation are deliberately separate operations.
The ISO XSD is not vendored here. Redistribution rights do not follow from possessing a standards document or annex, so restricted references remain local and outside Git, crate packages, and documentation artifacts.
Structs§
- AnyUri
- XML Schema 1.0
anyURIafter whitespace collapsing. - Attribute
- One XML attribute with both lexical and resolved namespace identity.
- Concept
- Owned core of ISO 23387
ConceptTypefor reuse by dependent standards. - Concept
Ref - Shared borrowed view for every
ConceptType-derived element. - Data
Template - ISO 23387
DataTemplateType. - Data
Template Ref - Borrowed data-template view.
- Data
Type - ISO 23387
DataTypeType. - Data
Type Ref - Borrowed data-type constraint view.
- Data
Value - One ordered simple value in ISO 23387
ValueListType. - Date
Time - XML Schema
dateTimevalue after whitespace collapsing and lexical validation. - Decimal
- XML Schema decimal preserving its whitespace-collapsed validated lexeme.
- Diagnostic
- One semantic validation finding.
- Dimension
- Seven SI base-dimension exponents in Annex E declaration order.
- Document
- A well-formed XML document with one root element.
- Element
- An XML element retaining names, namespace resolution, attributes, and order.
- Group
OfProperties - ISO 23387
GroupOfPropertiesType; the constructor enforces its non-empty property-reference sequence. - Guid
- An ISO 23387 GUID, preserving its validated source spelling.
- Language
- XML Schema
languageused by DT and importing standards. - Library
- Borrowed ISO 23387 library view.
- Model
Error - Typed-element conversion failure.
- Multi
Language Text - ISO 23387 multilingual text.
- Multilingual
Text Ref - Borrowed multilingual text typed by ISO 23387.
- Object
Type - ISO 23387
ObjectTypeType. - Parse
Error - XML parse failure with a stable category and byte position.
- Parse
Options - Resource limits applied before or during XML parsing.
- Positive
Integer - XML Schema
positiveInteger, preserved after whitespace collapse. - Property
- ISO 23387
PropertyType. - Property
Ref - Borrowed property view.
- Quantity
Kind - ISO 23387
QuantityKindType. - Rational
- ISO 23387 rational value preserving the validated source lexeme.
- Reference
- An ISO 23387 reference by GUID, URI, or both.
- Reference
Document - ISO 23387
ReferenceDocumentType. - Reference
Ref - Borrowed reference typed by ISO 23387.
- Subject
- Owned
SubjectTypecore shared by object types, groups, and data templates. - Unit
- ISO 23387
UnitType, with all required scalar/reference fields present. - Value
Error - A value rejected by an ISO 23387 lexical contract.
- Value
List - One language-specific ISO 23387
ValueListType. - XmlDeclaration
- XML declaration values retained by the document model.
Enums§
- Base
- Unit logarithm base with forward-compatible retention.
- Data
Type Constraint - One constraint carried by
DataTypeType. - Data
Type Name - ISO 23387 property data-type names with forward-compatible retention.
- Diagnostic
Code - Stable validation categories.
- Element
Kind - Recognized ISO 23387 element kinds, including local
Librarychildren. - Library
Item - One child retained by a library, including forward-compatible extensions.
- Node
- XML node kinds retained by the document model.
- Parse
Error Kind - Stable category for a parse failure.
- Scale
- Unit scale with forward-compatible retention.
- Severity
- Validation severity; parsing itself remains non-normalizing and permissive.
- Value
Error Kind - Lexical contracts checked by
ValueError. - Write
Error - XML serialization failure.
Constants§
- DRAFT_
PLACEHOLDER_ NAMESPACE - A placeholder namespace found in pre-release ISO 23387 schema drafts.
- NAMESPACE
- The XML namespace declared by ISO 23387 edition 2.