Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F88471920
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
Fri, Oct 18, 23:49
Size
1 KB
Mime Type
text/x-java
Expires
Sun, Oct 20, 23:49 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
21776939
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