Backup #1927
| ID | 1927 |
| Dateipfad | /var/www/dev.campus.systemische-tools.de/src/View/semantic-explorer/entitaeten/show.php |
| Version | 4 |
| Typ |
modified |
| Größe | 4.0 KB |
| Hash | b076125e97d32f6c288a1f95bb01a5bf074e0a757a56796f23ccdcf27a28d16b |
| Datum | 2025-12-28 01:21:24 |
| Geändert von | claude-code-hook |
| Grund | Claude Code Pre-Hook Backup vor Edit-Operation |
| Datei existiert |
Ja
|
Dateiinhalt
<?php ob_start(); ?>
<nav class="breadcrumb">
<a href="/">Campus KI</a> » <a href="/semantic-explorer">Semantic Explorer</a> » <a href="/semantic-explorer/entitaeten">Entitäten</a> » <?= htmlspecialchars($entity['name']) ?>
</nav>
<h1><?= htmlspecialchars($entity['name']) ?></h1>
<p><span class="badge badge--primary"><?= htmlspecialchars($entity['type']) ?></span></p>
<div class="stats-grid">
<div class="stat-card">
<span class="stat-card__value"><?= count($chunks) ?></span>
<span class="stat-card__label">Chunks</span>
</div>
<div class="stat-card">
<span class="stat-card__value"><?= count($outgoingRelations) ?></span>
<span class="stat-card__label">Ausgehend</span>
</div>
<div class="stat-card">
<span class="stat-card__value"><?= count($incomingRelations) ?></span>
<span class="stat-card__label">Eingehend</span>
</div>
</div>
<?php if ($entity['description']): ?>
<h2>Beschreibung</h2>
<p><?= htmlspecialchars($entity['description']) ?></p>
<?php endif; ?>
<?php if (!empty($synonyms)): ?>
<h2>Synonyme</h2>
<div class="tags">
<?php foreach ($synonyms as $s): ?>
<span class="badge"><?= htmlspecialchars($s['synonym']) ?></span>
<?php endforeach; ?>
</div>
<?php endif; ?>
<?php if (!empty($classifications)): ?>
<h2>Ontologie-Klassen</h2>
<table>
<tr><th>Klasse</th><th>Konfidenz</th></tr>
<?php foreach ($classifications as $c): ?>
<tr>
<td><?= htmlspecialchars($c['name']) ?></td>
<td><?= number_format($c['confidence'] * \Domain\Constants::PERCENT_FULL, 0) ?>%</td>
</tr>
<?php endforeach; ?>
</table>
<?php endif; ?>
<?php if (!empty($outgoingRelations)): ?>
<h2>Ausgehende Relationen</h2>
<table>
<thead>
<tr>
<th>Relation</th>
<th>Ziel</th>
<th>Staerke</th>
</tr>
</thead>
<tbody>
<?php foreach ($outgoingRelations as $r): ?>
<tr>
<td><span class="badge"><?= htmlspecialchars($r['relation_type']) ?></span></td>
<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>
<td><?= number_format($r['strength'] * 100, 0) ?>%</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>
<?php if (!empty($incomingRelations)): ?>
<h2>Eingehende Relationen</h2>
<table>
<thead>
<tr>
<th>Quelle</th>
<th>Relation</th>
<th>Staerke</th>
</tr>
</thead>
<tbody>
<?php foreach ($incomingRelations as $r): ?>
<tr>
<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>
<td><span class="badge"><?= htmlspecialchars($r['relation_type']) ?></span></td>
<td><?= number_format($r['strength'] * 100, 0) ?>%</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>
<?php if (!empty($chunks)): ?>
<h2>Vorkommnisse in Chunks</h2>
<table>
<thead>
<tr>
<th>Chunk</th>
<th>Dokument</th>
<th>Relevanz</th>
<th>Inhalt</th>
</tr>
</thead>
<tbody>
<?php foreach ($chunks as $c): ?>
<tr>
<td><a href="/semantic-explorer/chunks/<?= $c['id'] ?>">#<?= $c['id'] ?></a></td>
<td><?= htmlspecialchars($c['filename']) ?></td>
<td><?= number_format($c['relevance_score'] * 100, 0) ?>%</td>
<td><?= htmlspecialchars(substr($c['content'], 0, 100)) ?>...</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php endif; ?>
<p class="links-bar">
<a href="/semantic-explorer/entitaeten">Alle Entitäten</a> |
<a href="/semantic-explorer/relationen">Relationen</a>
</p>
<?php $content = ob_get_clean(); ?>
<?php require VIEW_PATH . '/layout.php'; ?>
Vollständig herunterladen
Aktionen
Andere Versionen dieser Datei
| ID |
Version |
Typ |
Größe |
Datum |
| 1987 |
7 |
modified |
4.1 KB |
2025-12-28 03:00 |
| 1929 |
6 |
modified |
4.1 KB |
2025-12-28 01:21 |
| 1928 |
5 |
modified |
4.0 KB |
2025-12-28 01:21 |
| 1927 |
4 |
modified |
4.0 KB |
2025-12-28 01:21 |
| 1926 |
3 |
modified |
4.0 KB |
2025-12-28 01:21 |
| 1616 |
2 |
modified |
4.0 KB |
2025-12-27 09:43 |
| 1615 |
1 |
modified |
4.0 KB |
2025-12-27 09:43 |
← Zurück zur Übersicht