Thx. 
We have to get used to owl2 a bit :)

We changed to:

 <rdfs:DataType
rdf:about="http://www.bimtoolset.org/ontologies/vabi/datatypes.owl#Envir
onmentType">
    <rdfs:subClassOf
rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
    <rdfs:subClassOf>
      <rdfs:Datatype>
        <owl:onDatatype
rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
        <owl:oneOf rdf:parseType="Resource">
          <rdf:rest rdf:parseType="Resource">
            <rdf:rest rdf:parseType="Resource">
              <rdf:rest
rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
              <rdf:first
rdf:datatype="http://www.w3.org/2001/XMLSchema#string";
              >city</rdf:first>
            </rdf:rest>
            <rdf:first
rdf:datatype="http://www.w3.org/2001/XMLSchema#string";
            >rough</rdf:first>
          </rdf:rest>
          <rdf:first
rdf:datatype="http://www.w3.org/2001/XMLSchema#string";
          >open</rdf:first>
        </owl:oneOf>
      </rdfs:Datatype>
    </rdfs:subClassOf>
  </rdfs:DataType>

And this works fine now. 

Cheers, Michel


 
 
 

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Holger
Knublauch
Sent: maandag 16 november 2009 18:07
To: [email protected]
Cc: Bonsma, P. (Peter)
Subject: [tbc-users] Re: Error on dataranges in data types

Hi Michel,

this is not a well-formed OWL 2 datatype definition. How did you enter
it? For example, owl:DataRange is no longer used by OWL 2. I think what
you wanted to say is the following (in N3/Turtle):


<http://www.bimtoolset.org/ontologies/vabi/datatypes.owl#EnvironmentType
>
      a       rdfs:Datatype ;
      rdfs:subClassOf xsd:string ;
      owl:equivalentClass
              [ a       rdfs:Datatype ;
                owl:oneOf ("city"^^xsd:string "open"^^xsd:string
"rough"^^xsd:string)
              ] .


Simply enter {"city" , "open", "rough"} under the owl:equivalentClass
field on the form of the datatype. You may need to make this property
visible on the form first.

Regards,
Holger

On Nov 16, 2009, at 5:34 AM, Bohms, H.M. (Michel) wrote:



        Hi Holger, Scott,
        
        We get an error in the forms tab:
        
        "Failed to render class expression via OWL API"
        
        On the following code:
        <rdfs:DataType
        
rdf:about="http://www.bimtoolset.org/ontologies/vabi/datatypes.owl#Envir
        onmentType">
           <rdfs:subClassOf
        rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
           <rdfs:subClassOf>
             <rdfs:Datatype>
               <owl:onDatatype
        rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
               <owl:withRestrictions rdf:parseType="Collection">
                 <owl:DataRange>
                   <owl:oneOf rdf:parseType="Resource">
                     <rdf:rest rdf:parseType="Resource">
                       <rdf:rest rdf:parseType="Resource">
                         <rdf:rest
        rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"/>
                         <rdf:first
        rdf:datatype="http://www.w3.org/2001/XMLSchema#string";
        

                city</rdf:first>
                

                       </rdf:rest>
                       <rdf:first
        rdf:datatype="http://www.w3.org/2001/XMLSchema#string";
        

                rough</rdf:first>
                

                     </rdf:rest>
                     <rdf:first
        rdf:datatype="http://www.w3.org/2001/XMLSchema#string";
        

                open</rdf:first>
                

                   </owl:oneOf>
                 </owl:DataRange>
               </owl:withRestrictions>
             </rdfs:Datatype>
           </rdfs:subClassOf>
         </rdfs:DataType>
        
        Any help highly appreciated,
        Michel
        
        
        This e-mail and its contents are subject to the DISCLAIMER at
http://www.tno.nl/disclaimer/email.html
        
        
        
        
        





This e-mail and its contents are subject to the DISCLAIMER at 
http://www.tno.nl/disclaimer/email.html


--~--~---------~--~----~------------~-------~--~----~
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