Re: Modeling relationships of classes with ObjectProperty

2013-03-06 Thread Bojan Milić
Hi Dave, thanks a lot, your queries are working perfectly - now that I know the principle I will try to implement other queries. Best regards, Bojan On Wed, Mar 6, 2013 at 9:57 AM, Dave Reynolds wrote: > Hi Bojan, > > > On 06/03/13 06:30, Bojan Milić wrote: > > What I would like to achieve is

Re: Modeling relationships of classes with ObjectProperty

2013-03-06 Thread Dave Reynolds
Hi Bojan, On 06/03/13 06:30, Bojan Milić wrote: What I would like to achieve is to build some kind of document library, where some documents use and create other documents. OK, so in fact it seems like you mostly want to create and query data. That's fine, that's what many people use Jena fo

Modeling relationships of classes with ObjectProperty

2013-03-05 Thread Bojan Milić
Hey Dave, tnx for your reply. Yes I did describe my case poorly. I am not even sure if I need to use domain and range property, I am new to semantic and Jena. What I would like to achieve is to build some kind of document library, where some documents use and create other documents. Thanks to feed

Re: Modeling relationships of classes with ObjectProperty

2013-03-05 Thread Dave Reynolds
I don't follow what you are trying to achieve but it sounds like at least part of it is to be able to state that the domain or range of a property is a union of classes, rather than a single class. At least that's what your OWL API example seems to do. This is perfectly possible in Jena. For e

Re: Modeling relationships of classes with ObjectProperty

2013-03-04 Thread Bojan Milić
Hi Joshua, thank you for your answer, it helps a lot. I couldn't attach my file when I posted this issue to jena.apache.org, so I am attaching one now - there is a desired functionality of what I would like to achieve. OK I understand now, that you cannot add something as a domain property because

Re: Modeling relationships of classes with ObjectProperty

2013-03-04 Thread Joshua TAYLOR
On Mon, Mar 4, 2013 at 5:25 AM, Bojan Milić wrote: > Dear friends, > > I am developing ontology for supply chain management and I am > encountering some problems regarding Jena API. In my ontology I have > following structure: > > classA > classA1 > classA2 > classA3 > classA4 > cl

Modeling relationships of classes with ObjectProperty

2013-03-04 Thread Bojan Milić
Dear friends, I am developing ontology for supply chain management and I am encountering some problems regarding Jena API. In my ontology I have following structure: classA classA1 classA2 classA3 classA4 classB classC classD Classes are representing some documents for example (c