Globals › LocalTripleDocumentWithRef
An initialised Document that has not been stored to the Pod yet, but whose desired location is already known.
This will be obtained when you call createDocument. Compared to a fully initialised TripleDocument, some methods relating to manipulating existing values on the Pod are not available yet. They will be available on the TripleDocument returned when you call save.
• addSubject: function
Inherited from void
Add a Subject — note that it is not written to the Pod until you call save.
returns A TripleSubject instance that can be used to define its properties.
options?: NewSubjectOptions): TripleSubject
|NewSubjectOptions||By default, Tripledoc will automatically generate an identifier with which this Subject can be identified within the Document, and which is likely to be unique. The |
• asRef: function
returns The IRI of this Document.
▸ (): Reference
• save: function
Inherited from LocalTripleDocumentForContainer.save
Persist Subjects in this Document to the Pod.
returns The updated Document with persisted Subjects.
subjects?: TripleSubject): Promise‹TripleDocument›
|TripleSubject||Optional array of specific Subjects within this Document that should be written to the Pod, i.e. excluding Subjects not in this array.|