只是记录踩坑,不负责讲解具体的实践步骤,具体的实践步骤参考:知识图谱-给AI装个大脑
D2RQ Database connection to jdbc:mysql:///kg_moive failed (user: root): Could not create connection to database server. Attempted reconnect 3 times. Giving up. (E54)
说明我们使用数据库数据生成mapping文件的语句有问题。
应该为:
generate-mapping -u root -p password -o kg_movie_mapping.ttl jdbc:mysql:///kg_movie?&serverTimezone=UTC&