feat: implement KM-RAG methodology artifacts and core architectural standards with supporting query and service updates
This commit is contained in:
@@ -28,15 +28,10 @@ internal sealed class GetKnowledgeGraphQueryHandler : IQueryHandler<GetKnowledge
|
||||
if (graph is null)
|
||||
return Result.Ok(new GraphDataDto());
|
||||
|
||||
var nodes = graph.Nodes
|
||||
.Select(n => new GraphNodeDto(n.Id, n.Label, n.Group))
|
||||
.ToList();
|
||||
|
||||
var links = graph.Links
|
||||
.Select(l => new GraphLinkDto(l.Source, l.Target, l.Value))
|
||||
.ToList();
|
||||
|
||||
return Result.Ok(new GraphDataDto { Nodes = nodes, Links = links });
|
||||
if (graph is null)
|
||||
return Result.Ok(new GraphDataDto());
|
||||
|
||||
return Result.Ok(graph);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user