An initialised Document that has not been stored in a Pod yet, and has no known location.
You will obtain a LocalTripleDocumentForContainer when calling createDocumentInContainer. It differs from a regular TripleDocument in that methods like TripleDocument.asRef are not available, because the Reference for this Document is not known yet. When you save this Document to the Pod, you will get a fully initialised TripleDocument as a return value.
• 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 |
• save: function
Persist Subjects in this Document to the Pod.
returns The updated Document with persisted Subjects.
|TripleSubject||Optional array of specific Subjects within this Document that should be written to the Pod, i.e. excluding Subjects not in this array.|