Backup #1525
| ID | 1525 |
| Dateipfad | /var/www/dev.campus.systemische-tools.de/src/View/semantic-explorer/semantik.php |
| Version | 3 |
| Typ |
modified |
| Größe | 4.4 KB |
| Hash | b4c3ca0dafc2c7ae6242d532cb07e5eaa365fc9bfc0c2aa7843926c81294c55e |
| Datum | 2025-12-26 06:52:28 |
| 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="/">Home</a> » <a href="/explorer">Explorer</a> » <a href="/semantic-explorer">Semantic Explorer</a> » Semantik
</nav>
<h1>Semantik</h1>
<p>Begriffe und ihre Bedeutungen aus den verarbeiteten Dokumenten.</p>
<div class="stats-grid">
<div class="stat-card stat-card--primary">
<span class="stat-card__value"><?= $stats['total'] ?? 0 ?></span>
<span class="stat-card__label">Begriffe</span>
</div>
<div class="stat-card stat-card--success">
<span class="stat-card__value"><?= $stats['types'] ?? 0 ?></span>
<span class="stat-card__label">Typen</span>
</div>
<div class="stat-card stat-card--info">
<span class="stat-card__value"><?= $stats['linked_chunks'] ?? 0 ?></span>
<span class="stat-card__label">Chunks</span>
</div>
<div class="stat-card">
<span class="stat-card__value"><?= $stats['linked_docs'] ?? 0 ?></span>
<span class="stat-card__label">Dokumente</span>
</div>
</div>
<div class="filters">
<input type="search" id="semantics-search" class="form-input" placeholder="Begriff suchen..." value="<?= htmlspecialchars($currentSearch ?? '') ?>">
<select id="filter-type" class="form-select--inline">
<option value="">Alle Typen</option>
<?php foreach ($entityTypes ?? [] as $t): ?>
<option value="<?= htmlspecialchars($t['type']) ?>" <?= ($currentType ?? '') === $t['type'] ? 'selected' : '' ?>>
<?= htmlspecialchars($t['type']) ?> (<?= $t['count'] ?>)
</option>
<?php endforeach; ?>
</select>
</div>
<?php if (!empty($semantics)): ?>
<table id="semantics-table" data-sortable>
<thead>
<tr>
<th data-sort="name">Begriff</th>
<th data-sort="description">Bedeutung</th>
<th data-sort="type">Sprache</th>
<th data-sort="chunk_id">Chunk</th>
<th data-sort="filename">Dokument</th>
</tr>
</thead>
<tbody>
<?php foreach ($semantics as $s): ?>
<tr>
<td>
<a href="/semantic-explorer/entitaeten/<?= $s['id'] ?>">
<strong><?= htmlspecialchars($s['name']) ?></strong>
</a>
<br><span class="badge badge--small"><?= htmlspecialchars($s['type']) ?></span>
</td>
<td><?= htmlspecialchars($s['description'] ?? '-') ?></td>
<td>de</td>
<td>
<?php if ($s['chunk_id']): ?>
<a href="/semantic-explorer/chunks/<?= $s['chunk_id'] ?>">#<?= $s['chunk_id'] ?></a>
<?php else: ?>
<span class="text-muted">-</span>
<?php endif; ?>
</td>
<td>
<?php if ($s['document_id']): ?>
<a href="/semantic-explorer/dokumente/<?= $s['document_id'] ?>"><?= htmlspecialchars($s['filename']) ?></a>
<?php else: ?>
<span class="text-muted">-</span>
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php if (($totalPages ?? 1) > 1): ?>
<div class="pagination">
<?php for ($i = 1; $i <= $totalPages; $i++): ?>
<a href="?page=<?= $i ?>&search=<?= urlencode($currentSearch ?? '') ?>&type=<?= urlencode($currentType ?? '') ?>"
class="<?= $i === ($currentPage ?? 1) ? 'active' : '' ?>"><?= $i ?></a>
<?php endfor; ?>
</div>
<?php endif; ?>
<?php else: ?>
<p class="empty-state">Keine Begriffe gefunden. Verarbeiten Sie Dokumente mit der Pipeline.</p>
<?php endif; ?>
<p class="links-bar">
<a href="/semantic-explorer">Zurueck zum Explorer</a> |
<a href="/semantic-explorer/entitaeten">Entitaeten</a>
</p>
<script type="module">
import { init } from '/js/components/data-table.js';
const dataTable = init({
clock: { now_epoch_ms_utc: () => Date.now() },
logger: console,
ui: {
showMessage: (msg) => { console.log(msg.type + ': ' + msg.text); },
disableFeature: (key) => { console.warn('Feature disabled: ' + key); },
offerRetry: () => Promise.resolve(false)
},
runId: crypto.randomUUID()
});
dataTable.create('semantics-table', {
searchInput: 'semantics-search',
pageSize: 20,
filters: {
'filter-type': 2
}
});
</script>
<?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 |
| 1632 |
6 |
modified |
3.9 KB |
2025-12-27 09:45 |
| 1624 |
5 |
modified |
3.9 KB |
2025-12-27 09:44 |
| 1532 |
4 |
modified |
5.2 KB |
2025-12-26 07:18 |
| 1525 |
3 |
modified |
4.4 KB |
2025-12-26 06:52 |
| 677 |
2 |
modified |
4.0 KB |
2025-12-23 07:01 |
| 16 |
1 |
modified |
4.3 KB |
2025-12-20 16:43 |
← Zurück zur Übersicht