国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

vue+neo4j +純前端(neovis.js / neo4j-driver) 實(shí)現(xiàn) 知識(shí)圖譜的集成 大干貨--踩坑無(wú)數(shù)?。?!將經(jīng)驗(yàn)分享給有需要的小伙伴

這篇具有很好參考價(jià)值的文章主要介紹了vue+neo4j +純前端(neovis.js / neo4j-driver) 實(shí)現(xiàn) 知識(shí)圖譜的集成 大干貨--踩坑無(wú)數(shù)?。?!將經(jīng)驗(yàn)分享給有需要的小伙伴。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問(wèn)。

neo4j是什么?

簡(jiǎn)單來(lái)說(shuō),這是一種比較熱門的圖數(shù)據(jù)庫(kù),圖數(shù)據(jù)庫(kù)以圖形形式存儲(chǔ)數(shù)據(jù)。 它以節(jié)點(diǎn),關(guān)系和屬性的形式存儲(chǔ)應(yīng)用程序的數(shù)據(jù)。 一個(gè)圖由無(wú)數(shù)的節(jié)點(diǎn)和關(guān)系組成。
安裝圖數(shù)據(jù)庫(kù)在這里就不介紹了,本篇主要介紹如何連接neo4j數(shù)據(jù)庫(kù),將知識(shí)圖譜成功顯示在前端頁(yè)面中。

一、Neovis.js 不用獲取數(shù)據(jù)直接連接數(shù)據(jù)庫(kù)繪圖

1.、 Neovis.js與Neo4j的連接非常簡(jiǎn)單明了,并且Neovis 的數(shù)據(jù)格式與那neo4j數(shù)據(jù)庫(kù)保持一致。在單個(gè)配置對(duì)象中定義標(biāo)簽、屬性、節(jié)點(diǎn)和關(guān)系的樣式和顏色。

首先下載依賴

 npm install -save neovis.js

在項(xiàng)目中引用

import NeoVis from 'neovis.js';

創(chuàng)建用來(lái)繪圖的DOM元素

<div style="height:100%;" ref="Screen">
    <div class="left" id="viz1" ref="viz1"></div>
 </div> -->

頁(yè)面加載進(jìn)來(lái)調(diào)用draw()畫圖函數(shù)

    mounted() {
     this.draw();
    },
    //neovis.js畫圖
    methods:{
     draw() {
       //獲取dom元素
      var viz1 = this.$refs.viz1;
      
      //創(chuàng)建veovis實(shí)例
      var viz;
      
      //配置項(xiàng)
      var config = {
        container_id: "viz",
        //neo4j服務(wù)器地址,用戶名 和 密碼
        server_url: "bolt://192.x.xxx.10:7687",
        server_user: "nexx4j",
        server_password: "KGxxx34",

        **///labels是節(jié)點(diǎn)央樣式的配置:**
        **/// caption :節(jié)點(diǎn)顯示的文字對(duì)應(yīng)內(nèi)容
        **/// community: 節(jié)點(diǎn)顏色**
        **/// size:節(jié)點(diǎn)大小**
        **/// font:節(jié)點(diǎn)字體大小設(shè)置****
        **//沒(méi)有在這個(gè)地方配置的節(jié)點(diǎn)將會(huì)是默認(rèn)樣式**
        labels: {
          "CITY": { caption: "name", community: "#5496FF", size: 200, font: { size: 35, color: "#606266", }, },
          "基本待遇政策": { caption: "name", community: "#5496FF", size: 95, font: { size: 25, color: "#606266", } },
          "基本籌資政策": { caption: "name", community: "#5496FF", size: 95, font: { size: 25, color: "#606266", }, },
        },
        
        **///relationships是關(guān)系線段樣式的配置:**
        **/// caption :線段顯示的文字對(duì)應(yīng)內(nèi)容
        **/// thickness: 線段粗細(xì)**
        **/// font:節(jié)點(diǎn)字體大小設(shè)置****
        **//沒(méi)有在這個(gè)地方配置的線段將會(huì)是默認(rèn)樣式**
        relationships: {
          "待遇支付政策": { thickness: 1, caption: true, font: { size: 15, color: "#606266", }, },
          "待遇主體類別": { thickness: "count", caption: true, font: { size: 15, color: "#606266", }, },
        },
        
        //是否顯示箭頭
        arrows: true,

        hierarchical: true,
        
        // 分層結(jié)構(gòu)或者默認(rèn) "hubsize"(默認(rèn))和"directed".
        // hierarchical_sort_method: 'hubsize',
        hierarchical_sort_method: 'directed',

        //配置數(shù)據(jù)庫(kù)查詢語(yǔ)句,MATCH n RETURN n,嘗試過(guò)不對(duì),必須用 MATCH p=()-->() RETURN p
        initial_cypher: 'MATCH p=()-->() RETURN p',
      };

      viz = new NeoVis(config);
      viz._container = viz1;
      viz.render();
     },
    }

