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] Expressing value range for data type property

Matthew Horridge matthew.horridge at cs.man.ac.uk
Tue Mar 10 03:43:09 PDT 2009


I don't think the RDF/XML below is well formed (you can't have  
minCardinality and maxCardinality on the same node) - in any case, it  
doesn't look like this is what Babar wants...

Babar, you need a datatype restriction, and this can be done with OWL  
2 (i.e. Protege 4)

Cheers,

Matthew

On 10 Mar 2009, at 10:23, 侯滇滇 wrote:

> In protege or Protege API?
> Restriction is one for a Class .
> <owl:Class rdf:ID="ClassA">
>    <owl:Restricton>
>       <owl:onProperty rdf:resource="#hasPositionX"/>
>       <owl:minCardinality rdf:datatype="&xsd;float">
>           0
>       </owl:minCardinality>
>       <owl:maxCardinality rdf:datatype="&xsd;float">
>           10
>       </owl:maxCardinality>
>    <owl:Restriction>
> </owl:Class >
> and u can read http://protege.stanford.edu/plugins/owl/api/guide.html
> to create a Restriction Class.
> It is easy that you just create it in protege .
> Hope can help you.
> 在2009-03-10,"babar shahzad" <babarathotmail at yahoo.com> 写道:
> >
> >
> >I have a datatype property 'hasPositionX', whose domain is 'classA'  
> & range is 'float'.
> >I have to create a restriction like, " classA hasPositionX >= 0 or  
> <= 10 " ......( i.e. any value from 0 to 10 )
> >
> >How can I write this restriction in p3.4.
> >
> >Thank you in advance for any kind of help.
> >
> >
> >
> >
> >Babar Shahzad Chaudary,
> >+358408532112
> >Deptt of Information Processing
> >Science,
> >University of Oulu, Finland.
> >
> >
> >
> >
> >_______________________________________________
> >protege-owl mailing list
> >protege-owl at lists.stanford.edu
> >https://mailman.stanford.edu/mailman/listinfo/protege-owl
> >
> >Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
>
>
> 网易邮箱,中国第一大电子邮件服务商  
> _______________________________________________
> protege-owl mailing list
> protege-owl at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/protege-owl
>
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03




More information about the protege-owl mailing list