On Nov 12, 2009, at 6:07 AM, Kalika Patil wrote:
> Thanks Andrew. I have already achieved it using the same property
> multiple times. Wantedto know if we can do it differently.
When you want to consider the values of the property as being a "set"
of values, then that is exactly the proper modeling construct to use.
This is particularly the case for the example you gave of wanting to
retrieve using any one of the values. So they really are independent
values
> In addition, please have a look at queries 2 and 3.
>
> B] Is there a way to use the same dataproperty across entities but
> have separate ranges for them.
> i.e. both entity P and entity Q have the same dataproperty 'list'.
> I would like to have different ranges for P and Q.
> 'list' range for P = "A", "B", "C"
> 'list' range for Q = "D", "B", "E"
>
> When I try doing the above, I am not able to have separate ranges
> for the 2 entities. They get shared.
That is because you are probably trying to put the range on the
property itself. Properties have an independent existence, and any
range or domain information you attach to the property is global. It
affects all uses of that property.
If you want to restrict the values for a property just for a class
(and its subclasses), then you need to attach that restriction to the
class definition.
You can do this with an allValuesFrom or SomeValueFrom restriction
and use an enumerated set as the (anonymous) class definition that is
used in the restriction. For example:
P subclassOf ( key allValuesFrom {"A", "B", "C"} )
Q subclassOf ( key allValuesFrom {"D", "B", "E"} )
> C] Is there any support for wild character search in Protege or in
> OWL API.
Yes. At least for names. It is used in the Protege interface to
search for values. It works like file name wildcards.
>
> - Kalika
>
> From: "Pitonyak, Andrew D" <
[hidden email]>
> To: User support for the Protege-OWL editor <
[hidden email]
> >
> Sent: Wed, 11 November, 2009 7:34:42 PM
> Subject: Re: [protege-owl] datatype property value - like an array
>
> You can use the same property multiple times, or you can use a list
> in the range.
>
> From:
[hidden email] [mailto:
[hidden email]
> ] On Behalf Of Kalika Patil
> Sent: Wednesday, November 11, 2009 1:34 AM
> To:
[hidden email]
> Subject: [protege-owl] datatype property value - like an array
>
> Hi,
> A]
> Using protege 4, I would like to add a dataproperty say. 'keys' to
> the individual X whose value can be like java array structure.
> i.e. multiple strings in the same data property.
> Then I would like to search on the 'keys' with any of the value in
> the array.
>
> example:
> 'keys' should contain array of {"A", "B", "C"}
>
> when I query - keys value "B", it should return me the instance X.
>
> I am able to achieve it using multiple dataproperties assertions
> with the same name 'keys'. i.e keys = "A", keys = "B" and so on.
> But I was wondering if there is a better way to do it.
>
> B] Is there a way to use the same dataproperty across entities but
> have separate ranges for them.
> i.e. both entity P and entity Q have the same dataproperty 'list'.
> I would like to have different ranges for P and Q.
> 'list' range for P = "A", "B", "C"
> 'list' range for Q = "D", "B", "E"
>
> When I try doing the above, I am not able to have separate ranges
> for the 2 entities. They get shared.
>
> C] Is there any support for wild character search in Protege or in
> OWL API.
>
> Thanks,
> Kalika
>
>
> The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
>
> The INTERNET now has a personality. YOURS! See your Yahoo!
> Homepage._______________________________________________
> protege-owl mailing list
>
[hidden email]
>
https://mailman.stanford.edu/mailman/listinfo/protege-owl>
> Instructions for unsubscribing:
http://protege.stanford.edu/doc/faq.html#01a.03_______________________________________________
protege-owl mailing list
[hidden email]
https://mailman.stanford.edu/mailman/listinfo/protege-owlInstructions for unsubscribing:
http://protege.stanford.edu/doc/faq.html#01a.03