secorolab / FloorPlan-DSL

A DSL for modeling the indoor floor plans of buildings
https://secorolab.github.io/FloorPlan-DSL/
MIT License
2 stars 1 forks source link

Add 3d representation in JSON-LD models #19

Closed argenos closed 1 month ago

argenos commented 2 months ago

A small example below illustrates the current version:

{
    "@context": [
    {
      "floorplan": "https://secorolab.github.io/floorplans/"
    },
    "https://secorolab.github.io/metamodels/geometry/polytope.json"
    ],
    "@graph": [
        {
          "@id": "floorplan:stairway_room_center-wall-0-polyhedron",
          "@type": "Polyhedron",
          "points": [
            "floorplan:stairway_room_center-wall-0-corner-0",
            "floorplan:stairway_room_center-wall-0-corner-1",
            "floorplan:stairway_room_center-wall-0-corner-2",
            "floorplan:stairway_room_center-wall-0-corner-3",
            "floorplan:stairway_room_center-wall-0-corner-4",
            "floorplan:stairway_room_center-wall-0-corner-5",
            "floorplan:stairway_room_center-wall-0-corner-6",
            "floorplan:stairway_room_center-wall-0-corner-7"
          ],
          "faces": [
            [
            "floorplan:stairway_room_center-wall-0-corner-0",
            "floorplan:stairway_room_center-wall-0-corner-1",
            "floorplan:stairway_room_center-wall-0-corner-2",
            "floorplan:stairway_room_center-wall-0-corner-3"
            ],
            [
            "floorplan:stairway_room_center-wall-0-corner-4",
            "floorplan:stairway_room_center-wall-0-corner-5",
            "floorplan:stairway_room_center-wall-0-corner-6",
            "floorplan:stairway_room_center-wall-0-corner-7"
            ],
            [
            "floorplan:stairway_room_center-wall-0-corner-0",
            "floorplan:stairway_room_center-wall-0-corner-1",
            "floorplan:stairway_room_center-wall-0-corner-5",
            "floorplan:stairway_room_center-wall-0-corner-4"
            ],
            [
            "floorplan:stairway_room_center-wall-0-corner-1",
            "floorplan:stairway_room_center-wall-0-corner-2",
            "floorplan:stairway_room_center-wall-0-corner-6",
            "floorplan:stairway_room_center-wall-0-corner-5"
            ],
            [
            "floorplan:stairway_room_center-wall-0-corner-2",
            "floorplan:stairway_room_center-wall-0-corner-3",
            "floorplan:stairway_room_center-wall-0-corner-7",
            "floorplan:stairway_room_center-wall-0-corner-6"
            ],
            [
            "floorplan:stairway_room_center-wall-0-corner-3",
            "floorplan:stairway_room_center-wall-0-corner-0",
            "floorplan:stairway_room_center-wall-0-corner-4",
            "floorplan:stairway_room_center-wall-0-corner-7"
            ]
          ]
        }
    ]
}

The JSON-LD metamodels need to be updated to add the new missing concepts.

This is one of the steps required for #11