Connect to OWL File using Jena API , Java Full Example HD with Code Source

Connect to Web Ontology Language File using Jena API , Java - Full Project



Display all information from an OWL file using OpeOWL file 

two examples 

1 - Using two comobox to get result as Jena resultSet and get display it a in textarea,

2 - get Result as string and display it in a Combobox list 

--- 


all you need to do is copy paste file projectOWL.owl into c:\  or make necessary changes in OpenOWL.owl file 

VIDEO








any question you can comment below 


DownLoad full Project :  Code Source



All codes and Videos are Mine and you free to use it and share it anywhere
You need support juste leave a comment below




Share on Google Plus

About Ali Saidi

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment

2 Comments :

  1. Why this (below) not working

    String queryString = "PREFIX rdf:\n" +
    "prefix rustonto:\n" +
    "SELECT DISTINCT (str(?Object1) as ?X) (str(?Object3) as ?Y) \n" +
    " WHERE { \n" +
    " ?Object1 rustonto:hasIdCountry ?Object2.\n" +
    " ?Object1 rdf:type ?Object3.\n" +
    " }";
    System.out.println(queryString);
    String s = OpenOWL.GetResultAsString(queryString); // call method GetResultAsString from OpenOWL class
    // test ;)
    System.out.println(s);

    RépondreSupprimer

About Me

authorHello, my name is Ali Saidi. I'm a 30 years old self-employed.
Learn More →