Re: [3.0.1] listSuperClasses() does not traverse?

2017-10-26 Thread George News
Hi, I prefer not to use another library and use SPARQL directly, which at the end is more scalable and less prone to changes. Model schema = FileManager.get().loadModel("file:myontology.owl"); Model data = FileManager.get() .loadModel("file:mydata.jsonld"); String myClass =

Re: [3.0.1] listSuperClasses() does not traverse?

2017-10-25 Thread Martynas Jusevičius
I ended up using JenaUtil.getAllSuperClasses() from SPINRDF: https://github.com/spinrdf/spinrdf/blob/a7fc9a1ca7badecb9a8d858f7a8a33bb106e629f/src/main/java/org/spinrdf/util/JenaUtil.java#L401 On Wed, Oct 25, 2017 at 1:22 PM, Martynas Jusevičius wrote: > Dave, > > I

Re: [3.0.1] listSuperClasses() does not traverse?

2017-10-25 Thread Dave Reynolds
On 25/10/17 11:10, George News wrote: On 2017-10-25 11:54, Dave Reynolds wrote: Hi Martynas, On 25/10/17 10:33, Martynas Jusevičius wrote: Thanks Dave. We are materializing inferences during ontology initialization to avoid using reasoner subsequently (as it impacts performance). Makes

Re: [3.0.1] listSuperClasses() does not traverse?

2017-10-25 Thread Dave Reynolds
Hi Martynas, On 25/10/17 10:33, Martynas Jusevičius wrote: Thanks Dave. We are materializing inferences during ontology initialization to avoid using reasoner subsequently (as it impacts performance). Makes sense. So in that case I need to traverse the chain myself, correct? Not if

Re: [3.0.1] listSuperClasses() does not traverse?

2017-10-25 Thread Martynas Jusevičius
Thanks Dave. We are materializing inferences during ontology initialization to avoid using reasoner subsequently (as it impacts performance). So in that case I need to traverse the chain myself, correct? On Wed, Oct 25, 2017 at 9:33 AM, Dave Reynolds wrote: > On

Re: [3.0.1] listSuperClasses() does not traverse?

2017-10-25 Thread Dave Reynolds
On 24/10/17 23:51, Martynas Jusevičius wrote: Hi, I thought I understood how OntClass.listSuperClasses() works, but maybe I don't. I have such a class structure in my ontology (superclass is at the top): 3. https://www.w3.org/ns/ldt/document-hierarchy/domain#Item 2.

[3.0.1] listSuperClasses() does not traverse?

2017-10-24 Thread Martynas Jusevičius
Hi, I thought I understood how OntClass.listSuperClasses() works, but maybe I don't. I have such a class structure in my ontology (superclass is at the top): 3. https://www.w3.org/ns/ldt/document-hierarchy/domain#Item 2. http://atomgraph.com/ns/platform/domain#Item 1.