eclipse中导入jena

eclipse中导入jena:

Step 1 create a Java project

Eclipse organizes files into projects, so we need a project for this tutorial. Depending on the plugins installed, Eclipse may show a large number of different types of project. A plain Java project is fine for a basic Jena application. If you want to, for example, develop a Java servlet that uses Jena, then choose a suitable project type.

For clarity, I'm starting with an empty Eclipse workspace:

Screenshot 0:

I need to create a new Java project:

Screenshot 1:

Screenshot 2:

Next I need to set up the internal structure of the project. There are many schools of thought on this. I usually use a basic structure that is taken from Maven. Source code is in src/main, with Java code in src/main/java, ontologies insrc/main/owl, etc. Compiled Java class files go into target/classes. So when I create a new project, I edit the defaults to reflect these preferences. However, if the defaults suit you, or you don't know enough to care about those details yet, just accept the default settings. Alternatively, if your project or educational institution has suggested guidelines, then go with those.

Screenshot 3:

Screenshot 4:

Step 2: create the hello world class

Java code is stored in files that correspond to the declaration of a Java class, so I need to create a class for my

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值