parliament-query
Query the complete parliamentary knowledge graph - MPs, sessions, laws, debates. Use when user asks "who said", "what law", "when session", "parliamentary data", "find mp".
- License 许可
- MIT
- 最近更新
- 2026-04-29
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- parliament-query
- description
- Query the complete parliamentary knowledge graph - MPs, sessions, laws, debates. Use when user asks "who said", "what law", "when session", "parliamentary data", "find mp".
- allowed-tools
- Bash, Read, Grep
03 SKILL.md 正文
Query Parliament Data
Query existing parliamentary data from multiple sources.
Methods
1. Search Vault (grep)
grep -r "search_term" vault/politicians/
grep -r "search_term" vault/sessions/
2. Dataview Query
Use Obsidian with dataview queries from:
obsidian-plugins/dataview/parliament-queries.md
3. MemPalace Semantic Search
cd knowledge_graph
mempalace search "query"
4. Knowledge Graph Query
python3 scripts/query/parliament_qa.py --question "your question"
5. REST API
curl http://localhost:8000/api/mps
curl http://localhost:8000/api/sessions
curl http://localhost:8000/api/laws
Data Sources
vault/politicians/- MP profiles (deputies, senators)vault/sessions/- Session transcriptsvault/laws/- Legislationknowledge_graph/entities.json- Unified KGvault/ai-memory/- AI-processed summaries
Example Queries
"Who talked about 448/2006?"
grep -r "448/2006" vault/sessions/
"Show PSD deputies with most speeches"
TABLE file.name, speeches_count
FROM "politicians/deputies"
WHERE party = "PSD"
SORT speeches_count DESC
LIMIT 10
"Recent sessions"
TABLE date, title, chamber
FROM "sessions"
SORT date DESC
LIMIT 10
04 同仓库更多 Skills
status
Show MemPalace status — room counts, storage usage, and palace health.
search
Search your MemPalace — semantic search across all mined memories, projects, and conversations.
scrape-senat
Scrape Romanian Senate (senat.ro) for senate sessions, senator profiles, and legislation. Use when user says "scrape senate", "senat.ro", "senate sessions".
scrape-parliament
Complete parliamentary data scrape - scrapes both cdep.ro and senat.ro, processes data, updates knowledge graph. Use when user says "scrape parliament", "update parliament data", "refresh parliamentary knowledge", "full scrape".
scrape-cdep
Scrape Romanian Chamber of Deputies (cdep.ro) for parliamentary transcripts, MP profiles, and session data. Use when user says "scrape cdep", "chamber deputies", "parliamentary sessions", "update parliament data".
mine
Mine a project or conversation into your MemPalace — extract and store memories for later retrieval.