200 likes | 356 Views
Eclipse for Jena & ARQ. File needed. Jena-2.5.5 ( http://jena.sourceforge.net/downloads.html ) ARQ-2.2 ( http://jena.sourceforge.net/ARQ/download.html ) Eclipse ( http://www.eclipse.org/downloads/ ). Part I. Create a java project. 1. Open Eclipse and create a new project.
E N D
File needed • Jena-2.5.5(http://jena.sourceforge.net/downloads.html) • ARQ-2.2 (http://jena.sourceforge.net/ARQ/download.html) • Eclipse (http://www.eclipse.org/downloads/)
5. Copy lib folder in Jena-2.5.5 to the project folder (the default path is c:\users\{yourname}\workspace\{project name}) 6. Copy jena folder in Tutorial folder to src folder under your project folder 7. Right click the project folder in Eclipse and refresh it
8. Right click the project folder in Eclipse and select Properties
10. Click Add JARs… and select all the jar file in lib folder
12. Select a java program, right click, select Run As> Java Application
13. Create a folder named arq under folder src of your project folder 14. Copy sparql.java in ARQ-2.2\src\arq folder to the folder you’ve just created 15. Copy vc-db-1.rdf and arq file in the Tutorial folder to your project folder 16. Copy the files in lib folder under ARQ-2.2 folder to lib folder under your project older 17. Refresh the project folder in Eclipse and open sparql.java
18. Right click the sparql.java file and select Run Configurations…
19. Go to Arguments and type “--data vc-db-1.rdf --query arq\q1.rq” 20. Click Apply, Click Run