Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F75789934
type.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
Sun, Aug 4, 07:13
Size
963 B
Mime Type
text/x-java
Expires
Tue, Aug 6, 07:13 (2 d)
Engine
blob
Format
Raw Data
Handle
19609296
Attached To
rNIETZSCHEBETAAPP Nietzsche-Beta-App
type.ts
View Options
import { BasicResultBindingElement } from './basic_datatype';
/**
* This is the datatype instantiation of an element of {@link /interfaces/FusekiResults.html|FusekiResults}.
**/
export class TlnType extends BasicResultBindingElement {
static readonly default_key: string = 'id';
static readonly query_key: string = 'id';
/**
* the SPARQL-query of this datatype.
**/
static readonly query: string = `
PREFIX tln: <http://www.nie.org/ontology/nietzsche#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT distinct ?type WHERE {
?id a ?type.
?type rdfs:isDefinedBy <http://www.nie.org/ontology/nietzsche>.
}`;
type: 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.type = this.getData4Key('type')
}
}
Event Timeline
Log In to Comment