Page MenuHomec4science

page.ts
No OneTemporary

File Metadata

Created
Mon, Sep 9, 04:28
import { BasicResultBindingElement } from './basic_datatype';
import { Page} from '../models';
export class PageStub extends BasicResultBindingElement implements Page {
static readonly query: string = `
PREFIX tln: <http://www.nie.org/ontology/nietzsche#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT ?id ?number WHERE {
?manuscript a tln:ArchivalManuscriptUnity;
tln:hasPages/rdf:rest*/rdf:first ?id.
?id tln:hasNumber ?number.
FILTER EXISTS { ?id tln:hasImage ?image }
}`;
static readonly query_key: string = 'manuscript';
number: string;
constructor (data: any, id?: string, service?: any) {
super(data, id, service);
this.number = this.getData4Key('number');
}
}
export class TlnPage extends PageStub {
static readonly query: string = `
PREFIX tln: <http://www.nie.org/ontology/nietzsche#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT ?id ?title ?number ?manuscript WHERE {
?manuscript a tln:ArchivalManuscriptUnity;
tln:hasTitle ?title;
tln:hasPages/rdf:rest*/rdf:first ?id.
?id a tln:Page; tln:hasNumber ?number.
}`;
static readonly query_key: string = 'id';
title: string;
manuscript: string;
constructor (data: any, id?: string, service?: any) {
super(data, id, service);
this.title = this.getData4Key('title');
this.manuscript = this.getData4Key('manuscript');
if (this.service != null) {
this.service.setCurrentIri(this.id, this.manuscript);
//this.service.setTitle(this.title + ", " + this.number);
}
}
}

Event Timeline