Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82039364
line_reference.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, 06:32
Size
1 KB
Mime Type
text/x-java
Expires
Wed, Sep 11, 06:32 (2 d)
Engine
blob
Format
Raw Data
Handle
20646955
Attached To
rNIETZSCHEBETAAPP Nietzsche-Beta-App
line_reference.ts
View Options
import { BasicResultBindingElement } from './basic_datatype';
import { Identifier, LineStub, Manuscript, Page, Reference} from '../models';
export class TlnLineReference extends BasicResultBindingElement implements Reference {
/**
* the internal default key for replacing {@link /classes/TlnLine.html#query|query} by "id"
* in {@link /classes/TlnLine.html#getQuery|getQuery} if "key" is omitted.
**/
static readonly default_key: string = 'page';
/**
* the SPARQL-query of this datatype.
**/
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 ?page ?page_id ?manuscript ?title ?line_number WHERE {
?id a tln:Line; tln:lineHasNumber ?line_number.
?page_id tln:hasLines/rdf:rest*/rdf:first ?id; tln:hasNumber ?page.
?manuscript tln:hasPages/rdf:rest*/rdf:first ?page_id; tln:hasTitle ?title.
} `;
/**
* the public key for replacing {@link /classes/TlnLine.html#query|query} by "id".
**/
static readonly query_key: string = 'id';
/**
* the manuscript.
**/
manuscript: Manuscript;
/**
* the line.
**/
line: LineStub;
/**
* the page.
**/
page: Page;
/**
* The constructor creates a datatype from the data.
*
* @param id if omitted the id will be retrieved from data
**/
constructor (data: any, id?: string, service?: any) {
super(data, id, service);
this.line = { id: this.id, number: this.getData4Key('line_number') }
this.page = { id: this.getData4Key('page_id'), number: this.getData4Key('page') }
this.manuscript = { id: this.getData4Key('manuscript'), title: this.getData4Key('title') }
}
}
Event Timeline
Log In to Comment