Dear Scott and Irene, Thank you for all of your help. I got TBC to allow me to paste things in after all. After my bought of frustration, I turned inward and noticed that I was actually not using the macro the same way as I had done before. So I re-traced my steps and dotted all of my t's and eye's, and it works great! I also juiced my RAM a bit.. but it was probably human error.
I learned a lot about the alternatives. Thanks for the help. I can paste things into "thing" again!!. Best, Leonard On Mon, Mar 28, 2011 at 6:55 PM, Scott Henninger <[email protected] > wrote: > Leonard; Adding restrictions can be done automatically in TBS, and > that may help with spending a lot of time re-arranging the > spreadsheet. Some other things that may help: > > << > Like I said, Irene's solution does not work when one wants to put > stuff in as subclasses of several different classes. I tried narrowing > done the place at which I did the import and none of it worked, though > it always worked in Thing, at least until I got lots of stuff in it. > >> > > It should work fine. Just make sure that the definition of the class > you are substituting the text for is the same. Multiple subClassOf > definitions will be handled properly. > > << > I have 12gigs of Ram and I allocated more of it to TBC as was > suggested a while ago. In fact I have the appropriate number well over > 2048..And it still bogs down. Should I give it some more? > >> > > I'm guessing that there are other issues, such as unresolved > references, that is slowing it down. 2Gb of memory should be enough > for 2000 classes with restrictions on each. > > << > I don't see how this can be done automatically with TBC. Basically I > have spreadsheets with class names in the first column and features of > the members of the class in the other columns. So I want to connect > the class to the properties of the members of the class. There is a > Spraql means of getting this done, but It would take several steps for > each property. > >> > > This is done quite often, and it just takes one query. A skeleton > example for a owl:hasValue restriction: > > CONSTRUCT > { ?cls rdfs:subClassOf _:b0 . > _:b0 a owl:Restriction ; > owl:hasValue ?valueType ; > owl:onProperty ?restrProp . > } > WHERE > { ?row :clsDefColumn ?cls ; #?cls := Man in example > :rPropTypeColumn ?rProp ; #?rProp := :hasGenus in example > :rValueType ?valueType . #??valueType := Mammal in > example > } > > << > I would not be using Sparql to manipulate class definitons in terms > of restrictions on poperties, as one cannot get that from a > spreadsheet imported into TBC. I would have to find all of the triples > that assert that a class has a property, construct a triple for each > such that the class is now a subclass or an equivalent class of a > restriction on a property, insert the new triple and delete the old > triple. > >> > > This is a normal use case for ApplyConstruct in SPARQLMotion in that > it can be used to create a set of triples from the graph pattern and > output only the newly created triples (there is a nice example in the > tutorial). The query would be similar to the above, except that the > WHERE clause would find all of the properties you wanted to perform > the transformation on. > > -- Scott > > On Mar 28, 3:55 pm, Leonard Jacuzzo <[email protected]> wrote: > > Thanks Irene, > > I tried that... It did not work.. it just made everything a subclass of > what > > ever class I choose. Did that work for you? > > The problem is that I have over 2000 classes each of which gets a new > > subclass....so I cannot afford the food it would take to do that manually > > for each one. > > BTW: My example was contrived for simplicity and confidentiality. Imagine > > that I have 1000 different "blood sugers" that are inspec or out of spec > and > > I want each to get into the correct subclass.. > > > > I really think that the issue arises because of the amount of info I add > to > > TBC. The more that one puts in, the worse the program works. > > Maybe I will test this theory. > > > > Thanks for all of your help. > > Best, > > Leonard > > > > On Mon, Mar 28, 2011 at 4:40 PM, Irene Polikoff <[email protected] > >wrote: > > > > > It may be that the difference between working previously and > not-working > > > now > > > has to do with where Leonard did the editing. > > > > > Changing the source code for owl:Thing would result in a problem, but > if > > > one > > > were to select Blood_Sugar_ExHigh class and change the source code for > it, > > > the sub class statement would not disappear. > > > > > Irene Polikoff > > > > > -----Original Message----- > > > From: [email protected] > > > [mailto:[email protected]] On Behalf Of Scott Henninger > > > Sent: Monday, March 28, 2011 4:31 PM > > > To: TopBraid Suite Users > > > Subject: [topbraid-users] Re: using source code in TBC > > > > > Leonard, first, to answer the question on whether this use case is a > > > supported, the answer is "no". TopBraid Suite, including TopBraid > > > Composer has a number of mechanisms for importing and including > > > existing RDF/RDFS/OWL constructs. In particular, if your scenario is > > > to move a definition from one model to another, I'd direct your > > > attention to Help > How to? > Refactor ontologies. > > > > > Holger also mentions using SPARQLMotion to import files and snippets > > > into your model. The is a very flexible > > > power tool that will support moving data from one model to another. > > > > > If you wish to work with "source code", i.e. a text serialization > > > format, I'd suggest using the Turtle syntax, which is more human- > > > readable and editable, and has better performance characteristics when > > > loading the text serialization. You can open a file in its text > > > serialization by right-clicking on a file in the Navigator viewer and > > > choosing Open With… > Text Editor. > > > > > Insofar as editing the Source Code sub-tab is concerned, it appears > > > you are attempting to replace the definition of owl:Thing with a class > > > definition. This would give the behavior you describe. Note that the > > > interface will only show the definitions the interface is able to > > > process correctly. If you need to see all of your data, either use > > > the Triples View (Window > Show View > Triples) or view the triples in > > > the SPARQL View (to get all triples, apply this query: SELECT * WHERE > > > {?s ?p ?o}). > > > > > For re-installing TBC, just unzip the download into a different > > > directory on your machine and run the executable from that directory > > > (i.e. there is no need to delete old versions). In terms of system > > > stability, make sure you don't edit any files in the TopBraid folder > > > in the workspace. If you let us know what the startup errors are, > > > we'd be happy to look into it (also let us know what version of TBC is > > > used and the OS it is installed on). > > > > > -- Scott > > > > > On Mar 28, 2:21 pm, Leonard Jacuzzo <[email protected]> wrote: > > > > Hi Holger, > > > > I have two questions. First, I would like to completely uninstall and > > > > reinstall TBC on my machine. What is the best means of doing this. > > > Everytime > > > > I try it, there is some piece left over. For example, I still have > the > > > same > > > > workbench etc. I would like to completely reinstall TBC because it > has > > > been > > > > ganky for a while and now show errors on start up. > > > > > > The second question is the same as last night. I tried to paste on > the > > > > machine at work and had the same problems as at home. Here is my > detailed > > > > explanation. > > > > > > I start off with a file that contains the class for which I would > like to > > > > make a subclass. The code for that class is > > > > > > <owl:Class rdf:ID="Blood_Sugar_InSpec"> > > > > > > <rdfs:subClassOf rdf:resource="#Blood_Sugar_Reading"/> > > > > > > </owl:Class> > > > > > > Then I create a long text file with hundreds strings that resemble > this: > > > > > > <owl:Class rdf:ID="Blood_Sugar_ExHigh" > " > > > > <rdfs:subClassOf rdf:resource="#Blood_Sugar_InSpec"/> > > > > <rdfs:subClassOf> > > > > <owl:Class> > > > > <owl:intersectionOf rdf:parseType="Collection"> > > > > <owl:Restriction> > > > > <owl:onProperty rdf:resource="#Has_SL"/> > > > > <owl:someValuesFrom> > > > > <rdfs:Datatype> > > > > <owl:onDatatype > > > rdf:resource="http://www.w3.org/2001/XMLSchema#float"/> > > > > <owl:withRestrictions rdf:parseType="Collection"> > > > > <rdf:Description> > > > > <xsd:minInclusive > > > rdf:datatype="http://www.w3.org/2001/XMLSchema#float" > > > > >0.0898</xsd:minInclusive> > > > > </rdf:Description> > > > > </owl:withRestrictions> > > > > </rdfs:Datatype> > > > > </owl:someValuesFrom> > > > > </owl:Restriction> > > > > <rdfs:Datatype> > > > > <owl:onDatatype > > > rdf:resource="http://www.w3.org/2001/XMLSchema#float"/> > > > > <owl:withRestrictions rdf:parseType="Collection"> > > > > <rdf:Description> > > > > <xsd:maxExclusive > > > rdf:datatype="http://www.w3.org/2001/XMLSchema#float" > > > > >0.097</xsd:maxExclusive> > > > > </rdf:Description> > > > > </owl:withRestrictions> > > > > </rdfs:Datatype> > > > > </owl:intersectionOf> > > > > </owl:Class> > > > > </rdfs:subClassOf> > > > > </owl:Class> > > > > > > When I paste this string into the source code view for "thing" I end > up > > > with > > > > this: > > > > > > <owl:Class rdf:ID="Blood_Sugar_ExHigh"> > > > > > > <rdfs:subClassOf> > > > > > > <owl:Class> > > > > > > <owl:intersectionOf rdf:parseType="Collection"> > > > > > > <owl:Restriction> > > > > > > <owl:someValuesFrom> > > > > > > <rdfs:Datatype> > > > > > > <owl:withRestrictions rdf:parseType="Collection"> > > > > > > <rdf:Description> > > > > > > <xsd:minInclusive rdf:datatype=" > http://www.w3.org/2001/XMLSchema#float" > > > > > > >0.2014</xsd:minInclusive> > > > > > > </rdf:Description> > > > > > > </owl:withRestrictions> > > > > > > <owl:onDatatype rdf:resource="http://www.w3.org/2001/XMLSchema#float > "/> > > > > > > </rdfs:Datatype> > > > > > > </owl:someValuesFrom> > > > > > > <owl:onProperty rdf:resource="#Has_CT"/> > > > > > > </owl:Restriction> > > > > > > <rdfs:Datatype> > > > > > > <owl:withRestrictions rdf:parseType="Collection"> > > > > > > <rdf:Description> > > > > > > <xsd:maxExclusive rdf:datatype=" > http://www.w3.org/2001/XMLSchema#float" > > > > > > >0.211</xsd:maxExclusive> > > > > > > As you can see, the class that I inserted is no longer declared to be > a > > > > subclass of the class which I encoded as subclass. It gets stuck as a > > > > subclass of "thing" > > > > > > If I save this file in TBC, it erases all of the previous classes and > > > will > > > > only save the new "non-subclass" info. > > > > > > I just tried to accomplish the paste at work and it no longer works. > > > Which > > > > is strange because it worked on Friday. > > > > > > Here is a question. Is the method that I am attempting supposed to > work > > > as > > > I > > > > intend it to work? Can one paste source code for an ontology into the > > > source > > > > code field for "THING"? It was working like a charm and now does not. > > > > However, it is a super convenient means of adding a ton of stuff to > an > > > > ontology. I would love to continue as I was. > > > > > > I hope that I have given you enough information. (I have to make up > stuff > > > to > > > > show you as I can't show you the real deal) > > > > > > Best, > > > > > > Leonard > > > > > > On Sun, Mar 27, 2011 at 7:03 PM, Holger Knublauch > > > <[email protected]>wrote: > > > > > > > On Mar 28, 2011, at 9:00 AM, Leonard Jacuzzo wrote: > > > > > > I will attempt to supply more information on the pasting problem > as I > > > > > find this most convenient. > > > > > > > > What sorts of information would you like? > > > > > > > A minimal, reproducible test scenario would be needed, e.g. start > with > > > file > > > > > A that has a couple of classes, then try to add file B and show me > > > where > > > > > data gets lost. If you could attach those two minimal files then I > may > > > be > > > > > able to help you better. > > > > > > > Thanks, > > > > > Holger > > > > > > > -- > > > > > 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 > > -- > 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
