brick.lua 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Brick content type: a building block for structures.
  3. Resources of this type may be used to build logical structures implemented
  4. as linked lists.
  5. The `pas:first` property points to the first child in a",
  6. linked list nested inside the current resource. There may be any number of
  7. linked list heads under the same Part, or none.
  8. The `pas:next` property points to the next sibling in a linked list. The",
  9. last item in a list is identified by the lack of this property.
  10. In a more complex hierarchy, any given Part may have both "first" and
  11. "next" properties.
  12. --]]
  13. return {
  14. uri = "pas:Brick",
  15. label = "Structural brick",
  16. broader = "anything",
  17. properties = {
  18. first = {
  19. uri = "pas:first",
  20. label = "First child",
  21. type = "resource",
  22. system = true,
  23. },
  24. next = {
  25. uri = "pas:next",
  26. label = "Next sibling",
  27. type = "resource",
  28. max_cardinality = 1,
  29. system = true,
  30. },
  31. ref = {
  32. uri = "pas:ref",
  33. label = "Reference",
  34. description = "The actual resource the brick refers to.",
  35. type = "resource",
  36. max_cardinality = 1,
  37. system = true,
  38. },
  39. has_member = {
  40. uri = "pas:hasMember",
  41. label = "Member",
  42. type = "resource",
  43. system = true,
  44. },
  45. }
  46. }