@pod-os/core / LdpContainer
Class: LdpContainer
Defined in: ldp-container/LdpContainer.ts:10
Extends
Constructors
Constructor
new LdpContainer(
uri,store,editable?):LdpContainer
Defined in: ldp-container/LdpContainer.ts:11
Parameters
uri
string
store
editable?
boolean = false
Returns
LdpContainer
Overrides
Properties
editable
readonlyeditable:boolean=false
Defined in: ldp-container/LdpContainer.ts:14
Whether the Thing can be edited according to its access control settings
Inherited from
store
readonlystore:Store
Defined in: ldp-container/LdpContainer.ts:13
Inherited from
uri
readonlyuri:string
Defined in: ldp-container/LdpContainer.ts:12
Inherited from
Methods
anyValue()
anyValue(...
predicateUris):undefined
Defined in: thing/Thing.ts:183
Returns any value linked from this thing via one of the given predicates
Parameters
predicateUris
...string[]
Returns
undefined
Inherited from
assume()
assume\<
T>(SpecificThing):T
Defined in: thing/Thing.ts:319
Call this method to switch to a more specific subclass of Thing.
Type Parameters
T
T
Parameters
SpecificThing
(uri, store, editable) => T
a subclass of Thing to assume
Returns
T
Inherited from
attachments()
attachments():
Attachment[]
Defined in: thing/Thing.ts:300
Returns all attachments linked to this thing
Returns
Inherited from
container()
container():
object
Defined in: thing/Thing.ts:329
Returns the container that contains this thing's document The container URI is derived from the thing's URI.
Returns
object
uri
uri:
string
Inherited from
contains()
contains():
ContainerContent[]
Defined in: ldp-container/LdpContainer.ts:24
Resources that the LDP Container contains
Returns
Array of objects with uri and name
description()
description():
undefined
Defined in: thing/Thing.ts:196
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
Returns
undefined
Inherited from
label()
label():
string
Defined in: thing/Thing.ts:57
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.
Returns
string
Inherited from
literals()
literals():
Literal[]
Defined in: thing/Thing.ts:80
Returns all the literal values that are linked to this thing
Returns
Literal[]
Inherited from
observeContains()
observeContains():
Observable\<ContainerContent[]>
Defined in: ldp-container/LdpContainer.ts:42
Observe changes to the resources that the LDP Container contains
Returns
Observable\<ContainerContent[]>
RxJS Observable that pushes a new contains() array when it changes
observeRelations()
observeRelations(
predicate?):Observable\<Relation[]>
Defined in: thing/Thing.ts:117
Observe changes in links from this thing to other resources
Parameters
predicate?
string
Returns
Observable\<Relation[]>
Inherited from
observeReverseRelations()
observeReverseRelations(
predicate?):Observable\<Relation[]>
Defined in: thing/Thing.ts:159
Observe changes in links from other resources to this thing
Parameters
predicate?
string
Returns
Observable\<Relation[]>
Inherited from
observeTypes()
observeTypes():
Observable\<RdfType[]>
Defined in: thing/Thing.ts:281
Observe changes to the list of RDF types for this thing
Returns
Observable\<RdfType[]>
Inherited from
picture()
picture(): {
url:string; } |null
Defined in: thing/Thing.ts:217
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
Returns
{ url: string; } | null
An object containing the url of the picture
Inherited from
relations()
relations(
predicate?):Relation[]
Defined in: thing/Thing.ts:97
Returns all the unique links from this thing to other resources. This only includes named nodes and excludes rdf:type relations.
Parameters
predicate?
string
Returns
Relation[]
Inherited from
reverseRelations()
reverseRelations(
predicate?):Relation[]
Defined in: thing/Thing.ts:140
Returns all the unique links from other resources to this thing
Parameters
predicate?
string
Returns
Relation[]
Inherited from
types()
types():
RdfType[]
Defined in: thing/Thing.ts:270
Retrieves a list of RDF types for this thing.
Returns
RdfType[]