@pod-os/core / Thing
Defined in: thing/Thing.ts:37
new Thing(
uri,store,editable):Thing
Defined in: thing/Thing.ts:38
string
IndexedFormula
boolean = false
Whether the Thing can be edited according to its access control settings
Thing
readonlyeditable:boolean=false
Defined in: thing/Thing.ts:44
Whether the Thing can be edited according to its access control settings
readonlystore:IndexedFormula
Defined in: thing/Thing.ts:40
readonlyuri:string
Defined in: thing/Thing.ts:39
anyValue(...
predicateUris):undefined
Defined in: thing/Thing.ts:133
Returns any value linked from this thing via one of the given predicates
...string[]
undefined
assume<
T>(SpecificThing):T
Defined in: thing/Thing.ts:250
Call this method to switch to a more specific subclass of Thing.
T
(uri, store, editable) => T
a subclass of Thing to assume
T
attachments():
Attachment[]
Defined in: thing/Thing.ts:231
Returns all attachments linked to this thing
container():
object
Defined in: thing/Thing.ts:264
Returns the container that contains this thing's document The container URI is derived from the thing's URI.
object
uri:
string
description():
undefined
Defined in: thing/Thing.ts:146
Returns a literal value that describes this thing. Tries to match common RDF terms
used for descriptions, like dct:description, schema:description or rdfs:comment
undefined
label():
string
Defined in: thing/Thing.ts:53
Returns a human-readable label for this thing. Tries to match common RDF terms
used for labels, such as rdfs:label, schema:name and others.
If no such term is present, it will derive a label from the URI.
string
literals():
Literal[]
Defined in: thing/Thing.ts:76
Returns all the literal values that are linked to this thing
Literal[]
picture(): {
url:string; } |null
Defined in: thing/Thing.ts:167
Returns the url of a picture or logo associated with this thing
Tries to match common RDF terms used for pictures like schema:image,
vcard:photo or foaf:img
{ url: string; } | null
An object containing the url of the picture
relations(
predicate?):Relation[]
Defined in: thing/Thing.ts:93
Returns all the links from this thing to other resources
string
Relation[]
reverseRelations(
predicate?):Relation[]
Defined in: thing/Thing.ts:113
Returns all the links from other resources to this thing
string
Relation[]
types():
RdfType[]
Defined in: thing/Thing.ts:220
Retrieves a list of RDF types for this thing.
RdfType[]