|
|
|
|
@ -278,6 +278,14 @@ class Note extends Entity {
|
|
|
|
|
return await this.getAttributes(LABEL, name);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param {string} [name] - label name to filter
|
|
|
|
|
* @returns {Promise<Attribute[]>} all note's labels (attributes with type label), excluding inherited ones
|
|
|
|
|
*/
|
|
|
|
|
async getOwnedLabels(name) {
|
|
|
|
|
return await this.getOwnedAttributes(LABEL, name);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param {string} [name] - label name to filter
|
|
|
|
|
* @returns {Promise<Attribute[]>} all note's label definitions, including inherited ones
|
|
|
|
|
@ -294,6 +302,14 @@ class Note extends Entity {
|
|
|
|
|
return await this.getAttributes(RELATION, name);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param {string} [name] - relation name to filter
|
|
|
|
|
* @returns {Promise<Attribute[]>} all note's relations (attributes with type relation), excluding inherited ones
|
|
|
|
|
*/
|
|
|
|
|
async getOwnedRelations(name) {
|
|
|
|
|
return await this.getOwnedAttributes(RELATION, name);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param {string} [name] - relation name to filter
|
|
|
|
|
* @returns {Promise<Note[]>}
|
|
|
|
|
|