二、vis.js 或者 echarts繪圖

由于這兩者需要的數(shù)據(jù)格式與neo4j數(shù)據(jù)格式不同,所以需要先從前端獲取數(shù)據(jù),然后處理成我們需要的格式。

1、(發(fā)現(xiàn)一個(gè)神器) neo4j-driver 能夠直接通過(guò)前端獲取數(shù)據(jù)。

上代碼, 首先下載依賴

 npm install -save neo4j-driver

再頁(yè)面中引入

var neo4j = require("neo4j-driver");
export default {
   ...此處暫時(shí)省略...
}

頁(yè)面初次加載調(diào)用 this.executeCypher() 執(zhí)行 Cypher 查詢數(shù)據(jù)

 mounted() {
    var  query= 'MATCH p=()-->() RETURN p'
    this.executeCypher(query);
  },

executeCypher()方法定義: 該方法處理的數(shù)據(jù)格式為echarts適用格式


    /**
         * 直接執(zhí)行Cypher
         */
    executeCypher(query) {
      this.echartsNode = []  //節(jié)點(diǎn)數(shù)組
      this.nodesRelation = [] //關(guān)系線數(shù)組
      this.category = [] //echarts圖例數(shù)據(jù)數(shù)
      // 創(chuàng)建實(shí)例
      this.driver = neo4j.driver('bolt://localhost:7687', neo4j.auth.basic('neo4j', 'KG****'));
      console.log("?? ~ file: AuthorArticleSearch.vue ~ line 46 ~ mounted ~  this.drive", this.driver)

      let me = this;
      me.records = [];
      this.clearAll = true;
      let session = this.driver.session();
      if (query == "") return;
      session.run(query, {}).then((result) => {
        me.clearAll = false;
        me.records = result.records;
        console.log("neo4j 查詢結(jié)果", result.records);
        
        session.close();
        me.closeLoading(false);
      }).catch(function (error) {
        console.log("Cypher 執(zhí)行失敗!", error);
        me.driver.close();
      });
    },
    closeLoading(status) {
      console.log('closeLoading', status);
    },

以上我們就查詢到了數(shù)據(jù),緊接著開(kāi)始處理數(shù)據(jù),首先處理成適用echarts的數(shù)據(jù)格式

2、使用echarts繪圖

