Skip to content

Commit

Permalink
Merge pull request #125 from RDFLib/feature/fix-broader-concepts
Browse files Browse the repository at this point in the history
Moved setting concept broaders into its own loop to ensure ordering
  • Loading branch information
jamiefeiss authored Dec 1, 2023
2 parents 4b629ee + d8557e9 commit 69e3ee4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/views/PropTableView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -407,13 +407,17 @@ async function getAllConcepts() {
}, {});
let conceptsList: Concept[] = [];
// set broader first
conceptArray.forEach(c => {
if (c.narrower!.length > 0) {
c.narrower!.forEach(n => {
conceptArray[indexMap[n]].broader = c.iri;
});
}
});
conceptArray.forEach(c => {
if (topConcepts.includes(c.iri)) {
conceptsList.push(c);
return;
Expand Down

0 comments on commit 69e3ee4

Please sign in to comment.