Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Rdf ontology graph #163

Open
wants to merge 70 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
4edcb76
create and rdf ontology graph component and display it in app component.
himadri-kumari Jun 22, 2019
88c8af5
read new data from RDF ontology json file and creation of nodes and l…
himadri-kumari Jun 22, 2019
aada811
read new data from RDF ontology json file and creation of nodes and l…
himadri-kumari Jun 22, 2019
9301d63
checking logs..ignore commit
himadri-kumari Jun 22, 2019
09441fa
test commit
RahulSherikar Jun 24, 2019
adc98d8
test commit
RahulSherikar Jun 24, 2019
f1f7523
1. creation of nodes and links for all properties.
RahulSherikar Jun 25, 2019
1b8ff64
docker thing
RahulSherikar Jun 25, 2019
6b07423
implemented graph bounded and Zoom functionality.
himadri-kumari Jun 25, 2019
296b39f
1. implement reset graph functionality and include it into filter tab.
RahulSherikar Jun 25, 2019
d755083
implement the node information section structure in right side card.
himadri-kumari Jun 25, 2019
3480643
1. implement the customization graph section structure in right side …
RahulSherikar Jun 25, 2019
2d863da
docker thing
RahulSherikar Jun 25, 2019
58fdd41
- removed the edge label and replace the literal node label with edge…
himadri-kumari Jun 25, 2019
bb76c6a
1.implementing the customization graph section structure of right sid…
RahulSherikar Jun 25, 2019
b3ff6df
margin end changes
RahulSherikar Jun 25, 2019
63adfc2
disbling zoom on double click
himadri-kumari Jun 26, 2019
0049cde
On double click functionality
himadri-kumari Jun 27, 2019
db5e48b
On double click functionality pending things
RahulSherikar Jun 27, 2019
f1a255d
Onclick functionality
RahulSherikar Jun 28, 2019
8a02d2f
swapped onclick and on double clicked
himadri-kumari Jun 28, 2019
d598101
remove the question marks.
himadri-kumari Jul 1, 2019
f4e5792
fixing issues
himadri-kumari Jul 1, 2019
679085e
Keeping the ontology explorer as a separate item on sidebar.
nandeeshpatelgp Jul 2, 2019
3ae2627
fixing graph display issues after tab implementation.
RahulSherikar Jul 2, 2019
5cc167c
ready for code review
RahulSherikar Jul 2, 2019
3b3ed47
fix the Codacy/PR Quality Review issues
RahulSherikar Jul 2, 2019
15650d8
try resolving merge conflict
RahulSherikar Jul 3, 2019
73c6dbb
try resolving merge conflict ..
RahulSherikar Jul 3, 2019
465abf5
Update app.module.ts
RahulSherikar Jul 3, 2019
764359f
try resolving merge conflict
RahulSherikar Jul 3, 2019
2b92da2
try resolving merge conflict
RahulSherikar Jul 3, 2019
04bdeef
try resolving merge conflict ..
RahulSherikar Jul 4, 2019
98bd508
Merge branch 'master' of https://github.com/dice-group/ida into RDF_O…
RahulSherikar Jul 4, 2019
9666b56
resolve Codacy/PR Quality Review issues
RahulSherikar Jul 4, 2019
fca1056
resolve Codacy/PR Quality Review issues
RahulSherikar Jul 4, 2019
58439cc
resolve Codacy/PR Quality Review issues
RahulSherikar Jul 4, 2019
c980bfa
resolve Codacy/PR Quality Review issues
RahulSherikar Jul 4, 2019
c7725b4
changing svg id value in component html and starting use of Angular m…
RahulSherikar Oct 22, 2019
6bdc036
implemented functionality of collapsing nodes and links that are expa…
RahulSherikar Nov 1, 2019
1f5019f
1. change color of node on expanding/collapsing it.
RahulSherikar Nov 1, 2019
f84a7a3
1.Angular material changes in rdf-ontology components.
RahulSherikar Nov 2, 2019
97893fe
1.Continued angular material changes in rdf-ontology components.
RahulSherikar Nov 2, 2019
a9a7abd
Resource and literals labels fetching and display changes
RahulSherikar Dec 5, 2019
7b82a9b
1.Continued angular material changes in rdf-ontology components.
RahulSherikar Jan 3, 2020
7d89a2e
1.Continued angular material changes in rdf-ontology components.
RahulSherikar Jan 3, 2020
16953c5
test ignore
RahulSherikar Jan 3, 2020
38d76d9
resolving push conflicts.
RahulSherikar Jan 3, 2020
bc86d17
1.Continued angular material changes in rdf-ontology components.
RahulSherikar Jan 3, 2020
6caf5e5
rive script changes
RahulSherikar Jan 12, 2020
29d8fb5
rive script changes.
RahulSherikar Jan 12, 2020
2657e74
rive script changes.
RahulSherikar Jan 12, 2020
aec07bc
removing Ontology.ttl file
RahulSherikar Jan 14, 2020
9786656
new changes + resolving review comments
RahulSherikar Jan 14, 2020
a4b3c45
Merge branch 'RDF_Ontology_Graph' of github.com:dice-group/ida into R…
RahulSherikar Jan 14, 2020
f9a0c3a
resolving "Codacy/PR Quality Review" issues
RahulSherikar Jan 14, 2020
da69a6d
resolving "Codacy/PR Quality Review" issues
RahulSherikar Jan 14, 2020
38d155e
resolving "Codacy/PR Quality Review" issues
RahulSherikar Jan 14, 2020
4b112be
resolving "Codacy/PR Quality Review" issues
RahulSherikar Jan 14, 2020
003e204
resolving "Codacy/PR Quality Review" issues
RahulSherikar Jan 14, 2020
c808440
resolving "Codacy/PR Quality Review" issues
RahulSherikar Jan 14, 2020
3c2afa9
Merge branch 'RDF_Ontology_Graph' of github.com:dice-group/ida into R…
RahulSherikar Jan 14, 2020
7ffa1c3
Pulling latest from master.
RahulSherikar Jan 19, 2020
8593af6
Fetching ontology data from fuseki.
RahulSherikar Jan 19, 2020
a62c9ae
resolving "Codacy/PR Quality Review" issues.
RahulSherikar Jan 19, 2020
f1b7a38
resolving "Codacy/PR Quality Review" issues.
RahulSherikar Jan 19, 2020
a7ca0fb
resolving "Codacy/PR Quality Review" issues.
RahulSherikar Jan 19, 2020
45d11dd
resolving "Codacy/PR Quality Review" issues.
RahulSherikar Jan 19, 2020
2111245
resolving "Codacy/PR Quality Review" issues.
RahulSherikar Jan 19, 2020
6dc2c54
resolving "Codacy/PR Quality Review" issues.
RahulSherikar Jan 19, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion ida-chatbot/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
[activeItem]="getActiveItem()"></app-sidebar>
<!-- </div>-->
<div fxFlex="100%" id="mainView">