首先處理獲取的數(shù)據(jù)

            /**
         * 直接執(zhí)行Cypher
         */
    executeCypher(query) {
      this.echartsNode = []  //節(jié)點(diǎn)數(shù)組
      this.nodesRelation = [] //關(guān)系線數(shù)組
      this.category = [] //echarts圖例數(shù)據(jù)數(shù)
      // 創(chuàng)建實(shí)例
      this.driver = neo4j.driver('bolt://localhost:7687', neo4j.auth.basic('neo4j', '******'));
      console.log("?? ~ file: AuthorArticleSearch.vue ~ line 46 ~ mounted ~  this.drive", this.driver)

      let me = this;
      me.records = [];
      this.clearAll = true;
      let session = this.driver.session();
      if (query == "") return;
      session.run(query, {}).then((result) => {
        me.clearAll = false;
        me.records = result.records;
        console.log("neo4j 查詢結(jié)果", result.records);
// 開(kāi)始處理數(shù)據(jù)
        for (let i = 0; i < me.records.length; i++) {
          this.echartsData.push({
            name: me.records[i]._fields[0].segments[0].start.properties.name,
            category: me.records[i]._fields[0].segments[0].start.labels[0]
          });
          this.echartsData.push({
            name: me.records[i]._fields[0].segments[0].end.properties.name,
            category: me.records[i]._fields[0].segments[0].end.labels[0]
          });
          this.nodesRelation.push({
            source: me.records[i]._fields[0].segments[0].start.properties.name,
            target: me.records[i]._fields[0].segments[0].end.properties.name,
            name: me.records[i]._fields[0].segments[0].relationship.type,
          });
        }

        //刪除arr中的重復(fù)對(duì)象
        var arrId = [];
        var legend = [];
        for (var item of this.echartsData) {
          legend.push({ name: item.category })
          if (arrId.indexOf(item.name) == -1) {
            arrId.push(item.name)
            this.echartsNode.push(item);
          }
        }
        this.category = Array.from(new Set(legend))
        
        session.close();
        me.closeLoading(false);
      }).catch(function (error) {
        console.log("Cypher 執(zhí)行失敗!", error);
        me.driver.close();
      });

      setTimeout(() => {
        this.knowlegGraphshow = true
       }, 4000);
    },
    closeLoading(status) {
      console.log('closeLoading', status);
    },

echarts配置:

this.options = {
                    tooltip: {//彈窗
                        show: false,
                        // enterable: true,//鼠標(biāo)是否可進(jìn)入提示框浮層中
                        // formatter: formatterHover,//修改鼠標(biāo)懸停顯示的內(nèi)容
                    },
                    legend: {
                        type: 'scroll',
                        orient: 'vertical',
                        left: 10,
                        top: 20,
                        bottom: 20,
                        data: this.category
                    },
                    series: [
                        {

                            categories: this.category,
                            // categories: [{
                            //     name: "籌資渠道"
                            // }],
                            type: "graph",
                            layout: "force",
                            zoom: 0.6,
                            symbolSize: 60,
                            // 節(jié)點(diǎn)是否可以拖動(dòng)
                            draggable: true,
                            roam: true,
                            hoverAnimation: false,
                            // labelLayout: {
                            //     hideOverlap: true,
                            // },
                            legendHoverLink: false,
                            nodeScaleRatio: 0.6, //鼠標(biāo)漫游縮放時(shí)節(jié)點(diǎn)的相應(yīng)縮放比例,當(dāng)設(shè)為0時(shí)節(jié)點(diǎn)不隨著鼠標(biāo)的縮放而縮放
                            focusNodeAdjacency: false, //是否在鼠標(biāo)移到節(jié)點(diǎn)上的時(shí)候突出顯示節(jié)點(diǎn)以及節(jié)點(diǎn)的邊和鄰接節(jié)點(diǎn)。
                            // categories: categories,
                            itemStyle: {
                                color: "#67A3FF",
                            },
                            edgeSymbol: ["", "arrow"],
                            // edgeSymbolSize: [80, 10],
                            edgeLabel: {
                                normal: {
                                    show: true,
                                    textStyle: {
                                        fontSize: 12,
                                    },
                                    formatter(x) {
                                        return x.data.name;
                                    },
                                },
                            },
                            label: {
                                normal: {
                                    show: true,
                                    textStyle: {
                                        fontSize: 12,
                                    },
                                    color: "#f6f6f6",
                                    textBorderColor: '#67A3FF',
                                    textBorderWidth: '1.3',
                                    // 多字換行
                                    formatter: function (params) {
                                        // console.log(params);
                                        var newParamsName = "";
                                        var paramsNameNumber = params.name.length;
                                        var provideNumber = 7; //一行顯示幾個(gè)字
                                        var rowNumber = Math.ceil(paramsNameNumber / provideNumber);
                                        if (paramsNameNumber > provideNumber) {
                                            for (var p = 0; p < rowNumber; p++) {
                                                var tempStr = "";
                                                var start = p * provideNumber;
                                                var end = start + provideNumber;
                                                if (p == rowNumber - 1) {
                                                    tempStr = params.name.substring(start, paramsNameNumber);
                                                } else {
                                                    tempStr = params.name.substring(start, end) + "\n\n";
                                                }
                                                newParamsName += tempStr;
                                            }
                                        } else {
                                            newParamsName = params.name;
                                        }
                                        return newParamsName;
                                    },
                                },
                            },
                            force: {
                                repulsion: 200, // 節(jié)點(diǎn)之間的斥力因子。支持?jǐn)?shù)組表達(dá)斥力范圍,值越大斥力越大。
                                gravity: 0.01, // 節(jié)點(diǎn)受到的向中心的引力因子。該值越大節(jié)點(diǎn)越往中心點(diǎn)靠攏。
                                edgeLength: 400, // 邊的兩個(gè)節(jié)點(diǎn)之間的距離,這個(gè)距離也會(huì)受 repulsion影響 。值越大則長(zhǎng)度越長(zhǎng)
                                layoutAnimation: true, // 因?yàn)榱σ龑?dǎo)布局會(huì)在多次迭代后才會(huì)穩(wěn)定,這個(gè)參數(shù)決定是否顯示布局的迭代動(dòng)畫
                                // 在瀏覽器端節(jié)點(diǎn)數(shù)據(jù)較多(>100)的時(shí)候不建議關(guān)閉,布局過(guò)程會(huì)造成瀏覽器假死。
                            },
                            data: this.data,
                            links: this.links,
                            // categories: this.categories
                        }

                    ]
                }

