Skip to content

Commit

Permalink
added readme
Browse files Browse the repository at this point in the history
  • Loading branch information
MadsHolten committed Sep 6, 2018
1 parent ab9a7e5 commit 3ac8668
Show file tree
Hide file tree
Showing 36 changed files with 137 additions and 1 deletion.
13 changes: 13 additions & 0 deletions Web-app/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Editor configuration, see http://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
max_line_length = off
trim_trailing_whitespace = false
File renamed without changes.
File renamed without changes.
File renamed without changes.
28 changes: 28 additions & 0 deletions Web-app/e2e/protractor.conf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// Protractor configuration file, see link for more information
// https://github.com/angular/protractor/blob/master/lib/config.ts

const { SpecReporter } = require('jasmine-spec-reporter');

exports.config = {
allScriptsTimeout: 11000,
specs: [
'./src/**/*.e2e-spec.ts'
],
capabilities: {
'browserName': 'chrome'
},
directConnect: true,
baseUrl: 'http://localhost:4200/',
framework: 'jasmine',
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 30000,
print: function() {}
},
onPrepare() {
require('ts-node').register({
project: require('path').join(__dirname, './tsconfig.e2e.json')
});
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
}
};
14 changes: 14 additions & 0 deletions Web-app/e2e/src/app.e2e-spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { AppPage } from './app.po';

describe('workspace-project App', () => {
let page: AppPage;

beforeEach(() => {
page = new AppPage();
});

it('should display welcome message', () => {
page.navigateTo();
expect(page.getParagraphText()).toEqual('Welcome to bot-browser!');
});
});
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion Web-app/bot-browser/package.json → Web-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"publish": "ng build --prod --base-href \"https://madsholten.github.io/ng-plan/\" && npx ngh --dir=dist/ng-plan-lib"
"publish": "ng build --prod --base-href \"https://madsholten.github.io/BOT-Duplex-house/\" && npx ngh --dir=dist/bot-browser"
},
"private": true,
"dependencies": {
Expand Down
File renamed without changes.
39 changes: 39 additions & 0 deletions Web-app/src/app/app.component.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
.button-row{
position: absolute;
width: 245px;
left: 5px;
top: 5px;
z-index: 100;
}
.button-row > button {
margin-right: 10px;
}
.item {
padding-top: 10px;
width: 100%;
}
.selected {
color:red;
}
.drag-card{
position: absolute;
left: 100px;
top: 100px;
background-color: rgba(220,220,220,.6);
border-radius: 5px;
font-family: roboto;
font-size: 0.7em;
padding: 0px;
z-index: 110;
}
.msg {
position: absolute;
left: 5px;
bottom: 5px;
border-radius: 5px;
background-color: #eeeeee;
font-family: consolas;
font-size: 0.8em;
padding-left: 15px;
padding-right: 15px;
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file added Web-app/src/assets/.gitkeep
Empty file.
File renamed without changes.
9 changes: 9 additions & 0 deletions Web-app/src/browserslist
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# This file is currently used by autoprefixer to adjust CSS to support the below specified browsers
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries
# For IE 9-11 support, please uncomment the last line of the file and adjust as needed
> 0.5%
last 2 versions
Firefox ESR
not dead
# IE 9-11
3 changes: 3 additions & 0 deletions Web-app/src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const environment = {
production: true
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "bot-duplex-house",
"version": "0.0.1",
"scripts": {
"publish": "npx ngh --dir=Web-app/dist/bot-browser"
},
"author": "Mads Holten Rasmussen"
}
22 changes: 22 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## BOT Duplex Apartment

[demo](https://madsholten.github.io/BOT-Duplex-house/)

This repository consists of the following:

1) A compiled version of the [Revit-BOT-exporter](https://github.com/MadsHolten/revit-bot-exporter) with the following settings:
* Units described using [CDT](https://ci.mines-stetienne.fr/lindt/v2/custom_datatypes.html#)
* Properties described with [OPM](https://w3id.org/opm)
* 2D geometry described as [WKT](https://en.wikipedia.org/wiki/Well-known_text) literals
* 3D mesh geometry described as [OBJ](https://en.wikipedia.org/wiki/Wavefront_.obj_file) literals
* Products described with the [PRODUCT](https://github.com/w3c-lbd-cg/product) ontology

2) Model files:
* Revit version of the Common BIM file [Duplex Apartment](https://www.nibs.org/page/bsa_commonbimfiles#project1)
* Converted files from the [Revit-BOT-exporter](https://github.com/MadsHolten/revit-bot-exporter)

3) A web application built on Angular 6 and custom developed libraries [ng-plan](https://www.npmjs.com/package/ng-plan) and [ng-mesh-viewer](https://www.npmjs.com/package/ng-mesh-viewer) for visualizing 2D and 3D geometry. Try the [demo](https://madsholten.github.io/BOT-Duplex-house/).

4) A test tool which loads the LBD file in a triplestore and performs a set of queries on it

The content of the repository is described in detail in an article entitled *The BOT ontology: standards within a decentralised web-based AEC industry* which is currently under review for publication in Automation in Construction.

0 comments on commit 3ac8668

Please sign in to comment.