Skip to main content
Glama
northernvariables

FedMCP - Federal Parliamentary Information

legislative.py1.09 kB
"""Legislative activity relationships: SPONSORED, VOTED, SPOKE_AT, etc.""" from typing import Dict, Any from ..utils.neo4j_client import Neo4jClient from ..utils.progress import logger def build_legislative_relationships(neo4j_client: Neo4jClient, batch_size: int = 10000) -> Dict[str, int]: """ Build legislative activity relationships. Creates: - (MP)-[:SPONSORED]->(Bill) - (MP)-[:VOTED]->(Vote) - (Vote)-[:SUBJECT_OF]->(Bill) Args: neo4j_client: Neo4j client batch_size: Batch size for operations Returns: Dict with counts of created relationships """ logger.info("=" * 60) logger.info("BUILDING LEGISLATIVE RELATIONSHIPS") logger.info("=" * 60) stats = {} # TODO: Implement SPONSORED, VOTED, SPOKE_AT relationships # Requires parsing sponsor data from bills and vote results stats["sponsored"] = 0 stats["voted"] = 0 stats["spoke_at"] = 0 logger.info("=" * 60) logger.success("✅ LEGISLATIVE RELATIONSHIPS COMPLETE (TODO)") logger.info("=" * 60) return stats

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/northernvariables/FedMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server