sparnatural
Version:
Visual client-side SPARQL query builder and knowledge graph exploration tool
26 lines • 564 B
JavaScript
export class DataService {
constructor(obj) {
this.id = obj.id;
this.endpointURL = obj.endpointURL;
this.title = obj.title;
this.extent = obj.extent;
}
getEndpointURL() {
return this.endpointURL;
}
getTitle(lang) {
if (this.title[lang]) {
return this.title[lang];
}
else {
return "no title in " + lang;
}
}
getId() {
return this.id;
}
getExtent() {
return this.extent;
}
}
//# sourceMappingURL=DataService.js.map