Knowledge Graph 25 Classes (AMWAY)
Neptune (openCypher) 기반 25 클래스 KG. 추정 ~700K edges (ABO Tree 깊이 반영). ABO 다단계 조직 + 정기구독 + 글로벌 다국어 특성 반영.
1. 25 클래스 개요
2. AMWAY 특화 클래스 상세
2.1 ABO + Customer + Sponsor + DownlineLink (조직 트리)
| 클래스 | 핵심 속성 | 주요 관계 |
|---|---|---|
| ABO | abo_id · level (Founders Platinum / Diamond / Founders Diamond / EDC / EC ...) · joined_at · country · pv · bv · cohort_tag | -[SPONSORED_BY]→ Sponsor · -[BELONGS_TO]→ Persona |
| Customer | customer_id · age_band · region · cohort_tag | -[REFERRED_BY]→ ABO |
| Sponsor | sponsor_id · upline_chain (compressed path) | -[SPONSORED]→ ABO |
| DownlineLink | from_abo · to_abo · depth · since | -[CHAIN]→ ABO (양방향) |
| Persona | persona_id · name (라이프스타일 5종) · traits | -[CLASSIFIES]→ ABO |
2.2 Subscription (정기구독)
| 클래스 | 핵심 속성 | 주요 관계 |
|---|---|---|
| Subscription | sub_id · plan (월/분기) · sku_list · auto_renew · paused_at · cancelled_at | -[OF]→ ABO |
| SubscriptionEvent | event_id · type (start/renew/pause/cancel) · at | -[ON]→ Subscription |
2.3 RegulatorySignal (직접판매 규제)
| 클래스 | 속성 |
|---|---|
| RegulatorySignal | rule_id · jurisdiction (FTC/방판법/EU) · topic (광고·등급·미성년·환불) · effective_at |
3. 핵심 관계 예시 (ABO 트리 + 구독)
엣지 추정:
- ABO × DownlineLink (~250K, 평균 트리 깊이 5단)
- ABO × Subscription × SubscriptionEvent (~120K)
- ABODirectSale × Customer × Product (~200K)
- 자사몰 OrderTransaction × Product (~80K)
- 외부 시그널 (~50K)
→ 약 700K edges
4. openCypher 예시
4.1 S9-A — Diamond 등급 ABO의 5단 Downline 트리
MATCH (root:ABO {level: 'Diamond', abo_id: $rootId})
CALL {
WITH root
MATCH path = (root)-[:HAS_DOWNLINE*1..5]->(d:ABO)
RETURN d, length(path) AS depth
}
RETURN d.abo_id, d.level, d.pv, d.bv, depth
ORDER BY depth, d.pv DESC
4.2 S10-A — 정기구독 해지 시그너처 탐지
MATCH (s:Subscription)-[:OF]->(a:ABO)
WHERE s.cancelled_at IS NOT NULL
AND s.cancelled_at > datetime() - duration('P30D')
WITH a, count(s) AS recent_cancels
WHERE recent_cancels >= 2
RETURN a.abo_id, recent_cancels