Michel; I believe it is the case that you need to specify the full URI
of the datatype when using rdf:datatype.  See
http://www.w3.org/TR/rdf-syntax-grammar/#section-Syntax-datatyped-literals.

So you need to replace
   rdf:datatype="xsd:integer"
with
   rdf:datatype="http://www.w3.org/2001/XMLSchema#integer";

-- Scott

On May 24, 3:20 pm, "Bohms, H.M. (Michel)" <[email protected]>
wrote:
> Hi Scott,
>
> I installed latest 5beta:
> Same error:
>
> com.hp.hpl.jena.datatypes.DatatypeFormatException: Error converting typed 
> value to a number.
> Datatype is: xsd:integer which is not an xsd type.
> Java representation type is class 
> com.hp.hpl.jena.datatypes.BaseDatatype$TypedValue     at 
> com.hp.hpl.jena.rdf.model.impl.LiteralImpl.asNumber(LiteralImpl.java:277)    
> at com.hp.hpl.jena.rdf.model.impl.LiteralImpl.getInt(LiteralImpl.java:183)    
>   at 
> org.topbraid.owl.man.labels.ManchesterLabelsPlugin.appendInteger(ManchesterLabelsPlugin.java:335)
>        at 
> org.topbraid.owl.man.labels.ManchesterLabelsPlugin.appendCardinalityRestriction(ManchesterLabelsPlugin.java:242)
>         at 
> org.topbraid.owl.man.labels.ManchesterLabelsPlugin.access$4(ManchesterLabelsPlugin.java:236)
>     at 
> org.topbraid.owl.man.labels.ManchesterLabelsPlugin$11.appendLabel(ManchesterLabelsPlugin.java:182)
>       at 
> org.topbraid.owl.man.labels.ManchesterLabelsPlugin.appendLabelStatic(ManchesterLabelsPlugin.java:360)
>    at 
> org.topbraid.owl.man.labels.ManchesterLabelsPlugin.appendLabel(ManchesterLabelsPlugin.java:247)
>          at 
> org.topbraid.strings.LabelsPlugins.appendLabel(LabelsPlugins.java:52)        
> at org.topbraid.strings.Labels.append(Labels.java:144)
>
> So whats wrong with say:
>
>    xmlns:xsd="http://www.w3.org/2001/XMLSchema#";
> ....
>     <owl:Class rdf:ID="Building">
>         <rdfs:subClassOf>
>             <owl:Restriction>
>                 <owl:onProperty 
> rdf:resource="http://www.bimtoolset.org/ontologies/pmo.owl#hasPart_directly"/>
>                 <owl:onClass rdf:resource="#Room"/>
>                 <owl:minCardinality rdf:datatype="xsd:integer"
>                 >1</owl:minCardinality>
>             </owl:Restriction>
>         </rdfs:subClassOf>
>
> Must be something simple I guess?
> Thx Michel
>
> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Scott Henninger
> Sent: Monday, May 23, 2011 7:45 PM
> To: TopBraid Suite Users
> Subject: [topbraid-users] Re: syntax in form
>
> Same goes for max cardinality, e.g.:
>    owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
>
> -- Scott
>
> On May 23, 6:40 pm, Scott Henninger <[email protected]>
> wrote:
> > I'm not able to reproduce this in 3.4.0 or the current release, so
> > we'll need more detail on how this occurred.  Simulating your data, if
> > I use the Create restriction... wizard or type in "sensor:roomType
> > exactly 1" in an empty row of the rdfs:subClassOf property for
> > sensor:Room, I get the following source:
>
> > sensor:Room
> >       a       owl:Class ;
> >       rdfs:subClassOf pmo:Object ;
> >       rdfs:subClassOf
> >               [ a       owl:Restriction ;
> >                 owl:cardinality "1"^^xsd:nonNegativeInteger ;
> >                 owl:onProperty sensor:roomType
> >               ] .
>
> > Basically, I'm not able to reproduce your problem without further
> > description of how you entered the restriction.
>
> > -- Scott
>
> > On May 23, 1:56 pm, "Bohms, H.M. (Michel)" <[email protected]>
> > wrote:
>
> > > Hi Scot,
>
> > > It doesn't have them in my rdf-file/code.
> > > These appear in your source code tab! / turtle variant :) (I copied
> > > the above from there!)
>
> > > So I guess the issue is related to the error I sent a bit later about the 
> > > Manchester rendering...
>
> > > Ch Michel
>
> > > -----Original Message-----
> > > From: [email protected]
> > > [mailto:[email protected]] On Behalf Of Scott
> > > Henninger
> > > Sent: Monday, May 23, 2011 2:16 PM
> > > To: TopBraid Suite Users
> > > Subject: [topbraid-users] Re: syntax in form
>
> > > Michel; I think this is just a syntax error.  The xsd type shoulc not 
> > > have the angle brackets:
> > >   owl:maxCardinality "1"^^xsd:integer ;
>
> > > -- Scott
>
> > > On May 23, 12:24 pm, "Bohms, H.M. (Michel)" <[email protected]>
> > > wrote:
> > > > The following code:
>
> > > > sensor:Room
>
> > > > a owl:Class ;
>
> > > > rdfs:subClassOf pmo:Object ;
>
> > > > rdfs:subClassOf
>
> > > > [ a owl:Restriction ;
>
> > > > owl:maxCardinality "1"^^<xsd:integer> ;
>
> > > > owl:onProperty sensor:roomType
>
> > > > ] ;
>
> > > > seems to tranlsate in "form view" to:
>
> > > > sensor:roomType max <@390f62cd:1301c8e075b:-48c2>
>
> > > > is that ok?
>
> > > > thx Michel
>
> > > >         Dr. ir. H.M. (Michel) Böhms sr. Research Scientist
> > > > Building Innovation     T +31 (0)888663107 M +31 (0)630381220 E
> > > > [email protected]<blocked::mailto:[email protected]>
> > > > Location<http://www.tno.nl/locaties/dtm>
> > > > Disclaimer<http://www.tno.nl/emaildisclaimer>
>
> > > > [X]<http://www.tno.nl/>
>
> > > --
> > > You received this message because you are subscribed to the Google Group 
> > > "TopBraid Suite Users", the topics of which include TopBraid Composer, 
> > > TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
> > > 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
> > > athttp://groups.google.com/group/topbraid-users?hl=en
>
> --
> You received this message because you are subscribed to the Google Group 
> "TopBraid Suite Users", the topics of which include TopBraid Composer, 
> TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
> 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 
> athttp://groups.google.com/group/topbraid-users?hl=en

-- 
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
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-users?hl=en

Reply via email to