Presentation is loading. Please wait.

Presentation is loading. Please wait.

Eclipse for Jena & ARQ. File needed Jena-2.5.5 (http://jena.sourceforge.net/downloads.html)http://jena.sourceforge.net/downloads.html ARQ-2.2 (http://jena.sourceforge.net/ARQ/download.h.

Similar presentations


Presentation on theme: "Eclipse for Jena & ARQ. File needed Jena-2.5.5 (http://jena.sourceforge.net/downloads.html)http://jena.sourceforge.net/downloads.html ARQ-2.2 (http://jena.sourceforge.net/ARQ/download.h."— Presentation transcript:

1 Eclipse for Jena & ARQ

2 File needed Jena-2.5.5 (http://jena.sourceforge.net/downloads.html)http://jena.sourceforge.net/downloads.html ARQ-2.2 (http://jena.sourceforge.net/ARQ/download.h tml)http://jena.sourceforge.net/ARQ/download.h tml Eclipse (http://www.eclipse.org/downloads/)http://www.eclipse.org/downloads/

3 Part I. Create a java project

4 1. Open Eclipse and create a new project

5 2. Select java project

6 3. Define a project name then click finish

7 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

9 Part II. Add library files to project

10 8. Right click the project folder in Eclipse and select Properties

11 9. Go to Java Build Path> Libraries

12 10. Click Add JARs… and select all the jar file in lib folder

13 11. Click OK to finish adding jar library

14 Part III. Run Jena Program

15 12. Select a java program, right click, select Run As> Java Application

16 Part IV. Run ARQ Program

17 13. Create a package 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

18 15. Copy vc-db-1.rdf and arq file in the Tutorial folder to your project folder

19 16. Copy the files in lib folder under ARQ-2.2 folder to lib folder under your project older

20 17. Refresh the project folder in Eclipse and open sparql.java

21 18. Right click the sparql.java file and select Run Configurations…

22

23 19. Go to Arguments and type “--data vc-db-1.rdf --query arq\q1.rq” 20. Click Apply, Click Run

24 Bloggers.java

25 Move Bloggers.java into src folder, it will automatically set up a default package Move bloggers.rdf into src folder as well

26 Run Bloggers.java as run configurations Click Java Application, and select Bloggers Make sure in your Main, that you are in the right project and right main class Click run.

27 Now you can see the result in the Console window

28 Jena Example: Expert Search

29 Move expert search java files into src folder, it will automatically set up a default package Since your expert.owl is stored in mysql, there is no need to move expert.owl into the src folder

30 Run MainIndividual.java as run configurations Click Java Application, and select MainIndividual Make sure in your Main, that you are in the right project and right main class Click run.

31 Now you can see the result in the Console window

32 Jena Example: Family Tree

33 Move familytree java files into src folder, it will automatically set up a default package Move family.rdf, family1.nt and family2.nt into src folder as well

34 Run FamilyModel.java as run configurations Click Java Application, and select FamilyModel Make sure in your Main, that you are in the right project and right main class Click run.

35 Now you can see the result in the Console window

36 Data Search Tutorial

37 Move data files into project folder Move files in queries folder into project folder

38 Run Sparql.java as run configurations

39

40 Get results


Download ppt "Eclipse for Jena & ARQ. File needed Jena-2.5.5 (http://jena.sourceforge.net/downloads.html)http://jena.sourceforge.net/downloads.html ARQ-2.2 (http://jena.sourceforge.net/ARQ/download.h."

Similar presentations


Ads by Google