This was actually the way that caused a non-red box but also the wrong
owl code...

gui box: ["CURVE" "AREA"]

source code:
  <owl:DataRange rdf:ID="ProfileTypeEnum">
    <owl11:onDataRange rdf:resource="http://www.w3.org/2001/
XMLSchema#string"/>
    <owl:oneOf rdf:parseType="Resource">
      <rdf:first rdf:datatype="http://www.w3.org/2001/
XMLSchema#string"
      >CURVE" "AREA</rdf:first>
      <rdf:rest rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-
ns#nil"/>
    </owl:oneOf>
  </owl:DataRange>

in other words: a list with one wrong item...

Michel


On 9 mrt, 22:24, Holger Knublauch <[email protected]> wrote:
> Ok, this case requires a different syntax, because the values of  
> owl:oneOf are rdf:Lists. Use the notation
>
> ["A" "B" "C"]
>
> for those direct values (and any rdf:List) on the form.
>
> Holger
>
> On Mar 9, 2009, at 2:18 PM, Michel Bohms wrote:
>
>
>
>
>
> > ok, clear, but...
>
> > what do I fill in the GUI field which makes the box not red AND
> > results in the right OWL code?
> > (more precise: in the oneOf filed in the resource form for a DataRange
> > instance (in my example: ProfileTypeEnum). modelling a user-defined
> > enumeration type)
>
> > thx again, Michel
>
> > On 9 mrt, 21:18, Holger Knublauch <[email protected]> wrote:
> >> Hi Michel,
>
> >> there are two kinds of enumerations in OWL (both using owl:oneOf),  
> >> and
> >> the help page "How to... Create an enumeration" only talks about one
> >> of them.
>
> >> 1) Enumerated classes are defined as enumeration of RDF resources -
> >> these can be created with the provided wizard and using { ... }
> >> notation.
>
> >> 2) Enumerated datatypes are defined by typing in something like
>
> >> rdfs:range:   owl:oneOf{"A" "B" "C"}
>
> >> The latter is probably what you are after. You can also use the same
> >> construct in owl:allValuesFrom restrictions.
>
> >> I will extend the help page to make this clearer.
>
> >> Holger
>
> >> On Mar 9, 2009, at 12:51 PM, Michel Bohms wrote:
>
> >>> Can someone explain me how to define enumerated values in TBC?
>
> >>> In the manual it says:
>
> >>> Enumerated classes
> >>> Enumerated classes using the owl:oneOf operator can be entered by a
> >>> list of values between curly brackets. For example,
> >>> {Cairns Sydney Canberra}
>
> >>> defines the class consisting of only the three individual cities.
>
> >>> when I do this:
>
> >>> fill in your GUI owl:One ofbox: {CURVE AREA}, the box stays red.
>
> >>> idem for a variant: {"CURVE" "AREA"}
>
> >>> I can get rid of the red box by:
> >>> ["CURVE" "AREA"]
>
> >>> but this is not according to the manual and the owl code is wrong...
> >>> (the string CURVE" "AREA becomes one item...)
>
> >>> thx Michel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TopBraid Composer Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/topbraid-composer-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to