Files
semantica/docs/preview.html
T
KaifAhmad1 74ba37849f docs: Add GitHub Pages documentation site
- Add docs folder with Jekyll-based documentation
- Add installation, quickstart, API, and examples pages
- Add GitHub Actions workflow for auto-deployment
- Configure Jekyll theme and navigation
- Add preview HTML file
2025-11-21 19:15:06 +05:30

222 lines
7.4 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Semantica Documentation</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
line-height: 1.6;
color: #333;
background: #f5f5f5;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 60px 20px;
text-align: center;
border-radius: 10px;
margin-bottom: 30px;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
header h1 {
font-size: 3em;
margin-bottom: 10px;
}
header p {
font-size: 1.2em;
opacity: 0.9;
}
.badges {
margin: 20px 0;
}
.badge {
display: inline-block;
padding: 5px 10px;
margin: 5px;
background: rgba(255,255,255,0.2);
border-radius: 5px;
font-size: 0.9em;
}
.content {
background: white;
padding: 40px;
border-radius: 10px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
margin-bottom: 20px;
}
.section {
margin-bottom: 40px;
}
.section h2 {
color: #667eea;
border-bottom: 2px solid #667eea;
padding-bottom: 10px;
margin-bottom: 20px;
}
.code-block {
background: #f8f9fa;
border-left: 4px solid #667eea;
padding: 15px;
margin: 15px 0;
border-radius: 5px;
overflow-x: auto;
}
.code-block code {
font-family: 'Courier New', monospace;
color: #e83e8c;
}
.features {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin: 20px 0;
}
.feature-card {
background: #f8f9fa;
padding: 20px;
border-radius: 8px;
border-left: 4px solid #667eea;
}
.feature-card strong {
color: #667eea;
display: block;
margin-bottom: 8px;
}
.nav-links {
display: flex;
flex-wrap: wrap;
gap: 15px;
margin: 20px 0;
}
.nav-link {
padding: 10px 20px;
background: #667eea;
color: white;
text-decoration: none;
border-radius: 5px;
transition: background 0.3s;
}
.nav-link:hover {
background: #5568d3;
}
footer {
text-align: center;
padding: 20px;
color: #666;
margin-top: 40px;
}
</style>
</head>
<body>
<div class="container">
<header>
<h1>🧠 Semantica</h1>
<p>Open Source Framework for Semantic Intelligence & Knowledge Engineering</p>
<p style="font-style: italic; margin-top: 10px;">Transform chaotic data into intelligent knowledge.</p>
<div class="badges">
<span class="badge">Python 3.8+</span>
<span class="badge">MIT License</span>
<span class="badge">PyPI</span>
<span class="badge">Open Source</span>
</div>
</header>
<div class="content">
<div class="section">
<h2>🚀 Quick Start</h2>
<h3>Installation</h3>
<div class="code-block">
<code>pip install semantica</code>
</div>
<h3>Basic Usage</h3>
<div class="code-block">
<code>from semantica import Semantica<br><br>
# Initialize Semantica<br>
semantica = Semantica()<br><br>
# Build knowledge graph from data<br>
result = semantica.build_knowledge_base(<br>
&nbsp;&nbsp;&nbsp;&nbsp;sources=["document.pdf", "data.json"],<br>
&nbsp;&nbsp;&nbsp;&nbsp;embeddings=True,<br>
&nbsp;&nbsp;&nbsp;&nbsp;graph=True<br>
)<br><br>
# Access the knowledge graph<br>
kg = result["knowledge_graph"]<br>
print(f"Entities: {len(kg['entities'])}")<br>
print(f"Relationships: {len(kg['relationships'])}")</code>
</div>
</div>
<div class="section">
<h2>📚 Documentation</h2>
<div class="nav-links">
<a href="#" class="nav-link">Installation Guide</a>
<a href="#" class="nav-link">Quick Start</a>
<a href="#" class="nav-link">Core Features</a>
<a href="#" class="nav-link">Examples</a>
<a href="#" class="nav-link">API Reference</a>
</div>
</div>
<div class="section">
<h2>✨ Core Features</h2>
<div class="features">
<div class="feature-card">
<strong>Semantic Layer Construction</strong>
Build semantic layers from unstructured data
</div>
<div class="feature-card">
<strong>Knowledge Graph Generation</strong>
Create and manage knowledge graphs
</div>
<div class="feature-card">
<strong>Entity & Relationship Extraction</strong>
Extract entities and relationships from text
</div>
<div class="feature-card">
<strong>Conflict Resolution</strong>
Multiple strategies for resolving data conflicts
</div>
<div class="feature-card">
<strong>Multiple Export Formats</strong>
Export to RDF, OWL, JSON, CSV, YAML, and more
</div>
<div class="feature-card">
<strong>Vector Store Integration</strong>
Store and query embeddings
</div>
</div>
</div>
<div class="section">
<h2>📖 Learn More</h2>
<ul style="list-style: none; padding: 0;">
<li style="padding: 8px 0;">📄 <a href="#" style="color: #667eea;">Full Documentation</a></li>
<li style="padding: 8px 0;">📚 <a href="#" style="color: #667eea;">Module Documentation</a></li>
<li style="padding: 8px 0;">💻 <a href="#" style="color: #667eea;">Code Examples</a></li>
<li style="padding: 8px 0;">🔗 <a href="#" style="color: #667eea;">GitHub Repository</a></li>
</ul>
</div>
</div>
<footer>
<p>Built with ❤️ by the Semantica community</p>
<p style="margin-top: 10px; font-size: 0.9em;">MIT License • 100% Open Source</p>
</footer>
</div>
</body>
</html>