To simplify creating this type of conversions, you may want to take a look at SPINMap. It is a new feature developed to make it easier to describe transformations between a spreadsheet any other other formats/ontologies and a target ontology: http://vimeo.com/22695742
Once the map is done, the repeated generation process can be easily automated using a SPARQLMotion web service as demoed in these new videos: http://www.topquadrant.com/resources/demos.html#SPARQLMotion. In fact, the script provided for download in the video description is generic and will work for any source, map and target. Irene -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Bohms, H.M. (Michel) Sent: Wednesday, May 25, 2011 7:23 AM To: [email protected] Subject: RE: [topbraid-users] Re: syntax in form :) Yes, I am convinced too so for new manual things I use ttl too now, Just: our current excel-to-pmo generator generates rdf/xml non-abbreviated.... Disclaimer: for some the xml-compliancy is 'the' or 'also' an important issue Cheers Michel -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Scott Henninger Sent: Wednesday, May 25, 2011 1:12 PM To: TopBraid Suite Users Subject: [topbraid-users] Re: syntax in form Just to periodically iterate my mantra, these are all complications of RDF/XML syntax that are completely avoided when using Turtle. -- Scott On May 25, 7:49 am, "Bohms, H.M. (Michel)" <[email protected]> wrote: > Hi Lee, Scott, > > This syntax (involving &) is only so incase of ENTITY specification (like in the primer). > But I think this is not the normal way, which might indeed be like Scott said (non-abbreviated.. > > I'll discuss with my technical collegue ... > I find it just strange that we did not notice these mistakes/tbc > errors earlier...since we generate this owl already quite a long time > like this :) (from structured Excel) > > Thx for your feedback! Michel > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Lee, Richard A. > [USA] > Sent: Wednesday, May 25, 2011 1:35 AM > To: [email protected] > Subject: RE: [topbraid-users] Re: syntax in form > > Um, assuming you've defined the ENTITY xsd appropriately, of course. > > -----Original Message----- > From: Lee, Richard A. [USA] > Sent: Tue, 24 May, 2011 19:34 > To: '[email protected]' > Subject: RE: [topbraid-users] Re: syntax in form > > Looks like a typo: xsd:integer needs to be &xsd;integer > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Scott Henninger > Sent: Tue, 24 May, 2011 10:26 > To: TopBraid Suite Users > Subject: [topbraid-users] Re: syntax in form > > Michel; I believe it is the case that you need to specify the full URI of the datatype when using rdf:datatype. Seehttp://www.w3.org/TR/rdf-syntax-grammar/#section-Syntax-datatyped-lit... . > > 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 > > :2 > > 77) at > > com.hp.hpl.jena.rdf.model.impl.LiteralImpl.getInt(LiteralImpl.java:1 > > 83 > > ) at > > org.topbraid.owl.man.labels.ManchesterLabelsPlugin.appendInteger(Man > > ch > > esterLabelsPlugin.java:335) at > > org.topbraid.owl.man.labels.ManchesterLabelsPlugin.appendCardinality > > Re > > striction(ManchesterLabelsPlugin.java:242) at > > org.topbraid.owl.man.labels.ManchesterLabelsPlugin.access$4(Manchest > > er > > LabelsPlugin.java:236) at > > org.topbraid.owl.man.labels.ManchesterLabelsPlugin$11.appendLabel(Ma > > nc > > hesterLabelsPlugin.java:182) at > > org.topbraid.owl.man.labels.ManchesterLabelsPlugin.appendLabelStatic > > (M > > anchesterLabelsPlugin.java:360) at > > org.topbraid.owl.man.labels.ManchesterLabelsPlugin.appendLabel(Manch > > es > > terLabelsPlugin.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_d > > ir > > ectly"/> > > <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 > 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 -- 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 -- 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
