{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/semantic-explorer\/relationen.php"
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/View\/semantic-explorer\/relationen.php",
"content": "<?php ob_start(); ?>\n\n<nav class=\"breadcrumb\">\n <a href=\"\/\">Home<\/a> » <a href=\"\/explorer\">Explorer<\/a> » <a href=\"\/semantic-explorer\">Semantic Explorer<\/a> » Relationen\n<\/nav>\n\n<h1>Relationen<\/h1>\n<p>Beziehungen zwischen Entitaeten.<\/p>\n\n<div class=\"stats-grid\">\n <div class=\"stat-card stat-card--primary\">\n <span class=\"stat-card__value\"><?= $stats['total'] ?? 0 ?><\/span>\n <span class=\"stat-card__label\">Relationen<\/span>\n <\/div>\n <div class=\"stat-card\">\n <span class=\"stat-card__value\"><?= $stats['sources'] ?? 0 ?><\/span>\n <span class=\"stat-card__label\">Quellen<\/span>\n <\/div>\n <div class=\"stat-card\">\n <span class=\"stat-card__value\"><?= $stats['targets'] ?? 0 ?><\/span>\n <span class=\"stat-card__label\">Ziele<\/span>\n <\/div>\n<\/div>\n\n<?php if (!empty($relationTypes)): ?>\n<h2>Relationstypen<\/h2>\n<div class=\"tags\">\n <?php foreach ($relationTypes as $rt): ?>\n <a href=\"?type=<?= urlencode($rt['relation_type']) ?>\" class=\"badge <?= $currentType === $rt['relation_type'] ? 'badge--primary' : '' ?>\">\n <?= htmlspecialchars($rt['relation_type']) ?> (<?= $rt['count'] ?>)\n <\/a>\n <?php endforeach; ?>\n <?php if ($currentType): ?>\n <a href=\"\/semantic-explorer\/relationen\" class=\"btn btn--small\">Alle<\/a>\n <?php endif; ?>\n<\/div>\n<?php endif; ?>\n\n<?php if (!empty($relations)): ?>\n<h2>Relationen<?= $currentType ? ': ' . htmlspecialchars($currentType) : '' ?><\/h2>\n<table data-sortable>\n <thead>\n <tr>\n <th data-sort=\"source_name\">Quelle<\/th>\n <th data-sort=\"relation_type\">Relation<\/th>\n <th data-sort=\"target_name\">Ziel<\/th>\n <th data-sort=\"strength\">Staerke<\/th>\n <\/tr>\n <\/thead>\n <tbody>\n <?php foreach ($relations as $r): ?>\n <tr>\n <td>\n <a href=\"\/semantic-explorer\/entitaeten\/<?= $r['source_entity_id'] ?>\"><?= htmlspecialchars($r['source_name']) ?><\/a>\n <span class=\"badge badge--small\"><?= $r['source_type'] ?><\/span>\n <\/td>\n <td><span class=\"badge\"><?= htmlspecialchars($r['relation_type']) ?><\/span><\/td>\n <td>\n <a href=\"\/semantic-explorer\/entitaeten\/<?= $r['target_entity_id'] ?>\"><?= htmlspecialchars($r['target_name']) ?><\/a>\n <span class=\"badge badge--small\"><?= $r['target_type'] ?><\/span>\n <\/td>\n <td><?= number_format($r['strength'] * 100, 0) ?>%<\/td>\n <\/tr>\n <?php endforeach; ?>\n <\/tbody>\n<\/table>\n<?php else: ?>\n<p>Keine Relationen gefunden. Fuehren Sie die semantische Analyse aus.<\/p>\n<?php endif; ?>\n\n<p class=\"links-bar\">\n <a href=\"\/semantic-explorer\">Zurueck zum Explorer<\/a> |\n <a href=\"\/semantic-explorer\/entitaeten\">Entitaeten<\/a>\n<\/p>\n\n<?php $content = ob_get_clean(); ?>\n<?php require VIEW_PATH . '\/layout.php'; ?>\n",
"numLines": 78,
"startLine": 1,
"totalLines": 78
}
}
}