2026-05-08 17:41:15 +09:00
|
|
|
<!doctype html>
|
|
|
|
|
<html lang="ko">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
|
|
<title>Ontology Crawler Platform</title>
|
|
|
|
|
<link rel="stylesheet" href="/static/styles.css" />
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<header class="topbar">
|
|
|
|
|
<div>
|
|
|
|
|
<h1>Ontology Crawler</h1>
|
2026-05-11 13:02:11 +09:00
|
|
|
<p>Project crawler, ontology mapping, claim review, and recommendation tags</p>
|
2026-05-08 17:41:15 +09:00
|
|
|
</div>
|
2026-05-11 13:02:11 +09:00
|
|
|
<button id="refreshBtn" class="icon-button" title="Refresh" aria-label="Refresh">R</button>
|
2026-05-08 17:41:15 +09:00
|
|
|
</header>
|
|
|
|
|
|
|
|
|
|
<main class="layout">
|
|
|
|
|
<aside class="sidebar">
|
|
|
|
|
<section class="panel">
|
|
|
|
|
<div class="panel-head">
|
|
|
|
|
<h2>Projects</h2>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="field-row">
|
|
|
|
|
<input id="configPath" value="configs/perfume_subscription.yaml" aria-label="Config path" />
|
2026-05-11 13:02:11 +09:00
|
|
|
<button id="createProjectBtn" title="Create project">+</button>
|
2026-05-08 17:41:15 +09:00
|
|
|
</div>
|
|
|
|
|
<div id="projectList" class="list"></div>
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
<section class="panel">
|
|
|
|
|
<div class="panel-head">
|
|
|
|
|
<h2>Crawl</h2>
|
|
|
|
|
</div>
|
|
|
|
|
<label>
|
|
|
|
|
Source
|
|
|
|
|
<select id="sourceSelect"></select>
|
|
|
|
|
</label>
|
|
|
|
|
<label>
|
2026-05-11 13:02:11 +09:00
|
|
|
URL / Seed URL
|
2026-05-08 17:41:15 +09:00
|
|
|
<input id="crawlUrl" value="tests/fixtures/sample_perfume.html" />
|
|
|
|
|
</label>
|
|
|
|
|
<label>
|
|
|
|
|
Analyzer
|
|
|
|
|
<select id="extractorProvider">
|
|
|
|
|
<option value="rule_based">Rule-based</option>
|
|
|
|
|
<option value="openai">OpenAI API</option>
|
|
|
|
|
<option value="ollama">Ollama</option>
|
|
|
|
|
<option value="lm_studio">LM Studio</option>
|
|
|
|
|
</select>
|
|
|
|
|
</label>
|
|
|
|
|
<div class="extractor-options" id="extractorOptions">
|
|
|
|
|
<label>
|
|
|
|
|
Model
|
2026-05-11 13:02:11 +09:00
|
|
|
<input id="extractorModel" placeholder="local or API model" />
|
2026-05-08 17:41:15 +09:00
|
|
|
</label>
|
|
|
|
|
<label>
|
|
|
|
|
Base URL
|
|
|
|
|
<input id="extractorBaseUrl" placeholder="optional provider endpoint" />
|
|
|
|
|
</label>
|
2026-05-11 13:02:11 +09:00
|
|
|
<button id="testExtractorBtn">Test analyzer</button>
|
2026-05-08 17:41:15 +09:00
|
|
|
</div>
|
|
|
|
|
<div class="button-grid">
|
2026-05-11 13:02:11 +09:00
|
|
|
<button id="discoverBtn">Discover links</button>
|
|
|
|
|
<button id="crawlBtn" class="primary">Crawl URL</button>
|
2026-05-08 17:41:15 +09:00
|
|
|
</div>
|
2026-05-11 13:02:11 +09:00
|
|
|
<div class="site-controls">
|
|
|
|
|
<label>
|
|
|
|
|
Max depth
|
|
|
|
|
<input id="siteMaxDepth" type="number" min="0" max="5" value="2" />
|
|
|
|
|
</label>
|
|
|
|
|
<label>
|
|
|
|
|
Max pages
|
|
|
|
|
<input id="siteMaxPages" type="number" min="1" max="500" value="25" />
|
|
|
|
|
</label>
|
|
|
|
|
<label class="check-row">
|
|
|
|
|
<input id="sameDomainOnly" type="checkbox" checked />
|
|
|
|
|
Same domain
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
<button id="siteCrawlBtn" class="primary full">Crawl site from seed</button>
|
2026-05-08 17:41:15 +09:00
|
|
|
<div id="crawlResult" class="mini-log"></div>
|
|
|
|
|
<div id="discoveredLinks" class="discovered-links"></div>
|
|
|
|
|
</section>
|
|
|
|
|
</aside>
|
|
|
|
|
|
|
|
|
|
<section class="workspace">
|
|
|
|
|
<nav class="tabs" aria-label="Admin sections">
|
|
|
|
|
<button class="tab active" data-tab="overview">Overview</button>
|
|
|
|
|
<button class="tab" data-tab="ontology">Ontology</button>
|
|
|
|
|
<button class="tab" data-tab="entities">Entities</button>
|
|
|
|
|
<button class="tab" data-tab="claims">Claims</button>
|
|
|
|
|
<button class="tab" data-tab="tags">Tags</button>
|
|
|
|
|
<button class="tab" data-tab="recommend">Recommend</button>
|
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
|
|
<section id="overview" class="tab-panel active">
|
|
|
|
|
<div class="summary-grid">
|
|
|
|
|
<div class="metric">
|
|
|
|
|
<span>Project</span>
|
|
|
|
|
<strong id="metricProject">-</strong>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="metric">
|
|
|
|
|
<span>Domain</span>
|
|
|
|
|
<strong id="metricDomain">-</strong>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="metric">
|
|
|
|
|
<span>Sources</span>
|
|
|
|
|
<strong id="metricSources">0</strong>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="metric">
|
|
|
|
|
<span>Entities</span>
|
|
|
|
|
<strong id="metricEntities">0</strong>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="wide-panel">
|
|
|
|
|
<h2>Sources</h2>
|
|
|
|
|
<div id="sourceTable" class="table"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
<section id="ontology" class="tab-panel">
|
|
|
|
|
<div class="split">
|
|
|
|
|
<div class="wide-panel">
|
|
|
|
|
<h2>Entity Types</h2>
|
|
|
|
|
<div id="ontologyEntities" class="chips"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="wide-panel">
|
|
|
|
|
<h2>Predicates</h2>
|
|
|
|
|
<div id="ontologyPredicates" class="chips"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
<section id="entities" class="tab-panel">
|
|
|
|
|
<div class="toolbar wrap">
|
|
|
|
|
<select id="entityTypeFilter"></select>
|
2026-05-11 13:02:11 +09:00
|
|
|
<button id="loadEntitiesBtn">Load</button>
|
2026-05-08 17:41:15 +09:00
|
|
|
</div>
|
|
|
|
|
<div class="merge-bar">
|
2026-05-11 13:02:11 +09:00
|
|
|
<input id="mergeSourceId" placeholder="Entity ID to merge" aria-label="source entity id" />
|
|
|
|
|
<input id="mergeTargetId" placeholder="Entity ID to keep" aria-label="target entity id" />
|
|
|
|
|
<button id="mergeEntitiesBtn">Merge</button>
|
2026-05-08 17:41:15 +09:00
|
|
|
</div>
|
|
|
|
|
<div id="entityTable" class="table"></div>
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
<section id="claims" class="tab-panel">
|
|
|
|
|
<div class="toolbar">
|
2026-05-11 13:02:11 +09:00
|
|
|
<button id="loadClaimsBtn">Refresh claims</button>
|
2026-05-08 17:41:15 +09:00
|
|
|
</div>
|
|
|
|
|
<div id="claimTable" class="claim-list"></div>
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
<section id="tags" class="tab-panel">
|
|
|
|
|
<div class="toolbar">
|
2026-05-11 13:02:11 +09:00
|
|
|
<button id="loadTagsBtn">Load tags</button>
|
2026-05-08 17:41:15 +09:00
|
|
|
</div>
|
|
|
|
|
<div id="tagTable" class="table"></div>
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
<section id="recommend" class="tab-panel">
|
|
|
|
|
<div class="recommend-grid">
|
|
|
|
|
<label>
|
|
|
|
|
Preferred notes
|
|
|
|
|
<input id="preferredNotes" value="Bergamot, Musk" />
|
|
|
|
|
</label>
|
|
|
|
|
<label>
|
|
|
|
|
Avoided notes
|
|
|
|
|
<input id="avoidedNotes" value="" />
|
|
|
|
|
</label>
|
|
|
|
|
<label>
|
|
|
|
|
Preferred moods
|
|
|
|
|
<input id="preferredMoods" value="Fresh" />
|
|
|
|
|
</label>
|
|
|
|
|
<label>
|
|
|
|
|
Season
|
|
|
|
|
<input id="seasonContext" value="Summer" />
|
|
|
|
|
</label>
|
|
|
|
|
<label>
|
|
|
|
|
Occasion
|
|
|
|
|
<input id="occasionContext" value="Daily" />
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
2026-05-11 13:02:11 +09:00
|
|
|
<button id="recommendBtn" class="primary">Test recommendation</button>
|
2026-05-08 17:41:15 +09:00
|
|
|
<div id="recommendTable" class="table"></div>
|
|
|
|
|
</section>
|
|
|
|
|
</section>
|
|
|
|
|
</main>
|
|
|
|
|
|
|
|
|
|
<div id="toast" role="status" aria-live="polite"></div>
|
|
|
|
|
<script src="/static/app.js"></script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|