Backup #1529

ID1529
Dateipfad/var/www/dev.campus.systemische-tools.de/src/View/semantic-explorer/ontologie.php
Version2
Typ modified
Größe3.0 KB
Hash5c0c946d982fa4bf84d2c9e0b740fb91355ab6c2b69c4b77f077ba9bef5d4b72
Datum2025-12-26 07:02:28
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; Ontologie
</nav>

<h1>Ontologie</h1>
<p>Konzept-Klassen und deren Eigenschaften.</p>

<div class="stats-grid">
    <div class="stat-card stat-card--primary">
        <span class="stat-card__value"><?= $stats['total_classes'] ?? 0 ?></span>
        <span class="stat-card__label">Klassen</span>
    </div>
    <div class="stat-card">
        <span class="stat-card__value"><?= $stats['root_classes'] ?? 0 ?></span>
        <span class="stat-card__label">Hauptklassen</span>
    </div>
    <div class="stat-card stat-card--success">
        <span class="stat-card__value"><?= $stats['classified_entities'] ?? 0 ?></span>
        <span class="stat-card__label">Klassifizierte Entitaeten</span>
    </div>
</div>

<?php if (!empty($classes)): ?>
<div class="filters">
    <input type="search" id="ontology-search" class="form-input" placeholder="Durchsuchen...">
</div>

<table id="ontology-table" data-sortable>
    <thead>
        <tr>
            <th data-sort="name">Klasse</th>
            <th data-sort="description">Beschreibung</th>
            <th data-sort="entity_count">Entitaeten</th>
            <th data-sort="subclass_count">Unterklassen</th>
            <th>Eigenschaften</th>
        </tr>
    </thead>
    <tbody>
        <?php foreach ($classes as $c): ?>
        <tr>
            <td><strong><?= htmlspecialchars($c['name']) ?></strong></td>
            <td><?= htmlspecialchars(substr($c['description'] ?? '', 0, 80)) ?></td>
            <td><?= $c['entity_count'] ?></td>
            <td><?= $c['subclass_count'] ?></td>
            <td>
                <?php if (!empty($c['properties_decoded'])): ?>
                <code><?= htmlspecialchars(implode(', ', array_keys($c['properties_decoded']))) ?></code>
                <?php else: ?>
                -
                <?php endif; ?>
            </td>
        </tr>
        <?php endforeach; ?>
    </tbody>
</table>
<?php else: ?>
<p class="empty-state">Keine Ontologie-Klassen 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/taxonomie">Taxonomie</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('ontology-table', {
    searchInput: 'ontology-search',
    pageSize: 20
});
</script>

<?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
1930 10 modified 5.1 KB 2025-12-28 01:22
1639 9 modified 5.1 KB 2025-12-27 09:45
1638 8 modified 5.1 KB 2025-12-27 09:45
1634 7 modified 5.1 KB 2025-12-27 09:45
1633 6 modified 5.1 KB 2025-12-27 09:45
1623 5 modified 5.2 KB 2025-12-27 09:44
1531 4 modified 5.2 KB 2025-12-26 07:16
1530 3 modified 5.7 KB 2025-12-26 07:15
1529 2 modified 3.0 KB 2025-12-26 07:02
15 1 modified 2.3 KB 2025-12-20 16:43

← Zurück zur Übersicht