Backup #13

ID13
Dateipfad/var/www/dev.campus.systemische-tools.de/src/View/semantic-explorer/relationen.php
Version1
Typ modified
Größe2.8 KB
Hash4ab22b2ae2b23a9854d99008eb2ccbf7058903dbb4c6f9e1ce02cfddb3c5fd64
Datum2025-12-20 16:41:50
Geändert vonclaude-code-hook
GrundClaude Code Pre-Hook Backup vor Write-Operation
Datei existiert Ja

Dateiinhalt

<?php ob_start(); ?>

<nav class="breadcrumb">
    <a href="/">Home</a> &raquo; <a href="/explorer">Explorer</a> &raquo; <a href="/semantic-explorer">Semantic Explorer</a> &raquo; Relationen
</nav>

<h1>Relationen</h1>
<p>Beziehungen zwischen Entitaeten.</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">Relationen</span>
    </div>
    <div class="stat-card">
        <span class="stat-card__value"><?= $stats['sources'] ?? 0 ?></span>
        <span class="stat-card__label">Quellen</span>
    </div>
    <div class="stat-card">
        <span class="stat-card__value"><?= $stats['targets'] ?? 0 ?></span>
        <span class="stat-card__label">Ziele</span>
    </div>
</div>

<?php if (!empty($relationTypes)): ?>
<h2>Relationstypen</h2>
<div class="tags">
    <?php foreach ($relationTypes as $rt): ?>
    <a href="?type=<?= urlencode($rt['relation_type']) ?>" class="badge <?= $currentType === $rt['relation_type'] ? 'badge--primary' : '' ?>">
        <?= htmlspecialchars($rt['relation_type']) ?> (<?= $rt['count'] ?>)
    </a>
    <?php endforeach; ?>
    <?php if ($currentType): ?>
    <a href="/semantic-explorer/relationen" class="btn btn--small">Alle</a>
    <?php endif; ?>
</div>
<?php endif; ?>

<?php if (!empty($relations)): ?>
<h2>Relationen<?= $currentType ? ': ' . htmlspecialchars($currentType) : '' ?></h2>
<table data-sortable>
    <thead>
        <tr>
            <th data-sort="source_name">Quelle</th>
            <th data-sort="relation_type">Relation</th>
            <th data-sort="target_name">Ziel</th>
            <th data-sort="strength">Staerke</th>
        </tr>
    </thead>
    <tbody>
        <?php foreach ($relations 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>
                <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 else: ?>
<p>Keine Relationen 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

Herunterladen

Andere Versionen dieser Datei

ID Version Typ Größe Datum
1931 4 modified 3.3 KB 2025-12-28 01:22
1631 3 modified 3.3 KB 2025-12-27 09:45
1621 2 modified 3.3 KB 2025-12-27 09:44
13 1 modified 2.8 KB 2025-12-20 16:41

← Zurück zur Übersicht