1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- --[[
- Brick content type: a building block for structures.
- Resources of this type may be used to build logical structures implemented
- as linked lists.
- The `pas:first` property points to the first child in a",
- linked list nested inside the current resource. There may be any number of
- linked list heads under the same Part, or none.
- The `pas:next` property points to the next sibling in a linked list. The",
- last item in a list is identified by the lack of this property.
- In a more complex hierarchy, any given Part may have both "first" and
- "next" properties.
- --]]
- return {
- uri = "pas:Brick",
- label = "Structural brick",
- broader = "anything",
- properties = {
- first = {
- uri = "pas:first",
- label = "First child",
- type = "resource",
- system = true,
- },
- next = {
- uri = "pas:next",
- label = "Next sibling",
- type = "resource",
- max_cardinality = 1,
- system = true,
- },
- ref = {
- uri = "pas:ref",
- label = "Reference",
- description = "The actual resource the brick refers to.",
- type = "resource",
- max_cardinality = 1,
- system = true,
- },
- has_member = {
- uri = "pas:hasMember",
- label = "Member",
- type = "resource",
- system = true,
- },
- }
- }
|