<app-intro [ngClass]="{'hidden-cls': activeItem!==0 }"></app-intro>
<!--<app-rdf-ontology-view [hidden]='activeItem !== 1'></app-rdf-ontology-view> -->
<ng-container *ngFor="let mvw of getMainviewItems()" >
<app-data-view-container [item]="mvw" [ngClass]="{'hidden-cls': activeItem!==mvw.id }"></app-data-view-container>
<app-data-view-container [item]="mvw" [ngClass]="{'hidden-cls': activeItem!==mvw.id }"></app-data-view-container>
</ng-container>
</div>
<app-chatbox id="chatBox" fxFlexAlign="end" fxFlex="auto" (actnEmitter)="addNewUserMessage($event)"></app-chatbox>
Expand Down
5 changes: 5 additions & 0 deletions ida-chatbot/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ export class AppComponent {
idCount = 1;
title = 'app';
public introSideItem = new SidebarElement(0, 'Introduction', 'intro');
//public ontologySideItem = new SidebarElement(1, 'Ontology Explorer', 'ontology');
public activeItem = 0;
//private sidebarItems: SidebarElement[] = [this.introSideItem, this.ontologySideItem];
private sidebarItems: SidebarElement[] = [this.introSideItem];
private mainViewItems: MainviewElement[] = [];

Expand Down Expand Up @@ -78,6 +80,9 @@ export class AppComponent {
// Open new tab with DataTable
const newTab = new TabElement(this.uis.getUniqueId(), resp.payload.actvTbl, TabType.SSB, resp.payload.ssbDiagramData, true, true);
this.addNewTab(newTab, resp);
}else if (resp.actnCode === 11) {
const newTab = new TabElement(this.uis.getUniqueId(), "Ontology Explorer", TabType.OE, resp.payload, true, true);
this.addNewTab(newTab, resp);
}
}