3、使用vis.js繪圖

下載依賴:

npm install -s vis,js

引入:

//import Vis from "vis";
const Vis = require('vis-network/dist/vis-network.min');
require('vis-network/dist/dist/vis-network.min.css');

首先處理數(shù)據(jù):

在這里插入代碼片
         /**
         * 直接執(zhí)行Cypher
         */
    executeCypher(query) {
      this.echartsNode = []  //節(jié)點(diǎn)數(shù)組
      this.nodesRelation = [] //關(guān)系線數(shù)組
      // 創(chuàng)建實(shí)例
      this.driver = neo4j.driver('bolt://localhost:7687', neo4j.auth.basic('neo4j', 'KG****'));
      console.log("?? ~ file: AuthorArticleSearch.vue ~ line 46 ~ mounted ~  this.drive", this.driver)

      let me = this;
      me.records = [];
      this.clearAll = true;
      let session = this.driver.session();
      if (query == "") return;
      session.run(query, {}).then((result) => {
        me.clearAll = false;
        me.records = result.records;
        console.log("neo4j 查詢結(jié)果", result.records);
       
        // 開(kāi)始處理數(shù)據(jù)
        let nodes = new Set();
        for (let i = 0; i < me.records.length; i++) {
          nodes.add(me.records[i]._fields[0].segments[0].start.properties.name);
          nodes.add(me.records[i]._fields[0].segments[0].end.properties.name);
          this.nodesRelation.push({
            from: me.records[i]._fields[0].segments[0].start.properties.name,
            to: me.records[i]._fields[0].segments[0].end.properties.name,
            label: me.records[i]._fields[0].segments[0].relationship.type,
            id: i,
          });
        }

        nodes.forEach((e) => {
          this.echartsData.push({
            label: e,
            id: e,
          });
        })
        session.close();
        me.closeLoading(false);
      }).catch(function (error) {
        console.log("Cypher 執(zhí)行失敗!", error);
        me.driver.close();
      });
      
      this.nodesArray = this.echartsData  //節(jié)點(diǎn)數(shù)組
      this.edgesArray = this.nodesRelation //關(guān)系線數(shù)組
      setTimeout(() => {
        this.knowlegGraphshow = true
       }, 4000);
    },
    closeLoading(status) {
      console.log('closeLoading', status);
    },
 

定義繪圖dom元素

// width,height 畫布的寬度,高度。 可以是百分比或像素,一般在dom元素上設(shè)置 -->
     <div v-if="knowlegGraphshow == true" id="network_id" ref="network_id" class="network" style="height: 100%;">
     </div> 

