buildingSMART / buildingSMART/IFC5-development

Class definition in the IFC schema

Open
#73 1 comment 1 reaction 2 assignees Claimed by @tomvandig View on GitHub
schema
Dominant language
HTML
Stars
220
Forks
80
Avg merge
4d 6h
Merged PRs (30d)
2

Description

In the current examples, we (re)define the class object for every classification, and it always has a code and a URI. The core schema (ifcx?) could have a class definition already in there. The advantage of that approach would be easier UI support, because every class would have the same attributes.

CURRENTLY:
```
"schemas": {
"EXAMPLE::class": {
"value": {
"dataType": "Object",
"objectRestrictions": {
"values": {
"code": {
"dataType": "String"
},
"uri": {
"dataType": "String"
}
}
}
}
}
}
```
PROPOSED:
```
"schemas": {
"ifcx::class": {
"value": {
"dataType": "Object",
"objectRestrictions": {
"values": {
"system": {
"dataType": "String"
},
"code": {
"dataType": "String"
},
"uri": {
"dataType": "String"
}
}
}
}
}
},
"data": {
"ifcx::class:"{
"system": "EXAMPLE",
"code": "ABC-001",
"uri": "https://identifier....."
}
}
```

Related to the schema wishlist #51 - perhaps this could be also resolved with the 'extends':

```
model EXAMPLE::class extends ifcx::class { }
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.