{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/semantic-explorer\/entitaeten\/show.php"
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/semantic-explorer\/entitaeten\/show.php",
"content": "<?php ob_start(); ?>\n\n<nav class=\"breadcrumb\">\n <a href=\"\/\">Campus KI<\/a> » <a href=\"\/semantic-explorer\">Semantic Explorer<\/a> » <a href=\"\/semantic-explorer\/entitaeten\">Entitäten<\/a> » <?= htmlspecialchars($entity['name']) ?>\n<\/nav>\n\n<h1><?= htmlspecialchars($entity['name']) ?><\/h1>\n<p><span class=\"badge badge--primary\"><?= htmlspecialchars($entity['type']) ?><\/span><\/p>\n\n<div class=\"stats-grid\">\n <div class=\"stat-card\">\n <span class=\"stat-card__value\"><?= count($chunks) ?><\/span>\n <span class=\"stat-card__label\">Chunks<\/span>\n <\/div>\n <div class=\"stat-card\">\n <span class=\"stat-card__value\"><?= count($outgoingRelations) ?><\/span>\n <span class=\"stat-card__label\">Ausgehend<\/span>\n <\/div>\n <div class=\"stat-card\">\n <span class=\"stat-card__value\"><?= count($incomingRelations) ?><\/span>\n <span class=\"stat-card__label\">Eingehend<\/span>\n <\/div>\n<\/div>\n\n<?php if ($entity['description']): ?>\n<h2>Beschreibung<\/h2>\n<p><?= htmlspecialchars($entity['description']) ?><\/p>\n<?php endif; ?>\n\n<?php if (!empty($synonyms)): ?>\n<h2>Synonyme<\/h2>\n<div class=\"tags\">\n <?php foreach ($synonyms as $s): ?>\n <span class=\"badge\"><?= htmlspecialchars($s['synonym']) ?><\/span>\n <?php endforeach; ?>\n<\/div>\n<?php endif; ?>\n\n<?php if (!empty($classifications)): ?>\n<h2>Ontologie-Klassen<\/h2>\n<table>\n <tr><th>Klasse<\/th><th>Konfidenz<\/th><\/tr>\n <?php foreach ($classifications as $c): ?>\n <tr>\n <td><?= htmlspecialchars($c['name']) ?><\/td>\n <td><?= number_format($c['confidence'] * \\Domain\\Constants::PERCENT_FULL, 0) ?>%<\/td>\n <\/tr>\n <?php endforeach; ?>\n<\/table>\n<?php endif; ?>\n\n<?php if (!empty($outgoingRelations)): ?>\n<h2>Ausgehende Relationen<\/h2>\n<table>\n <thead>\n <tr>\n <th>Relation<\/th>\n <th>Ziel<\/th>\n <th>Staerke<\/th>\n <\/tr>\n <\/thead>\n <tbody>\n <?php foreach ($outgoingRelations as $r): ?>\n <tr>\n <td><span class=\"badge\"><?= htmlspecialchars($r['relation_type']) ?><\/span><\/td>\n <td><a href=\"\/semantic-explorer\/entitaeten\/<?= $r['target_entity_id'] ?>\"><?= htmlspecialchars($r['target_name']) ?><\/a> <span class=\"badge badge--small\"><?= $r['target_type'] ?><\/span><\/td>\n <td><?= number_format($r['strength'] * \\Domain\\Constants::PERCENT_FULL, 0) ?>%<\/td>\n <\/tr>\n <?php endforeach; ?>\n <\/tbody>\n<\/table>\n<?php endif; ?>\n\n<?php if (!empty($incomingRelations)): ?>\n<h2>Eingehende Relationen<\/h2>\n<table>\n <thead>\n <tr>\n <th>Quelle<\/th>\n <th>Relation<\/th>\n <th>Staerke<\/th>\n <\/tr>\n <\/thead>\n <tbody>\n <?php foreach ($incomingRelations as $r): ?>\n <tr>\n <td><a href=\"\/semantic-explorer\/entitaeten\/<?= $r['source_entity_id'] ?>\"><?= htmlspecialchars($r['source_name']) ?><\/a> <span class=\"badge badge--small\"><?= $r['source_type'] ?><\/span><\/td>\n <td><span class=\"badge\"><?= htmlspecialchars($r['relation_type']) ?><\/span><\/td>\n <td><?= number_format($r['strength'] * \\Domain\\Constants::PERCENT_FULL, 0) ?>%<\/td>\n <\/tr>\n <?php endforeach; ?>\n <\/tbody>\n<\/table>\n<?php endif; ?>\n\n<?php if (!empty($chunks)): ?>\n<h2>Vorkommnisse in Chunks<\/h2>\n<table>\n <thead>\n <tr>\n <th>Chunk<\/th>\n <th>Dokument<\/th>\n <th>Relevanz<\/th>\n <th>Inhalt<\/th>\n <\/tr>\n <\/thead>\n <tbody>\n <?php foreach ($chunks as $c): ?>\n <tr>\n <td><a href=\"\/semantic-explorer\/chunks\/<?= $c['id'] ?>\">#<?= $c['id'] ?><\/a><\/td>\n <td><?= htmlspecialchars($c['filename']) ?><\/td>\n <td><?= number_format($c['relevance_score'] * \\Domain\\Constants::PERCENT_FULL, 0) ?>%<\/td>\n <td><?= htmlspecialchars(substr($c['content'], 0, 100)) ?>...<\/td>\n <\/tr>\n <?php endforeach; ?>\n <\/tbody>\n<\/table>\n<?php endif; ?>\n\n<p class=\"links-bar\">\n <a href=\"\/semantic-explorer\/entitaeten\">Alle Entitäten<\/a> |\n <a href=\"\/semantic-explorer\/relationen\">Relationen<\/a>\n<\/p>\n\n<?php $content = ob_get_clean(); ?>\n<?php require VIEW_PATH . '\/layout.php'; ?>\n",
"numLines": 127,
"startLine": 1,
"totalLines": 127
}
}
}