Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91899520
ontology-retriever.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 15, 14:10
Size
916 B
Mime Type
text/x-java
Expires
Sun, Nov 17, 14:10 (2 d)
Engine
blob
Format
Raw Data
Handle
22343840
Attached To
rNIETZSCHEBETAAPP Nietzsche-Beta-App
ontology-retriever.ts
View Options
import { Component, Input, OnInit } from '@angular/core';
import { OntologyQueryService } from './ontology-query.service';
import { DataMapping, QueryDataMapping, Namespace, Ontology, OntologyBearer } from './models';
import { SparqlParser } from './sparqljs';
export class OntologyRetriever implements OnInit, OntologyBearer {
@Input() ontology: Ontology;
@Input() namespaces: Namespace[];
dataMappings: DataMapping[] = [];
query: string;
constructor(protected queryService: OntologyQueryService) { }
ngOnInit() {
if (this.ontology != undefined && this.ontology != null && this.query != undefined && this.query != null){
let parser = new SparqlParser(this.queryService);
parser.fetchArrayData(this, 'dataMappings', this.query, 'ontology', this.ontology.iri, this.namespaces);
//console.log(SparqlParser.getQuery(this.query, 'ontology', this.ontology.iri));
}
}
}
Event Timeline
Log In to Comment