当前位置:网站首页>Ontology Development Diary 03 - When debugging is in progress
Ontology Development Diary 03 - When debugging is in progress
2022-08-09 09:29:00 【"Cancelled"】
I am a chicken!Make do with it!How can it be!Next stage tomorrow!
Troubleshooting:
https://blog.csdn.net/akihiiiii/article/details/108740154
Code:https://blog.csdn.net/javafreely/article/details/8432522
Reference book:https://max.book118.com/html/2017/0717/122715588.shtm
1.Eclipse (download and installation process skipped)
The picture shows my installation version!
Java and Jena are already installed!
2. Open Eclipse and create a Java project, as shown in the figure: Here I take screenshots of all the files that have been built!
Build Java programs refer to this!
for troubleshootinghttps://blog.csdn.net/u013819513/article/details/79903106
Build it according to this!There will be many mistakes!Refer to thishttps://blog.csdn.net/akihiiiii/article/details/108740154
Here is a summary of my troubleshooting log!
(1) According to the steps, after the new Java project is completed, delete the first java file in the original file. Of course, there is a problem with the Eclipse version. After my software is newly created, it will automatically generate a module javaDocumentation!I removed it!Below are the files in my final package!
(2) You may need to put log4j under the jena path.properties is copied to the bin directory of the project jenaTest.
(3) Import the package in D:\apache-jena-4.2.0\apache-jena-4.2.0\lib, the package in lib-src Do not import!Secondly, import it into the Classpath, not the Modulepath above!
(4) At this time, use CMD's SPARQLwhen!Can't use it anymore!
I don't really want to figure this out!Anyway, no need!
3. Enter the code to verify!
Code reference: (I copied and pasted all of them! However, pay attention to some problems when importing packages!)
https://blog.csdn.net/javafreely/article/details/8432522
For example, for the first class Introduction in the above reference document, first create a new CLASS in the built package and name it Introduction.Then paste the code in the text!will report an error!Because the following files in the original text also exist in your files, but the path is wrong!
import com.span>hp.hpl.jena.rdf. model.Model;import com.hp.hpl.jena.rdf.model.ModelFactory;import com.hp.hpl.jena.rdf.model.Resource;import com.hp.hpl.jena.vocabulary.span>VCARD;
(1) Delete the redundant improt, then, place the mouse on the position marked by the red line in the code, then the corresponding import prompt will appear, select the one that contains jena, don't choose anything else!
All of my imports here, all selected are the prefix of org.apache.jena
!(Should it be?? A jena should be right anyway!)
(2) Then, put the code in https://blog.csdn.net/javafreely/article/details/8432522
step by step, first create a new CLASS with the same name and then paste the code into it!Then import the corresponding correct package!Then run as can!
边栏推荐
- QT sets the icon of the exe executable
- web测试之功能测试常用的方法有哪几种?有什么要点要注意?
- MySQL事件_单次事件_定时循环事件
- Another implementation of lateral view explode
- 接口测试的基础流程和用例设计方法你知道吗?
- "The camera can't be used" + win8.1 + DELL + external camera + USB drive-free solution
- 中国打造国产“谷歌地球”清晰度吓人
- 3.练习Thread
- makefile学习-解决目标文件输出路径问题
- Global 19 Google Satellite Map Free View Download
猜你喜欢
随机推荐
本体开发日记01-Jena配置环境变量
银联最新测试工程师笔试题目,你能得多少分?
选择黑盒测试用例设计方法的综合策略方案总结
WAVE SUMMIT 2022深度学习开发者峰会
3.练习Thread
手机APP测试流程规范和方法你知道多少?
【百日行动】炎炎夏日安全不松懈 消防培训“加满”安全知识“油”
本体开发日记05-努力理解SWRL(上)
MySQL Leak Detection and Filling (2) Sorting and Retrieval, Filtering Data, Fuzzy Query, Regular Expression
软件测试外包公司怎么样?有什么好处和坏处?为什么没人去?
这12个GIS软件一个比一个好用
China to create a domestic "Google Earth" clarity scary
字符串
Web请求原理
性能测试报告包括哪些内容?模板范文哪里找?看这里
使用Protege4和CO-ODE工具构建OWL本体的实用指南-1.3版本(4.Building An OWL Ontology)
GBase数据库产生迁移工具假死的原因是什么?
本体开发日记05-努力理解SWRL(Usage Suggestions)
Redis high availability
MySQL Checking and Filling Leaks (5) Unfamiliar Knowledge Points