知识图谱(复杂网络可视化):Protege+D3.js

前言:dependence

1、protege:5.50
downlaod:链接:https://pan.baidu.com/s/1efgEobplU0yO34eORgyo8w
提取码:lmv3
复制这段内容后打开百度网盘手机App,操作更方便哦
2、node.js:node-v12.16.1-x64
链接:https://pan.baidu.com/s/1r1YRgZ_3phSKFW8zGHJp1Q
提取码:895g
复制这段内容后打开百度网盘手机App,操作更方便哦
3、Visual Data Web
github:https://github.com/VisualDataWeb

protege生成owl文件:

导出save as:
的撒的撒在这里插入图片描述

部署Visual Data Web(1)- OWL2VOWL

Instructions for developing with OWL2VOWL

First steps

Maven is required to develop with OWL2VOWL and compile the code. It will load all dependencies automatically. If there occur any problems, refreshing the dependencies might solve them.
OWL2VOWL has been developed to work with Java 8, so JDK 8 has to be used for compiling.
** 首先在工程目录下mvn install **

Build the jar(maven 3 required)

To build the jar file, simply execute mvn package. The built jar only contains the compiled source code.
To build a jar file that can be executed standalone, you have to use the package option with parameter: mvn package -Denv=standalone or mvn package -P standalone-release. This will build the file …-shaded.jar containing all dependencies needed to be executable.
** 在生成的jar目录下:java -jar OWL2VOWL-0.3.7-shaded.jar -file ontologies/ABCTest.owl **

C:\633Temp\OWL2VOWL-master>java -jar OWL2VOWL-0.3.7-shaded.jar -file ontologies/ABCTest.owl

结果:

C:\633Temp\OWL2VOWL-master>java -jar OWL2VOWL-0.3.7-shaded.jar -file ontologies/ABCTest.owl
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
Converting Ontology:
  -> preLoadOntontology()15:34:48
  -> preParsing() 15:34:49
  -> parsing()15:34:49
  -> postParsing() 15:34:49
--- Finished --- 15:34:49
Cleaning up Memory for session of console converseion  << closed Session
Conversion Finished
-> USED MEMORY 20,846  ->    8,295

第一个ERROR不用管,不影响结果
得到的是JSON:
在这里插入图片描述

部署Visual Data Web(2)- WebVOWL

1、开发

1、Download and install Node.js
2、Open the terminal in the root directory
3、Run npm install to install the dependencies and build the project
4、Edit the code
5、Run npm run-script release to (re-)build all necessary files into the deploy directory

2、部署

Instead of the last step of the simple setup, install the npm package grunt-cli globally with
npm install grunt-cli -g. Now you can execute a few more advanced commands in the terminal:

  • grunt or grunt release builds the release files into the deploy directory
  • grunt package builds the development version
  • grunt webserver starts a local live-updating webserver with the current development version
  • grunt test starts the test runner
  • grunt zip builds the project and puts it into a zip file
    -在这里插入图片描述

(3、修改原项目中的JSON):

Visual Data Web(1)- OWL2VOWL 生成的JSON替换到原始项目中*\WebVOWL-master\src\app\data\foaf.json*(。。):
后续将移植到SmartCity

评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值