Skip to content

wojciechteclaw/LBD-Converter-Online

Repository files navigation

WEB-LBD-CONVERTER

Authors:

Run the application

Local

Using NPM in dev mode

Download latest version of Node.js: https://nodejs.org/en/download/

Install all dependencies: npm install

Run locally: npm start

The application will run on http://localhost:3333

One can change the default port in webpack.dev.js

Using NPM in production mode

Download latest version of Node.js: https://nodejs.org/en/download/ Install all dependencies: npm install

Build the application: npm run build

Run application using some server:

  • Install server npm i http-server

  • Run server npm http-server ./

Using docker

Run the docker container: docker-compose up

The application runs at http://localhost:3000

One can configure the port editing the file or using direct run from Dockerfile: docker build -t lbd-vis . docker run -p 1234:80 lbd-vis

Usage

1. Welcome view

MainInterface

The initial view of the application loads a sample graph.

2. Models loading

MainInterface

Clicking Upload ifc file button opens new window allowing for import one or more IFC files.

3. Uploaded files

After uploading, files are ready to set MainInterface

4. Model parsing settings

After loading user might custom following options:

  • BOT => True/False Parse to BOT

  • FSO =>True/False Parse to FSO

  • PRODUCTS =>True/False Parse to PRODUCTS

  • PROPERTIES =>True/False Parse to PROPERTIES

  • Normalize SI units => True/False Normalize values to SI units according to documentation of IFC-LBD

  • Verbose => True/False verbose mode

  • Namespace => string a custom namespace URI for each model MainInterface

Clicking on blur closes the window without saving the changes.

5. Model remove

Allows for removing an imported file MainInterface

6. Load the data to the database memory

After appling all settings click Load and merge to start using the data. Before every reload the database is prune, that is why you can freely change the settings. However, the button triggers following actions

  • Parse all models to LBD format
  • Connects models spaces and levels using owl:sameAs predicate
  • Adds all triples to TripleStore

MainInterface

7. Querying the database

In the following panel you can query the database. It doesn't allow user to sent two exactly the same query one by one. That is why one has to change anything or add an empty row in the end of the input.

Try sample queries:

  • CONSTRUCT {?s ?p ?o} WHERE { ?s ?p ?o . FILTER(?p = <https://w3id.org/bot#containsElement>) }

  • CONSTRUCT {?s ?p ?o} WHERE { ?s ?p ?o . FILTER(?o = <https://w3id.org/bot#Space>) }

Always use !!!CONSTRUCT!!!

MainInterface

8. Nodes highlighting

Tapping at a node highlights it and all connected elements. Holding shift while clicking turns on modifier allowing for selection of multiple nodes

MainInterface

9. Loading new nodes

Double click triggers an action loading from db all neighbour elements of clicked node.

MainInterface

10. Hiding unconnected nodes

Right click on a node triggers an action removing nodes and edges being only connected with clicked node

MainInterface

11. Download PNG

Clicking at image icon download current view of the graph

MainInterface

12. DbDump

Click at download icon triggers an action of downloading all parsed information in form of ttl file.

MainInterface

13. Upload youdataset

To be continued

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published