Backup #16
| ID | 16 |
| Dateipfad | /var/www/dev.campus.systemische-tools.de/src/View/semantic-explorer/semantik.php |
| Version | 1 |
| Typ |
modified |
| Größe | 4.3 KB |
| Hash | aabb0230103e9e606d5bfc4ee3ab161350996d1ee0689efad6ffdb1d787c7c51 |
| Datum | 2025-12-20 16:43:33 |
| Geändert von | claude-code-hook |
| Grund | Claude Code Pre-Hook Backup vor Write-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>Semantische Analyse pro Chunk: Zusammenfassungen, Keywords, Sentiment.</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">Analysiert</span>
</div>
<div class="stat-card stat-card--success">
<span class="stat-card__value"><?= $stats['positive'] ?? 0 ?></span>
<span class="stat-card__label">Positiv</span>
</div>
<div class="stat-card">
<span class="stat-card__value"><?= $stats['neutral'] ?? 0 ?></span>
<span class="stat-card__label">Neutral</span>
</div>
<div class="stat-card stat-card--warning">
<span class="stat-card__value"><?= $stats['negative'] ?? 0 ?></span>
<span class="stat-card__label">Negativ</span>
</div>
<div class="stat-card stat-card--info">
<span class="stat-card__value"><?= $stats['mixed'] ?? 0 ?></span>
<span class="stat-card__label">Gemischt</span>
</div>
</div>
<form method="get" class="filter-form">
<select name="sentiment">
<option value="">Alle Sentiments</option>
<option value="positive" <?= $currentSentiment === 'positive' ? 'selected' : '' ?>>Positiv</option>
<option value="neutral" <?= $currentSentiment === 'neutral' ? 'selected' : '' ?>>Neutral</option>
<option value="negative" <?= $currentSentiment === 'negative' ? 'selected' : '' ?>>Negativ</option>
<option value="mixed" <?= $currentSentiment === 'mixed' ? 'selected' : '' ?>>Gemischt</option>
</select>
<button type="submit" class="btn btn--primary">Filtern</button>
<?php if ($currentSentiment): ?>
<a href="/semantic-explorer/semantik" class="btn">Reset</a>
<?php endif; ?>
</form>
<?php if (!empty($semantics)): ?>
<p><?= number_format($totalCount) ?> Chunk(s) analysiert. Seite <?= $currentPage ?> von <?= $totalPages ?>.</p>
<table data-sortable>
<thead>
<tr>
<th data-sort="chunk_id">Chunk</th>
<th data-sort="filename">Dokument</th>
<th data-sort="sentiment">Sentiment</th>
<th data-sort="language">Sprache</th>
<th>Keywords</th>
<th>Zusammenfassung</th>
</tr>
</thead>
<tbody>
<?php foreach ($semantics as $s): ?>
<tr>
<td><a href="/semantic-explorer/chunks/<?= $s['chunk_id'] ?>">#<?= $s['chunk_id'] ?></a></td>
<td><a href="/semantic-explorer/dokumente/<?= $s['document_id'] ?>"><?= htmlspecialchars($s['filename']) ?></a></td>
<td>
<span class="badge badge--<?= $s['sentiment'] === 'positive' ? 'success' : ($s['sentiment'] === 'negative' ? 'warning' : 'info') ?>">
<?= $s['sentiment'] ?>
</span>
</td>
<td><?= htmlspecialchars($s['language'] ?? 'de') ?></td>
<td>
<?php foreach (array_slice($s['keywords_decoded'], 0, 3) as $kw): ?>
<span class="badge badge--small"><?= htmlspecialchars($kw) ?></span>
<?php endforeach; ?>
</td>
<td><?= htmlspecialchars(substr($s['summary'] ?? '', 0, 100)) ?>...</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php if ($totalPages > 1): ?>
<div class="pagination">
<?php if ($currentPage > 1): ?>
<a href="?page=<?= $currentPage - 1 ?>&sentiment=<?= urlencode($currentSentiment) ?>" class="btn btn--small">« Zurueck</a>
<?php endif; ?>
<span>Seite <?= $currentPage ?> von <?= $totalPages ?></span>
<?php if ($currentPage < $totalPages): ?>
<a href="?page=<?= $currentPage + 1 ?>&sentiment=<?= urlencode($currentSentiment) ?>" class="btn btn--small">Weiter »</a>
<?php endif; ?>
</div>
<?php endif; ?>
<?php else: ?>
<p>Keine semantischen Analysen gefunden. Fuehren Sie die semantische Analyse aus.</p>
<?php endif; ?>
<p class="links-bar">
<a href="/semantic-explorer">Zurueck zum Explorer</a> |
<a href="/semantic-explorer/entitaeten">Entitaeten</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 |
| 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