Expand Down
2 changes: 2 additions & 0 deletions ida-chatbot/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ import {RestService} from './service/rest/rest.service';
import {DatatableDetailComponent} from './components/datatable-detail/datatable-detail.component';
import { SsbViewComponent } from './components/ssb-view/ssb-view.component';
import { VennViewComponent } from './components/venn-view/venn-view.component';
import { RdfOntologyViewComponent } from './components/rdf-ontology-view/rdf-ontology-view.component'
import { DeckglHexViewComponent } from './components/deckgl-hex-view/deckgl-hex-view.component';
import { SpeechInputComponent } from './components/speech-input/speech-input.component';
import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
Expand All @@ -73,6 +74,7 @@ import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
DataViewContainerComponent,
DatatableViewComponent,
FdgViewComponent,
RdfOntologyViewComponent,
BargraphViewComponent,
IntroComponent,
ClickStopPropagationDirective,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
.rightSideContainer{
width: 30%;
}
.mat-toolbar.mat-primary {
background: #f7f7f8;
color: #0b0b0b;
}
.labelClass {
padding-left: 20px;
text-indent: -15px;
padding-top: 7px;
font-size: 19px;
padding-right: 5px;
}
.checkboxClass {
width: 20px;
height: 20px;
padding-top: 10px;
margin:0;
vertical-align: bottom;
position: relative;
top: -8px;
*overflow: hidden;
}

.inputTextClass {
border-radius: 8px;
width: 33%;
padding-left: 3px;
}

.nodeInfoDivClass {
float: left;
}

.nodeInfoDiv {
position: relative;
bottom: 34px;
left: 80px;
font-size: 18px;
width:275px;
}

