Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82005120
earlier_version.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, 01:59
Size
1 KB
Mime Type
text/x-java
Expires
Wed, Sep 11, 01:59 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20643364
Attached To
rNIETZSCHEBETAAPP Nietzsche-Beta-App
earlier_version.ts
View Options
import { BasicResultBindingElement } from './basic_datatype';
/**
* This is the 'earlier version' stub instantiation of an element of {@link /interfaces/FusekiResults.html|FusekiResults}.
* It extends {@link /classes/BasicResultBindingElement.html|BasicResultBindingElement}.
**/
export class TlnEarlierVersionStub extends BasicResultBindingElement {
/**
* the internal default key for replacing {@link /classes/TlnWord.html#query|query} by "id"
* in {@link /classes/TlnWord.html#getQuery|getQuery} if "key" is omitted.
**/
static readonly default_key: string = 'word';
/**
* the public key for replacing {@link /classes/TlnWord.html#query|query} by "id".
**/
static readonly query_key: string = 'word';
/**
* 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 ?text WHERE {
?word tln:wordHasEarlierVersion ?id.
?id tln:hasText ?text.
}`;
/**
* text of earlier version
**/
text: string;
/**
* 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.text = this.getData4Key('text');
}
}
export class TlnOverwrittenStub extends TlnEarlierVersionStub {
/**
* 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 ?text WHERE {
?word (tln:wordHasWordParts/rdf:rest*/rdf:first/tln:overwritesWord|tln:overwritesWord) ?id.
?id tln:hasText ?text.
}`;
}
Event Timeline
Log In to Comment