"""
DiploAI Knowledge Graph - Configuration (Phase 2b)
Dual label model: every WP post is :Document + specific label, with document_hash.

document_hash = md5(link_url)
"""

# --- Neo4j ---
NEO4J_URI = "bolt://nimani.diplomacy.edu:7687"
NEO4J_USER = "neo4j"
NEO4J_PASS = "011diplo011"

# --- MySQL ---
MYSQL_USER = "nimani"
MYSQL_PASS = "011diplo011"

# --- Weaviate ---
WEAVIATE_URL = "http://ai6000-new.diplomacy.edu:8590"
WEAVIATE_KEY = "sHvhQqACC7CLaOKJ9gao"

# --- Shared wpcf-* meta keys extracted from wp_postmeta ---
WPCF_META_KEYS = [
    'wpcf-paragraph', 'wpcf-official-country-name-temp', 'wpcf-currentposition',
    'wpcf-photo-expert', 'wpcf-country-logo', 'wpcf-coursecode', 'wpcf-coursedetails',
    'wpcf-established-actor', 'wpcf-duration', 'wpcf-actor-stakeholder-group',
    'wpcf-expert-testimonials', 'wpcf-iso3-code', 'wpcf-profile', 'wpcf-courseimage',
    'wpcf-map-latitude', 'wpcf-location', 'wpcf-methodology', 'wpcf-country-income',
    'wpcf-physical-address-actor', 'wpcf-event-start-date', 'wpcf-year', 'wpcf-actor-logo',
    'wpcf-newsdate', 'wpcf-photo', 'wpcf-image', 'wpcf-partnerslogo', 'wpcf-updates-image',
    'wpcf-web-address-actor', 'wpcf-date', 'wpcf-map-longitude', 'wpcf-country-continent',
    'wpcf-organisedby', 'wpcf-written-by', 'wpcf-link-media', 'wpcf-actor-acronym',
    'wpcf-event-video', 'wpcf-overview', 'wpcf-role', 'wpcf-event-end-date',
    'wpcf-event-report', 'wpcf-fullname', 'wpcf-video', 'wpcf-gallery', 'wpcf-startdate',
]

# --- post_type -> Neo4j label mapping (dual label with :Document) ---
POST_TYPE_LABELS = {
    'blog': 'Blog',
    'post': 'Blog',
    'event': 'Event',
    'video-event': 'Event',
    'resource': 'Resource',
    'actor': 'Actor',
    'people': 'Person',
    'expert': 'Expert',
    'country-territory': 'Country',
    'countries': 'Country',
    'processes': 'Process',
    'technologies': 'Technology',
    'trends': 'Trend',
    'values': 'Values',
    'course': 'Course',
    'updates': 'Updates',
    'newsletter': 'Newsletter',
    'diplonews': 'Diplonews',
    'project': 'Project',
    'press-release': 'PressRelease',
    'page': 'Page',
    'igmap': 'Igmap',
    'testimonial': 'Testimonial',
    'histories': 'Histories',
    'ufaq': 'Ufaq',
    'web-story': 'WebStory',
    'diplo-in-the-media': 'DiploInTheMedia',
    'topic': 'Topic',
}

# --- diplomacy.edu ---
DIPLO_CONFIG = {
    "mysql_host": "web.diplomacy.edu",
    "mysql_db": "wpdiplo",
    "neo4j_database": "weaviatediplo",
    "site_prefix": "diplomacy.edu",
    "site_url": "https://www.diplomacy.edu",
    "include_post_types": [
        'press-release', 'blog', 'actor', 'resource', 'web-story', 'course',
        'ufaq', 'people', 'event', 'histories', 'updates', 'diplo-in-the-media',
        'project', 'page', 'diplonews', 'country-territory', 'expert',
        'igmap', 'testimonial', 'post',
    ],
}

# --- dig.watch ---
DW_CONFIG = {
    "mysql_host": "www.dig.watch",
    "mysql_db": "digwatch",
    "neo4j_database": "weaviatedw",
    "site_prefix": "dig.watch",
    "site_url": "https://dig.watch",
    "include_post_types": [
        'updates', 'event', 'resource', 'actor', 'countries', 'newsletter',
        'expert', 'trends', 'processes', 'technologies', 'values',
        'blog', 'post', 'page', 'igmap', 'video-event',
    ],
}