:host ::ng-deep mat-toolbar-row.primary{
background: #673ab7;
color: #FFF;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
<mat-toolbar>
<mat-toolbar-row class="primary">
<div style="width: 100%; height: 60%;">
<h1 align='center'>{{title}} Ontology Graph</h1>
</div>
</mat-toolbar-row>

<mat-toolbar-row class="filtersRowID">
<div id="filtersId" style="width: 99%;height: 40px;border-radius: 8px;background-color: #b7cad7;">
<mat-label class="labelClass">
Filters:
</mat-label>

<mat-label class="labelClass">Display in Deutsch</mat-label>
<input class="checkboxClass" type="checkbox" [(ngModel)]="languageCheked"
(change)="checkboxValuesChanged(isChecked)" />

<mat-label class="labelClass">Include Class Hierarchy</mat-label>
<input class="checkboxClass" type="checkbox" [(ngModel)]="classHeirarchyChecked" value="1"
(change)="checkboxValuesChanged(isChecked)" />

<mat-label class="labelClass">Include All Properties</mat-label>
<input class="checkboxClass" type="checkbox" [(ngModel)]="allPropChecked"
(change)="checkboxValuesChanged(isChecked)" />


<mat-label class="labelClass">Bounded Graph</mat-label>
<input class="checkboxClass" type="checkbox" [(ngModel)]="allNodesInBoundClicked"
(change)="checkboxValuesChanged(isChecked)" />

<mat-label class="labelClass">Disable Zoom</mat-label>
<input class="checkboxClass" type="checkbox" [(ngModel)]="disableZoomClicked"
(change)="checkboxValuesChanged(isChecked)" />

<mat-label class="labelClass">
<button mat-raised-button #graphReset (click)="graphResetChanged($event)"
style="border-radius: 8px;padding-top: 3px;">
Reset Graph
</button>
</mat-label>
</div>
</mat-toolbar-row>
</mat-toolbar>

<!--START :: main container grid -->
<mat-drawer-container class="ontologyMainContainer" autosize>
<mat-drawer #drawer class="rightSideContainer" mode="side" position="end">
<mat-card>

<div id="nodeInformationId" style="border-radius: 8px;padding-top: 9px;">
<mat-card-title>Node Information</mat-card-title>
</div>


<div id="nodeInfoTagesId" style=" text-align: justify;overflow: auto;display: block;border-radius: 8px;">

<div class="nodeInfoDivClass">
<mat-card-subtitle>Node:</mat-card-subtitle>
<div class="nodeInfoDiv" [attr.id]="nodeId"> </div>
</div>

<div class="nodeInfoDivClass">
<mat-card-subtitle>Label:</mat-card-subtitle>
<div class="nodeInfoDiv" [attr.id]="nodeLabelId"></div>
</div>

<div class="nodeInfoDivClass">
<mat-card-subtitle>ID:</mat-card-subtitle>
<div class="nodeInfoDiv" [attr.id]="nodeIdsId"></div>
</div>

<div class="nodeInfoDivClass">
<mat-card-subtitle>Type:</mat-card-subtitle>
<div class="nodeInfoDiv" [attr.id]="nodeTypeId"> </div>
</div>

<div class="nodeInfoDivClass">
<mat-card-subtitle>Description:</mat-card-subtitle>
<div class="nodeInfoDiv" [attr.id]="nodeDescripId"> </div>
</div>

<div class="nodeInfoDivClass">
<mat-card-subtitle>SubClassOf:</mat-card-subtitle>
<div class="nodeInfoDiv" style="width: 309px;" [attr.id]="nodeSubClassId"> </div>
</div>

<div class="nodeInfoDivClass">
<mat-card-subtitle>Domain:</mat-card-subtitle>
<div class="nodeInfoDiv" [attr.id]="nodeDomainId"> </div>
</div>

<div class="nodeInfoDivClass">
<mat-card-subtitle>Range:</mat-card-subtitle>
<div class="nodeInfoDiv" [attr.id]="nodeRangeId"> </div>
</div>

<div class="nodeInfoDivClass">
<mat-card-subtitle>Comment:</mat-card-subtitle>
<div class="nodeInfoDiv" [attr.id]="nodeCommentId"> </div>
</div>

</div>
</mat-card>

<mat-card>
<div id="graphConfigId" style="border-radius: 8px;padding-top: 9px;">

<mat-card-title>Customize Graph</mat-card-title>
</div>

<div id="graphConfigInputsId" style="border-radius: 8px; padding-top: 10px;">

<mat-card-subtitle>Edge Size:
<input type="text" class="inputTextClass" [(ngModel)]="edgeSize" placeholder=" 50">
</mat-card-subtitle>

<mat-card-subtitle> Graph Charge/Depth :
<input type="text" class="inputTextClass" [(ngModel)]="graphCharge" placeholder=" 1000">
</mat-card-subtitle>

<mat-card-subtitle> Resource Node Radius:
<input type="text" class="inputTextClass" [(ngModel)]="resourceRadius" placeholder=" 10">
</mat-card-subtitle>

<mat-card-subtitle> Literal Node Radius:
<input type="text" class="inputTextClass" [(ngModel)]="literalRadius" placeholder=" 6">
</mat-card-subtitle>

<mat-card-subtitle>Resource Node Color:
<input type="text" class="inputTextClass" [(ngModel)]="resourceNodeColor" placeholder=" #311B92">
</mat-card-subtitle>

<mat-card-subtitle>Resource Node Text Color:
<input type="text" class="inputTextClass" [(ngModel)]="resourceNodeTextColor" placeholder=" #311B92">
</mat-card-subtitle>

<mat-card-subtitle>Literal Node Color:
<input type="text" class="inputTextClass" [(ngModel)]="literalNodeColor" placeholder=" #FF9800">
</mat-card-subtitle>

<mat-card-subtitle>Literal node text color:
<input type="text" class="inputTextClass" [(ngModel)]="literalNodeTextColor" placeholder=" #FF9800">
</mat-card-subtitle>

<mat-card-subtitle> Sub Class Label:
<input type="text" class="inputTextClass" [(ngModel)]="subClassLabel" placeholder=" --subClassOf--">
</mat-card-subtitle>

<mat-card-subtitle>Sub Class Label Color:
<input type="text" class="inputTextClass" [(ngModel)]="subClassLabelColor" placeholder=" #3498DB">
</mat-card-subtitle>

<mat-card-subtitle> Property Text Color:
<input type="text" class="inputTextClass" [(ngModel)]="propertyTextColor"placeholder=" #28B463">
</mat-card-subtitle>

<mat-card-actions>
<button mat-raised-button #applyConfigBtn (click)="applyConfigClicked($event)">
Apply Changes
</button>
</mat-card-actions>

</div>
</mat-card>
</mat-drawer>

<div class="leftSideContainer">
<div align="end">
<mat-button-toggle mat-icon-button (click)="drawer.toggle()"> <mat-icon>code</mat-icon> </mat-button-toggle>
</div>
<div [attr.id]="ontologyId" style="background-color: #F8F9F9;border-radius: 8px;"></div>
</div>

</mat-drawer-container>
<!--END :: main container grid -->
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { RdfOntologyViewComponent } from './rdf-ontology-view.component';

describe('RdfOntologyViewComponent', () => {
let component: RdfOntologyViewComponent;
let fixture: ComponentFixture<RdfOntologyViewComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ RdfOntologyViewComponent ]
})
.compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(RdfOntologyViewComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
Loading