Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"libraries/DocumentQueries.sysml": {
"algorithm": "SHA256",
"value": "c8f30ccffcc2c98609498c7cef83bbd5fdf74423230591721650bb4d1737f5b0"
"value": "d55d49583b4932c422535f3321c28a1a60268b02b5f6c451d2ef8d2704531e46"
},
"libraries/IdentityMetadata.sysml": {
"algorithm": "SHA256",
Expand Down Expand Up @@ -69,7 +69,7 @@
"value": "9e00f049209584092dc8bcb398b736c08e6a39b1db667a8a744de3df72a543bf"
}
},
"created": "2026-10-29T15:36:02Z",
"created": "2026-11-03T17:53:51Z",
"index": {
"AnalysisRecords": "libraries/AnalysisRecords.sysml",
"DiagramLayout": "libraries/DiagramLayout.sysml",
Expand Down
7 changes: 6 additions & 1 deletion libraries/DocumentQueries.sysml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,15 @@ library package DocumentQueries {
}

/* Descendants and Ancestors walk ownership from source to maxDepth levels;
* maxDepth = null (the default) walks the whole tree. */
* maxDepth = null (the default) walks the whole tree. Descendants walks the
* owned members of each namespace; relationships = true walks ownership as
* KerML 8.3.2.1 defines it instead — ownedRelationship, then the related
* elements each relationship owns — so the memberships, specializations,
* typings, feature values and the implicit elements they own are reached. */
calc def Descendants {
in source : Element[0..*] ordered;
in maxDepth : Integer[0..1] default null;
in relationships : Boolean[0..1] default false;
return result : Element[0..*] ordered;
}

Expand Down
Loading