知识图谱毕业设计基于知识图谱的高考志愿智能推荐系统的设计与实现
·
一、项目介绍
基于知识图谱的高考志愿智能推荐系统旨在利用知识图谱技术,结合高考生的个人信息、成绩、兴趣爱好等多维度数据,为考生提供精准、个性化的高考志愿推荐服务。该系统通过构建庞大的知识图谱,涵盖了各类高校、专业、高考志愿智能推荐设置、就业前景等详细信息,能够实时更新并维护数据的准确性和完整性。
系统通过采集和分析考生的历史成绩、兴趣爱好、职业规划等数据,结合知识图谱中的高校和专业信息,运用智能算法进行匹配和推荐。考生可以通过系统查询各类高校和专业的详细信息,了解高考志愿智能推荐设置、师资力量、就业情况等,进而做出更明智的志愿选择。
此外,该系统还提供了模拟填报、志愿填报指导等功能,帮助考生更好地理解和掌握志愿填报的规则和技巧。通过智能推荐和个性化服务,系统能够有效降低考生填报志愿的风险和不确定性,提高志愿填报的成功率和满意度。
综上所述,基于知识图谱的高考志愿智能推荐系统不仅提升了高考生志愿填报的效率和准确性,也为高校招生工作提供了有力支持,有助于推动高考招生工作的科学化和智能化发展。
【关键词】 知识图谱 Neo4j 高考志愿智能推荐
二、开发环境
开发语言:Java
neo4j,SpringBoot, vue,python,mysql
协同过滤算法
————————————————
三、功能介绍
根据本文系统的特点,管理员主要有登录系统、知识图谱管理、用户管理、角色管理、图谱绘制记录管理、知识图谱图谱绘制和展示查询。用户具有知识图谱查询、知识图谱neo4j展示、知识图谱展示功能,图谱绘制和展示记录的查询等功能,其功能结构图如图4-2所示。

图4-2
四、核心代码
部分代码:
package com.example.controller;
import cn.hutool.core.util.StrUtil;
import cn.hutool.crypto.SecureUtil;
import com.example.common.Result;
import com.example.common.ResultCode;
import com.example.entity.Caiwu;
import com.example.exception.CustomException;
import com.example.service.CaiwuService;
import com.example.utils.MapWrapperUtils;
import com.example.utils.jwt.JwtUtil;
import com.example.vo.CaiwuVo;
import org.springframework.beans.BeanUtils;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@RestController
@RequestMapping(value = "/caiwu")
public class CaiwuController {
@Resource
private CaiwuService caiwuService;
@PostMapping
public Result<Caiwu> add(@RequestBody CaiwuVo caiwu) {
caiwuService.add(caiwu);
return Result.success(caiwu);
}
@PostMapping("/deleteList")
public Result<Caiwu> deleteList(@RequestBody CaiwuVo caiwu) {
caiwuService.deleteList(caiwu.getList());
return Result.success();
}
@DeleteMapping("/{id}")
public Result delete(@PathVariable Long id) {
caiwuService.delete(id);
return Result.success();
}
@PutMapping
public Result update(@RequestBody CaiwuVo caiwu) {
caiwuService.update(caiwu);
return Result.success();
}
@GetMapping("/{id}")
public Result<Caiwu> detail(@PathVariable Integer id) {
Caiwu caiwu = caiwuService.findById(id);
return Result.success(caiwu);
}
@GetMapping
public Result<List<Caiwu>> all() {
return Result.success(caiwuService.list());
}
@PostMapping("/page")
public Result<CaiwuVo> page(@RequestBody CaiwuVo caiwuVo) {
return Result.success(caiwuService.findPage(caiwuVo));
}
@PostMapping("/login")
public Result login(@RequestBody Caiwu caiwu, HttpServletRequest request) {
if (StrUtil.isBlank(caiwu.getZhanghao()) || StrUtil.isBlank(caiwu.getMima())) {
throw new CustomException(ResultCode.PARAM_LOST_ERROR);
}
Caiwu login = caiwuService.login(caiwu);
// if(!login.getStatus()){
// return Result.error("1001","状态限制,无法登录系统");
// }
if(login != null) {
HashMap hashMap = new HashMap();
hashMap.put("user", login);
Map<String, Object> map = MapWrapperUtils.builder(MapWrapperUtils.KEY_USER_ID,caiwu.getId());
String token = JwtUtil.creatToken(map);
hashMap.put("token", token);
return Result.success(hashMap);
}else {
return Result.error();
}
}
@PutMapping("/updatePassword")
public Result updatePassword(@RequestBody Caiwu info, HttpServletRequest request) {
Caiwu caiwu = caiwuService.findById(info.getId());
String oldPassword = SecureUtil.md5(info.getMima());
if (!oldPassword.equals(caiwu.getMima())) {
return Result.error(ResultCode.PARAM_PASSWORD_ERROR.code, ResultCode.PARAM_PASSWORD_ERROR.msg);
}
info.setMima(SecureUtil.md5(info.getNewPassword()));
Caiwu caiwu1 = new Caiwu();
BeanUtils.copyProperties(info, caiwu1);
caiwuService.update(caiwu1);
return Result.success();
}
}
五、效果图






更多推荐
所有评论(0)