Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82024622
page.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
Mon, Sep 9, 04:28
Size
1 KB
Mime Type
text/x-java
Expires
Wed, Sep 11, 04:28 (2 d)
Engine
blob
Format
Raw Data
Handle
20645368
Attached To
rNIETZSCHEBETAAPP Nietzsche-Beta-App
page.ts
View Options
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
Log In to Comment