調(diào)用繪圖方法:

 // vis.js畫圖
    visDraw() {
      let container = this.$refs.network_id;
      let data = { nodes: this.nodesArray, edges: this.edgesArray }
      console.log("?? ~ file: pageKnowlegGraph.vue ~ line 135 ~ visDraw ~ data", data)
      let options = {
        autoResize: true,
        // / 設(shè)置節(jié)點(diǎn)樣式
        nodes: {
          shape: "dot",
          size: 20,
          font: {
            //字體配置
            size: 20
          },
          color: {
            // border: "#2B7CE9", //節(jié)點(diǎn)邊框顏色
            background: "#97C2FC", //節(jié)點(diǎn)背景顏色
            highlight: {
              //節(jié)點(diǎn)選中時(shí)狀態(tài)顏色
              border: "#2B7CE9",
              background: "#D2E5FF"
            },
            hover: {
              //節(jié)點(diǎn)鼠標(biāo)滑過(guò)時(shí)狀態(tài)顏色
              border: "#2B7CE9",
              background: "#D2E5FF"
            }
          },
          borderWidth: 0, //節(jié)點(diǎn)邊框?qū)挾?,單位為px
          borderWidthSelected: 2 //節(jié)點(diǎn)被選中時(shí)邊框的寬度,單位為px
        },
        // 邊線配置
        edges: {
          width: 1,
          length: 260,
          color: {
            color: "#848484",
            highlight: "#848484",
            hover: "#848484",
            inherit: "from",
            opacity: 1.0
          },
          shadow: false,
          smooth: {
            //設(shè)置兩個(gè)節(jié)點(diǎn)之前的連線的狀態(tài)
            enabled: false //默認(rèn)是true,設(shè)置為false之后,兩個(gè)節(jié)點(diǎn)之前的連線始終為直線,不會(huì)出現(xiàn)貝塞爾曲線
          },
          arrows: { to: true } //箭頭指向to
        },
        //計(jì)算節(jié)點(diǎn)之前斥力,進(jìn)行自動(dòng)排列的屬性
        physics: {
          // enabled: true, //默認(rèn)是true,設(shè)置為false后,節(jié)點(diǎn)將不會(huì)自動(dòng)改變,拖動(dòng)誰(shuí)誰(shuí)動(dòng)。不影響其他的節(jié)點(diǎn)
          // barnesHut: {
          //   gravitationalConstant: -4000,
          //   centralGravity: 0.3,
          //   springLength: 120,
          //   springConstant: 0.04,
          //   damping: 0.09,
          //   avoidOverlap: 0
          // },
        },
        // physics: false,
        //用于所有用戶與網(wǎng)絡(luò)的交互。處理鼠標(biāo)和觸摸事件以及導(dǎo)航按鈕和彈出窗口
        interaction: {
          hover: true,
          dragNodes: true, //是否能拖動(dòng)節(jié)點(diǎn)
          dragView: true, //是否能拖動(dòng)畫布
          // hover: true, //鼠標(biāo)移過(guò)后加粗該節(jié)點(diǎn)和連接線
          // multiselect: true, //按 ctrl 多選
          // selectable: true, //是否可以點(diǎn)擊選擇
          // selectConnectedEdges: true, //選擇節(jié)點(diǎn)后是否顯示連接線
          // hoverConnectedEdges: true, //鼠標(biāo)滑動(dòng)節(jié)點(diǎn)后是否顯示連接線
          zoomView: true //是否能縮放畫布
        },
      };
      this.network = new Vis.Network(container, data, options);
    },

源碼已上傳,需要的小伙伴可前往主頁(yè)找到下載,https://download.csdn.net/download/qq_41859063/86246454?spm=1001.2014.3001.5503。文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-785780.html

