Cross-Model Entity Alignment is an AI-driven project focused on aligning entities between RDF graphs and Property Graphs (PGs). Using transformer-based encoders and contrastive learning, we aim to generate highly accurate vector representations of graph entities and establish meaningful mappings between them.
- Dual Graph Representation: Supports RDF triples and Property Graph structures.
- Transformer-Based Encoding: Converts graphs into vector spaces for comparison.
- Contrastive Learning: Enhances entity alignment via similarity optimization.
- Graph-to-Graph Mapping: Creates a structured mapping between RDF and PG entities.
- Pretrain Encoders: Train individual models for RDF and PG representations.
- Fine-Tune with Contrastive Loss: Optimize similarity scores for aligned entities.
- Entity Matching: Identify equivalent nodes across both graph formats.
- Evaluate Alignment: Measure accuracy with standard metrics.
/cross-model-entity-alignment/
├── data/
│ ├── rdf/
│ │ └── toy_dbpedia.ttl
│ ├── pg/
│ │ ├── nodes.csv
│ │ └── edges.csv
│ └── alignments.csv
├── encoders/
│ ├── rdf_encoder.py
│ └── pg_encoder.py
└── README.md
Want to help align some graphs? Feel free to fork, submit PRs, or raise issues!
MIT License - Use freely, but don't forget to give credit! 😉
⚡ Cross-Model Entity Alignment: Where RDF Meets PG! 🌉