visualize
यह क्या करती है
यह स्किल Semantica नॉलेज ग्राफ़ के दृश्य सारांश बनाती है, जैसे सबसे ज़्यादा जुड़े आइटम के आरेख और तालिकाएँ। यह उन लोगों के लिए है जो देखना चाहते हैं कि उनका डेटा कैसे व्यवस्थित है।
कब इस्तेमाल करें
- ✓जब आप देखना चाहते हैं कि ग्राफ़ के आइटम और संबंध कैसे व्यवस्थित हैं।
- ✓जब आप ग्राफ़ के सबसे केंद्रीय या प्रभावशाली आइटम ढूँढना चाहते हैं।
- ✓जब आपको दो आइटम के बीच के रास्ते का आरेख चाहिए।
Skill का लिंक
https://github.com/semantica-agi/semantica/blob/main/plugins/skills/visualize/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“क्या आप हमारे नॉलेज ग्राफ़ के सबसे ज़्यादा जुड़े आइटम तालिका में दिखा सकते हैं, और Acme और Globex के बीच का रास्ता बना सकते हैं?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट ग्राफ़ का ढाँचा विश्लेषित करता है, हर आइटम कितना केंद्रीय है यह मापता है, और आइटम को समुदायों में बाँटता है। नतीजे Mermaid आरेखों, ASCII दृश्यों या संरचित तालिकाओं में दिखाए जाते हैं।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
/semantica:visualize
Render graph visualizations as Mermaid, ASCII, or structured Markdown. Usage: /semantica:visualize <sub-command> [args]
$ARGUMENTS = sub-command + optional node label or filter.
topology [--filter <node_type>]
Full graph structure analysis — node types, edge distribution, connectivity metrics.
from semantica.kg.graph_analyzer import GraphAnalyzer
from semantica.context import ContextGraph
graph = ContextGraph(advanced_analytics=True)
analyzer = GraphAnalyzer()
# Comprehensive analysis
analysis = analyzer.analyze_graph(graph=graph.to_dict())
metrics = analyzer.compute_metrics(graph=graph)
connectivity = analyzer.analyze_connectivity(graph=graph)
Output:
Graph Topology:
Nodes: N (M types)
Edges: P
Density: 0.23
Avg degree: 4.7
Connected: YES / NO (K components)
Node type distribution:
[Mermaid pie chart]
| Type | Count | % | Avg Degree |
Top-10 connected nodes:
| Node | Type | Degree | Betweenness |
centrality [--type degree|betweenness|closeness|eigenvector|pagerank|all] [--top N]
Calculate and rank nodes by centrality.
from semantica.kg.centrality_calculator import CentralityCalculator
from semantica.context import ContextGraph
graph = ContextGraph()
calc = CentralityCalculator()
if centrality_type == "all" or not centrality_type:
scores = calc.calculate_all_centrality(graph=graph)
elif centrality_type == "degree":
scores = calc.calculate_degree_centrality(graph=graph)
elif centrality_type == "betweenness":
scores = calc.calculate_betweenness_centrality(graph=graph)
elif centrality_type == "closeness":
scores = calc.calculate_closeness_centrality(graph=graph)
elif centrality_type == "eigenvector":
scores = calc.calculate_eigenvector_centrality(graph=graph)
elif centrality_type == "pagerank":
scores = calc.calculate_pagerank(
graph=graph,
max_iterations=100,
damping_factor=0.85,
)
Return: | Rank | Node | Type | Degree | Betweenness | Closeness | Eigenvector | PageRank |
For a single node, also call ContextGraph.get_node_centrality(node_id) and get_node_importance(node_id).
community [--algorithm louvain|leiden|label-propagation|overlapping]
Detect and visualize graph communities/clusters.
from semantica.kg.community_detector import CommunityDetector
from semantica.context import ContextGraph
graph = ContextGraph()
detector = CommunityDetector()
algorithm = algo_arg or "louvain"
if algorithm == "louvain":
result = detector.detect_communities_louvain(graph, resolution=1.0)
elif algorithm == "leiden":
result = detector.detect_communities_leiden(graph, resolution=1.0)
elif algorithm == "label-propagation":
result = detector.detect_communities_label_propagation(graph)
elif algorithm == "overlapping":
result = detector.detect_overlapping_communities(graph)
else:
result = detector.detect_communities(graph, algorithm=algorithm)
structure = detector.analyze_community_structure(graph, result)
metrics = detector.calculate_community_metrics(graph, result)
Output:
Community Detection (algorithm: louvain)
Communities: N
Modularity: 0.71
Community summary:
| ID | Size | Top Node | Internal Density | Bridge Nodes |
[Mermaid graph TD — nodes colored/grouped by community ID]
path <n1> <n2> [--k N] [--algorithm bfs|dijkstra|astar|k-shortest]
Find and visualize paths between two nodes.
from semantica.kg.path_finder import PathFinder
from semantica.context import ContextGraph
graph = ContextGraph()
finder = PathFinder()
k = int(k_arg) if k_arg else 3
if algorithm == "bfs":
path = finder.bfs_shortest_path(graph, source=n1, target=n2)
paths = [path]
elif algorithm == "dijkstra":
path = finder.dijkstra_shortest_path(graph, source=n1, target=n2)
paths = [path]
else: # default: k-shortest
paths = finder.find_k_shortest_paths(graph, source=n1, target=n2, k=k)
lengths = [finder.path_length(graph, p) for p in paths]
Output as Mermaid sequenceDiagram for each path:
Path 1 (length: 2.3):
n1 →[rel_type]→ Middle →[rel_type]→ n2
Path 2 (length: 3.7): ...
decision-graph [--category <cat>] [--depth N]
Visualize the decision influence graph for a category or all decisions.
from semantica.context import ContextGraph
from semantica.context.causal_analyzer import CausalChainAnalyzer
from semantica.conte
अक्सर पूछे जाने वाले सवाल
centrality क्या है?
यह मापता है कि नेटवर्क के भीतर कोई आइटम कितना महत्वपूर्ण या अच्छी तरह जुड़ा है।
ग्राफ़ में समुदाय क्या है?
आइटम का वह समूह जो आपस में बाकी ग्राफ़ की तुलना में ज़्यादा करीब से जुड़ा हो।
आरेख किन फ़ॉर्मेट में बन सकते हैं?
Mermaid, ASCII और संरचित Markdown तालिकाएँ।
जानकारी
लेखक का मूल विवरण
Visualize the Semantica knowledge graph — topology, centrality, communities, paths, embeddings, decision insights, and temporal evolution. Uses GraphAnalyzer, CentralityCalculator, CommunityDetector, PathFinder, and ContextGraph analytics. Sub-commands: topology, centrality, community, path, decision-graph, insights, temporal, embedding.
repo: semantica-agi/semantica
लोकप्रियता
- GitHub स्टार
- 14k
- रैंकिंग में स्थान
- #11158
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
semantica
14kयह आपके एजेंट को नॉलेज ग्राफ़ का पूरा टूलकिट देती है, जिसमें निष्कर्षण, तर्क, प्रोवेनेंस, ऑन्टोलॉजी, नीतियाँ और एक्सपोर्ट शामिल हैं।
causal
14kयह आपके एजेंट को नॉलेज ग्राफ़ में कारण और प्रभाव के संबंध खोजने में मदद करती है, जिसमें कारण-श्रृंखला और 'अगर ऐसा होता' वाले सवाल शामिल हैं।
change
14kयह आपके एजेंट को दिखाती है कि नॉलेज ग्राफ़ पहले किसी तारीख पर कैसा था, और दो तारीखों या दो ऑन्टोलॉजी संस्करणों के बीच क्या बदला।
decision
14kयह आपके एजेंट को नॉलेज ग्राफ़ में निर्णय दर्ज करने, खोजने, समझाने और समीक्षा करने में मदद करती है, पहले नोट से लेकर उसके नतीजे तक।
मिलती-जुलती skills
gitcrawl
394kयह आपके एजेंट को GitHub issues और pull requests के सेव आर्काइव में खोजने, मिलते-जुलते मामलों को समूह में रखने और लाइव स्थिति जांचने देती है।
slacrawl
394kयह आपके एजेंट को स्थानीय Slack आर्काइव में संदेश खोजने और गिनने, उसकी ताज़गी जांचने और ज़रूरत पड़ने पर उसे ताज़ा करने देती है।
goplaces
394kयह आपके एजेंट को Google Places से जगहें खोजने, उनका विवरण और समीक्षाएं पाने, और जगह के नाम हल करने में मदद करती है, स्क्रिप्ट के लिए JSON आउटपुट के साथ।