Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-owl] creating properties with many to many mapping

Joshua TAYLOR joshuaaaron at gmail.com
Fri Feb 24 08:23:46 PST 2012


On Fri, Feb 24, 2012 at 1:28 AM, prajna devi upadhyay <kirtu26 at gmail.com> wrote:
> i am facing a problem in creating ontology. i have two classes A and B. i
> have an object property p: A--> B(The domain of p is A and range is B). I
> have defined this property in protege. Now, i want to specify the property
> between the individuals of the class A and B. suppose a,b,c are individuals
> of class A and x,y,z are individuals of class B. i want to specify the
> object property p as p(a,b)={x,y}. the individuals a and b together should
> be linked to individuals x and y by the object property p. How can i do it
> in protege? it would be of great help if a solution is provided.

What exactly are you looking for?  In RDF (and OWL) an object property
connects two individuals, and an instance of such a relation is often
called a triple, since it can be viewed as a triple of (subject,
predicate, object).  So if a and b are individuals of class A, and x
and y are individuals of class B,  you could make the following
assertions:

a p x , a p y , b p x , b p y

or, in a slightly different syntax,

p(a,x) , p(a,y) , p(b,x) , p(b,y) .

But p is a relation.  It either holds between two individuals or it
doesn't.  So, saying p(a,b) = {x,y} doesn't make much sense.  What are
you trying to do?  (Expressing a function of two arguments is
something that you *can* do in OWL. It will be a little bit more
involved, but still fairly easy.)

//JT

-- 
Joshua Taylor, http://www.cs.rpi.edu/~tayloj/


More information about the protege-owl mailing list