Jena:A free and open source Java framework for building Semantic Web and Linked Data applications.
:)
1.下載 jena例子和源碼
源碼(可不下)
https://github.com/apache/jena
安裝前置JDK 1.8 (非JRE)
MVN用於自動獲取JENA依賴的lib。 通過他下載example中的lib
2.1 (這里寫你自己的路徑,CMD中運行)
set PATH="F:\2_Code\mvn\apache-maven-3.5.0\bin";%PATH%
2.2 Make sure JAVA_HOME is set to the location of your JDK,如果不是,可以仿照2.1設置path ,:D
2.3 Run "
mvn --version" to verify that it is correctly installed.
2.4 cd jena-example 運行命令 “
package mvn package”
2.5 配置成eclipse格式 “
mvn eclipse:eclipse”
【re-generate Eclipse .project and .classpath files automatically from your pom.xml file.】
2.6 自動拷貝進eclipse相關文件夾 mvn dependency:copy-dependencies
【copy all the *.jar files in the target/dependency/ directory.】
3.在eclipse中導入該項目。直接run即可。
PS:在eclipse中配置mvn個人感覺並不是很好用。
