You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by aarthi <aa...@gmail.com> on 2013/04/24 14:32:29 UTC

mapping a class and a property

hi i have two ontologies like the following structure


ontology 1
                 Ontology 2


    Class: Home
 Class: Home
       Sub-Class(home):Person
Sub-Class(home): Person
           Sub-Class(person): Gender
  Property(person):Gender


i need to say that the class gender "is equivalent to" the property
gender, by creating a property and map that two... how to use that in
jena. Any one help me...

Re: Re: mapping a class and a property

Posted by Chris Dollin <ch...@epimorphics.com>.
On Wednesday, April 24, 2013 06:52:56 AM aarthi wrote:
> i need to map those two.. so how can i do that?

What do you mean by "map" in "map these two"? Be specific.

Chris

-- 
"I know it was late, but Mountjoy never bothers,                /Archer's Goon/
 so long as it's the full two thousand words."

Epimorphics Ltd, http://www.epimorphics.com
Registered address: Court Lodge, 105 High Street, Portishead, Bristol BS20 6PT
Epimorphics Ltd. is a limited company registered in England (number 7016688)


Re: mapping a class and a property

Posted by aarthi <aa...@gmail.com>.
i need to map those two.. so how can i do that?

On 4/24/13, Chris Dollin <ch...@epimorphics.com> wrote:
> On Wednesday, April 24, 2013 05:32:29 AM aarthi wrote:
>> hi i have two ontologies like the following structure
>>
>> ontology 1
>>                  Ontology 2
>>
>>     Class: Home
>>  Class: Home
>>        Sub-Class(home):Person
>> Sub-Class(home): Person
>>            Sub-Class(person): Gender
>>   Property(person):Gender
>>
>>
>> i need to say that the class gender "is equivalent to" the property
>> gender,
>
> What do you mean when you say that a class "is equivalent to" a
> property?
>
> (RDF and OWL have well-specified terms meanings. You should be able
> to phrase what you mean in those same terms -- if you can't, you're
> not likely to be able to write code that produces sensible answers.)
>
> Chris
>
> --
> "It does not need to take events in their correct order."
> /Hexwood/
>
> Epimorphics Ltd, http://www.epimorphics.com
> Registered address: Court Lodge, 105 High Street, Portishead, Bristol BS20
> 6PT
> Epimorphics Ltd. is a limited company registered in England (number
> 7016688)
>
>

Re: mapping a class and a property

Posted by Chris Dollin <ch...@epimorphics.com>.
On Wednesday, April 24, 2013 05:32:29 AM aarthi wrote:
> hi i have two ontologies like the following structure
>  
> ontology 1
>                  Ontology 2
>  
>     Class: Home
>  Class: Home
>        Sub-Class(home):Person
> Sub-Class(home): Person
>            Sub-Class(person): Gender
>   Property(person):Gender
> 
> 
> i need to say that the class gender "is equivalent to" the property
> gender,

What do you mean when you say that a class "is equivalent to" a
property? 

(RDF and OWL have well-specified terms meanings. You should be able
to phrase what you mean in those same terms -- if you can't, you're
not likely to be able to write code that produces sensible answers.)

Chris

-- 
"It does not need to take events in their correct order."             /Hexwood/

Epimorphics Ltd, http://www.epimorphics.com
Registered address: Court Lodge, 105 High Street, Portishead, Bristol BS20 6PT
Epimorphics Ltd. is a limited company registered in England (number 7016688)


Re: Re: Re: Re: Re: mapping a class and a property

Posted by Chris Dollin <ch...@epimorphics.com>.
[Hmm, managed to lose users@jena. Context below main message.
 users@jena restored.]

On Thursday, April 25, 2013 01:42:26 AM aarthi wrote:
> Ontology 1
>            Ontology2
>  
> class: Employee
>  Class:Employee
> 
>     sub_class:  Gender
>             Property: Gender
> 
> in the above two ontology, we have Gender as a class in one ontology  and
> as a property in another ontology.
> 
> but both the class and the property are going to do the similar thing, that
> is it will say about the employee gender,
> 
>  so i need to say that gender Class and Gender Property are similar.

So this notion of "similar" is completely informal and not some use
of OWL restrictions and sub/super-classes?

Are you really sure that's what's intended?

[Because if it were, you could just invent a new predicate

    http://some.suitable.domain/some/path/to#similar

 and then relate the two different Genders with it. Of course it
 wouldn't be OWL DL, but you might not care. Or there might
 be a suitable existing predicate for "similar" -- maybe someone
 knows one. But I suspect you have more context for this
 problem than you've told us about ...]

Chris

> On Thu, Apr 25, 2013 at 1:41 AM, Chris Dollin
> <ch...@epimorphics.com>wrote:
> 
> > On Thursday, April 25, 2013 01:24:43 AM you wrote:
> > > i need to map two ontologies...     for that if two classes are similar i
> > > can use
> > > model.add(class1, OWL.equivalentClass, class2)
> > >
> > >
> > >
> > > if two properties are are similar i can use
> > > model.add(property1, OWL.equivalentProperty, property2)
> > >
> > > if a property and a class are similar, how to map that.?
> >
> > (a) What does it mean to say "a property and a class are similar"? Be
> > specific.
> >
> > (b) What options do you have for "mapping"? Be specific.
> >
> > If there's an option in (b) that fits (a) for the classes/properties you're
> > interested in, use that. Otherwise you will be able to explain what it
> > is you can't do and why.
> >
> > Chris
> >
> > --
> > "You're down as expendable. You don't get a weapon."    /Dark Lord of
> > Derkholm/
> >
> > Epimorphics Ltd, http://www.epimorphics.com
> > Registered address: Court Lodge, 105 High Street, Portishead, Bristol BS20
> > 6PT
> > Epimorphics Ltd. is a limited company registered in England (number
> > 7016688)
> >
> >
-- 
RIP Diana Wynne Jones, 1934 - 2011.

Epimorphics Ltd, http://www.epimorphics.com
Registered address: Court Lodge, 105 High Street, Portishead, Bristol BS20 6PT
Epimorphics Ltd. is a limited company registered in England (number 7016688)