到了這里,關(guān)于vue+neo4j +純前端(neovis.js / neo4j-driver) 實(shí)現(xiàn) 知識(shí)圖譜的集成 大干貨--踩坑無(wú)數(shù)?。?!將經(jīng)驗(yàn)分享給有需要的小伙伴的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來(lái)自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • Neo4j是什么,為什么需要Neo4j,Neo4j的優(yōu)勢(shì)和應(yīng)用場(chǎng)景

    Neo4j是什么,為什么需要Neo4j,Neo4j的優(yōu)勢(shì)和應(yīng)用場(chǎng)景

    當(dāng)我們處理非常復(fù)雜的數(shù)據(jù)時(shí),傳統(tǒng)的關(guān)系型數(shù)據(jù)庫(kù)可能會(huì)無(wú)法勝任。而在這種情況下,一個(gè)基于圖形數(shù)據(jù)模型的數(shù)據(jù)庫(kù),如Neo4j,可能會(huì)是更好的選擇。Neo4j是一個(gè)高性能、面向?qū)ο蟮膱D形數(shù)據(jù)庫(kù),它是為存儲(chǔ)和查詢大規(guī)模圖形數(shù)據(jù)而設(shè)計(jì)的。 在Neo4j中,數(shù)據(jù)被組織成一系列

    2024年02月08日
    瀏覽(35)
  • 【neo4j】neo4j的安裝與使用

    【neo4j】neo4j的安裝與使用

    https://www.oracle.com/java/technologies/downloads/ 按照步驟安裝即可 配置環(huán)境變量 在系統(tǒng)變量中添加 path變量中添加 https://neo4j.com/deployment-center/ 下載后,在指定位置解壓縮 與java相同,也需要設(shè)置環(huán)境變量。 終端輸入neo4j.bat console 成功

    2024年02月03日
    瀏覽(30)
  • Neo4j:入門基礎(chǔ)(二)~ 數(shù)據(jù)導(dǎo)入Neo4J

    Neo4j:入門基礎(chǔ)(二)~ 數(shù)據(jù)導(dǎo)入Neo4J

    neo4j導(dǎo)入數(shù)據(jù)的方式有以下幾種: Cypher create 語(yǔ)句,為每一條數(shù)據(jù)寫一個(gè)create Cypher load csv 語(yǔ)句,將數(shù)據(jù)轉(zhuǎn)成CSV格式,通過(guò)LOAD CSV讀取數(shù)據(jù)。 neo4j-admin import導(dǎo)入 官方提供的Java API - BatchInserter 大牛編寫的 batch-import 工具 neo4j-apoc load.csv + apoc.load.relationship 針對(duì)實(shí)際業(yè)務(wù)場(chǎng)景,定制

    2024年02月09日
    瀏覽(27)
  • springboot+elasticsearch+neo4j+vue+activiti數(shù)字知識(shí)庫(kù)管理系統(tǒng)

    springboot+elasticsearch+neo4j+vue+activiti數(shù)字知識(shí)庫(kù)管理系統(tǒng)

    在數(shù)字化高度普及的時(shí)代,企事業(yè)機(jī)關(guān)單位在日常工作中會(huì)產(chǎn)生大量的文檔,例如醫(yī)院制度匯編,企業(yè)知識(shí)共享庫(kù)等。針對(duì)這些文檔性的東西,手工紙質(zhì)化去管理是非常消耗工作量的,并且紙質(zhì)化查閱難,易損耗,所以電子化管理顯得尤為重要。 【springboot+elasticsearch+neo4j+v

    2024年02月09日
    瀏覽(42)
  • 【neo4j忘記密碼】neo4j忘記密碼的處理方法

    【neo4j忘記密碼】neo4j忘記密碼的處理方法

    小伙伴們大家好,我是javaPope,因?yàn)樽罱胍獦?gòu)建知識(shí)圖譜,突然想起自己還安裝過(guò)neo4j,當(dāng)我滿懷欣喜啟動(dòng)以后卻發(fā)現(xiàn),忘記密碼了,嗚嗚嗚,然后,廢話不多說(shuō),怎們直接上教程: 找到neo4j.config文件,路徑如下(以自己為準(zhǔn)): D:neo4jconfneo4j.conf 將 dbms.security.auth_enable

    2024年02月11日
    瀏覽(24)
  • Neo4j | 保姆級(jí)教學(xué)之如何清空neo4j數(shù)據(jù)庫(kù)

    要清空neo4j數(shù)據(jù)庫(kù),需要進(jìn)行以下操作: 停止Neo4j服務(wù)器,關(guān)閉Neo4j的所有連接。 找到 Neo4j 數(shù)據(jù)庫(kù)存儲(chǔ)的目錄,通常是 data/databases/ 。 刪除該目錄中的所有文件和子目錄。 請(qǐng)注意,這將不可逆地刪除數(shù)據(jù)庫(kù)的所有內(nèi)容,包括節(jié)點(diǎn)、關(guān)系和屬性等數(shù)據(jù)。在執(zhí)行這個(gè)操作之前,請(qǐng)

    2024年02月06日
    瀏覽(22)
  • neo4j網(wǎng)頁(yè)無(wú)法打開(kāi),啟動(dòng)一會(huì)兒后自動(dòng)關(guān)閉,查看neo4j status顯示Neo4j is not running.

    neo4j網(wǎng)頁(yè)無(wú)法打開(kāi),啟動(dòng)一會(huì)兒后自動(dòng)關(guān)閉,查看neo4j status顯示Neo4j is not running.

    公司停電,服務(wù)器未能幸免,發(fā)現(xiàn)無(wú)法訪問(wèn)此網(wǎng)站,http://0.0.0.0:7474 在此之前都還好著 發(fā)現(xiàn)neo4j啟動(dòng)后幾秒自動(dòng)掛掉 查看neo4j的報(bào)錯(cuò)日志 得到以下內(nèi)容(縮減版) 錯(cuò)誤信息 “User limit of inotify watches reached” 表明系統(tǒng)達(dá)到了 Linux 內(nèi)核對(duì) inotify 監(jiān)控事件的限制。inotify 是 Linux 內(nèi)

    2024年04月11日
    瀏覽(20)
  • 頭歌-Neo4j 的安裝部署-第1關(guān):安裝 Neo4j(超詳細(xì))

    頭歌-Neo4j 的安裝部署-第1關(guān):安裝 Neo4j(超詳細(xì))

    ?將解壓包解壓后開(kāi)始第二步:修改配置文件: ?接著修改第75行代碼,如下圖: ?啟動(dòng) Neo4j 復(fù)制下列網(wǎng)址,并打開(kāi)Fire Fox,輸入: 一開(kāi)始默認(rèn)賬號(hào)密碼都neo4j: 隨后即可修改密碼,賬號(hào)密碼都為123456,如下圖:

    2024年02月07日
    瀏覽(136)
  • 畢業(yè)設(shè)計(jì):Vue3+FastApi+Python+Neo4j實(shí)現(xiàn)主題知識(shí)圖譜網(wǎng)頁(yè)應(yīng)用——前言

    畢業(yè)設(shè)計(jì):Vue3+FastApi+Python+Neo4j實(shí)現(xiàn)主題知識(shí)圖譜網(wǎng)頁(yè)應(yīng)用——前言

    資源鏈接:https://download.csdn.net/download/m0_46573428/87796553 前言:畢業(yè)設(shè)計(jì):Vue3+FastApi+Python+Neo4j實(shí)現(xiàn)主題知識(shí)圖譜網(wǎng)頁(yè)應(yīng)用——前言_人工智能技術(shù)小白修煉手冊(cè)的博客-CSDN博客 首頁(yè)與導(dǎo)航:畢業(yè)設(shè)計(jì):Vue3+FastApi+Python+Neo4j實(shí)現(xiàn)主題知識(shí)圖譜網(wǎng)頁(yè)應(yīng)用——前端:首頁(yè)與導(dǎo)航欄_人工智

    2024年02月14日
    瀏覽(27)
  • neo4j community用neo4j.bat命令啟動(dòng)時(shí)遇到的困難

    1. neo4j : 無(wú)法將“neo4j”項(xiàng)識(shí)別為 cmdlet、函數(shù)、腳本文件或可運(yùn)行程序的名稱。請(qǐng)檢查名稱的拼寫,如果包括路徑,請(qǐng)確保路徑正確,然后再試一次 用powershell和cmd運(yùn)行都報(bào)錯(cuò),此時(shí)是neo4j環(huán)境變量未配置成功的問(wèn)題,需要多次刪除并新建NEO4J_HOME才有效; 2.無(wú)法加載文件 D:n

    2024年04月15日
    瀏覽(192)

覺(jué)得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包