Due to firewall issues, I've never been able to use commands that access the internet from Eclipse. I always download the entire TBCME app as a whole and just use that to open my existing workspace. Is there another way to Refresh the libraries?
Btw, I'm not sure what you mean when you say "Choose your library file"? What specifically is my library file? > -----Original Message----- > From: [email protected] [mailto:topbraid- > [email protected]] On Behalf Of Scott Henninger > Sent: Friday, April 16, 2010 8:54 AM > To: TopBraid Suite Users > Subject: [topbraid-users] Re: Named graphs in SDB > > OK, some progress. Yes the space is a type. And I meant SDB, not > Sesame. > > If you are using 3.3.0, then it appears you have not refreshed your > library. This could be an issue and is why you see kennedys.owl, as > the 3.3.0 library changed the name of this file to kennedys.rdf. > Choose your library file and select Import... > Refresh TopBraid RDF/ > OWL Library form the Web. > > In step 2, I'm creating a new SDB repository that happens to have the > kennedys model in it. You can do the same with some other file or a > new model. The step in 2b doesn't use the default one because it > would create a base URI conflict. Using the kennedys example, the > base URI for kennedys.rdf is http://topbraid.org/examples/kennedys. > If I then export to a different file with the wizard's default base > URI, there will be two files with the same base URI, > http://topbraid.org/examples/kennedys. This can lead to conflicts > when using the base URI to identify a file. > > Step 2c, per above is creating a new named graph. Multiple graphs can > be stored in a single MySQL database (aka schema in MySQL parlance). > > -- Scott > > On Apr 16, 8:39 am, "Schmitz, Jeffrey A" > <[email protected]> wrote: > > Hi Scott, > > A few questions below before we proceed... > > > > > -----Original Message----- > > > From: [email protected] [mailto:topbraid- > > > [email protected]] On Behalf Of Scott Henninger > > > Sent: Thursday, April 15, 2010 6:14 PM > > > To: TopBraid Suite Users > > > Subject: [topbraid-users] Re: Named graphs in SDB > > > > > Jeff; Let's try all of this again. Perhaps a simple test will help > us > > > get on the same page. Then we can figure out what problem you are > > > experiencing. First, make sure your MySQL jar is re-named to > mysql- > > > connector.jar. > > > > Yes, that's how it's been all along (without the space between the > dash and connector, I assume that's a typo). > > > > Using 3.3.0, I did the following: > > > > > 1. Open kennedys.rdf > > > > I don't see any kennedys.rdf file. I only see kennedys.owl > > > > > 2. Export... Export/Merge/Convert > > > 2a. Choose Jena SDB databases as the format, give a file name > such > > > as kennedysSDB > > > 2b. specify Target base URI > > > > I just used the default one, is that ok? > > > > > 2c. Database type MySQL, Service URL jdbc:mysql://<host>[:port]/ > > > <dbname>, user name password, choose "overwrite..." > > > > Is this going to wipe out my existing database? I'd rather not do > that right now. > > > > > 2d. The SDB field is used to create a named graph in Sesame > > > > Why sesame? I'm not using Sesame. Also, what SDB field? The one > from 2a above? > > > > > 3. The file kennedysSDB.sdb is created, this can be opened and the > > > base URI will be the Target base URI from 2b > > > 4. Create a New Jena SDB connection > > > 4a. The named graph, if specified, will use this value open the > > > named graph. It can be any name - "zz" for example. > > > 4b. The new file's base URI will be as specified in the base URI > of > > > the wizard > > > 4c. Do not check "Overwrite in this case > > > > > From there, what are the variations on this that are causing you > > > problems? The same ought to work for existing Sesame named graphs > > > with the caveat that Composer will change the base URI to what you > > > specified in the connection wizard. If you want the named graph > and > > > the base URI to be the same, then name the base URI the same as the > > > Sesame name in the wizard. > > > > > -- Scott > > > > > On Apr 15, 8:17 am, "Schmitz, Jeffrey A" > > > <[email protected]> wrote: > > > > I have it there too. It's been there all along. > > > > > > Jeff > > > > > > > -----Original Message----- > > > > > From: [email protected] [mailto:topbraid- > > > > > [email protected]] On Behalf Of Gokhan Soydan > > > > > Sent: Wednesday, April 14, 2010 1:59 PM > > > > > To: Schmitz, Jeffrey A > > > > > Cc: [email protected] > > > > > Subject: Re: [topbraid-users] Named graphs in SDB > > > > > > > Jeff, > > > > > > > Please put mysql connector jar inside the workspace folder and > try > > > > > again. > > > > > > > Gokhan > > > > > > > On 4/14/2010 8:57 AM, Schmitz, Jeffrey A wrote: > > > > > > Below is the exception info. I do have mysql-connector-java- > > > 5.1.6- > > > > > bin.jar in my project's main folder. Is there anything else I > need > > > to > > > > > do to properly register the mysql connector jar? > > > > > > > > Jeff > > > > > > > > WARN [ModalContext] (SDBConnection.java:326) - execQuery: > > > > > SQLExceptionNo operations allowed after connection > > > closed.Connection > > > > > was implicitly closed due to underlying exception/error: > > > > > > > > java.lang.Exception: Dummy to give stack trace. > > > > > > at > > > > > > org.topbraid.eclipsex.log.PluginLogAppender.append(PluginLogAppender.ja > > > > > va:68) > > > > > > at > > > > > > org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230) > > > > > > at > > > > > > org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(A > > > > > ppenderAttachableImpl.java:65) > > > > > > at org.apache.log4j.Category.callAppenders(Category.java:203) > > > > > > at org.apache.log4j.Category.forcedLog(Category.java:388) > > > > > > at org.apache.log4j.Category.log(Category.java:853) > > > > > > at > > > > > > org.slf4j.impl.Log4jLoggerAdapter.warn(Log4jLoggerAdapter.java:396) > > > > > > at > > > > > > com.hp.hpl.jena.sdb.sql.SDBConnection.exception(SDBConnection.java:326) > > > > > > at > > > > > > com.hp.hpl.jena.sdb.sql.SDBConnection.execQuery(SDBConnection.java:122) > > > > > > at > > > > > > com.hp.hpl.jena.sdb.sql.SDBConnection.execQuery(SDBConnection.java:93) > > > > > > at > > > > > > com.hp.hpl.jena.sdb.graph.PrefixMappingSDB.readFromPrefixMap(PrefixMapp > > > > > ingSDB.java:161) > > > > > > at > > > > > > com.hp.hpl.jena.sdb.graph.PrefixMappingSDB.get(PrefixMappingSDB.java:10 > > > > > 4) > > > > > > at > > > > > > com.hp.hpl.jena.sdb.graph.PrefixMappingSDB.set(PrefixMappingSDB.java:82 > > > > > ) > > > > > > at > > > > > > com.hp.hpl.jena.shared.impl.PrefixMappingImpl.setNsPrefix(PrefixMapping > > > > > Impl.java:58) > > > > > > at > > > > > > org.topbraid.sdb.module.exportToSDB.ExportToSDBModule.setNamespaces(Exp > > > > > ortToSDBModule.java:140) > > > > > > at > > > > > > org.topbraid.sdb.module.exportToSDB.ExportToSDBModule.execute(ExportToS > > > > > DBModule.java:84) > > > > > > at > > > > > > org.topbraid.sparqlmotion.engine.impl.ExecutionEngine.execute(Execution > > > > > Engine.java:206) > > > > > > at > > > > > > org.topbraid.sparqlmotion.engine.impl.ExecutionEngine.executeModule(Exe > > > > > cutionEngine.java:180) > > > > > > at > > > > > > org.topbraid.sparqlmotion.engine.impl.ExecutionEngine.execute(Execution > > > > > Engine.java:149) > > > > > > at > > > > > > org.topbraidcomposer.sdb.wizards.SDBUtil.performFinish(SDBUtil.java:55) > > > > > > at > > > > > > org.topbraidcomposer.sdb.wizards.create.SDBCreateWizard$1.run(SDBCreate > > > > > Wizard.java:65) > > > > > > at > > > > > > org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalCo > > > > > ntext.java:121) > > > > > > > >> -----Original Message----- > > > > > >> From: Gokhan Soydan [mailto:[email protected]] > > > > > >> Sent: Monday, April 12, 2010 2:02 PM > > > > > >> To: [email protected] > > > > > >> Cc: Schmitz, Jeffrey A > > > > > >> Subject: Re: [topbraid-users] Named graphs in SDB > > > > > > > >> Jeff, > > > > > > > >> Please make sure "Overwrite existing database > content/Initialize > > > > > >> tables" > > > > > >> button is checked. This button is used to both reset or > > > initialize > > > > > your > > > > > >> database. > > > > > > > >> Gokhan > > > > > > > >> On 4/12/2010 7:43 AM, Schmitz, Jeffrey A wrote: > > > > > > > >>> Hmmm, there must be something I'm just not getting. I've > tried > > > > > > > >> starting from scratch. I know I've got a named graph in my > SDB > > > > > >> database with a URI of: > > > > > > > >>>http://www.boeing.com/IVHM/Golden_StandardNeutralInst.owl > > > > > > > >>> Here is what I'm putting in the Create Jena SDB Database > > > dialogue: > > > > > > > >>> File name: Golden_StandardSDB > > > > > >>> Base > > > URI:http://www.boeing.com/IVHM/Golden_StandardNeutralInst.owl > > > > > >>> SDB Named Graph URI: > > > > > > > >>http://www.boeing.com/IVHM/Golden_StandardNeutralInst.owl > > > > > > > >>> Database type: MySQL > > > > > >>> Service URL: jdbc:mysql://localhost:3306/ivhm > > > > > >>> User name:<database username> > > > > > >>> Password:<database password> > > > > > >>> Overwrite existing database content/Initialize tables is > NOT > > > > > checked > > > > > > > >>> Right now, when I hit Finish I'm getting the following > error (I > > > > > don't > > > > > > > >> think I've seen this before, but am stuck nonetheless): > > > > > > > >>> Operation failed > > > > > >>> Reason: Could not create database > > > > > >>> Details: Failed to read prefix () > > > > > > > >>> Any ideas? > > > > > > > >>> Thanks, > > > > > >>> Jeff > > > > > > > >>>> -----Original Message----- > > > > > >>>> From: [email protected] [mailto:topbraid- > > > > > >>>> [email protected]] On Behalf Of Gokhan Soydan > > > > > >>>> Sent: Friday, April 09, 2010 7:34 PM > > > > > >>>> To: [email protected] > > > > > >>>> Subject: Re: [topbraid-users] Named graphs in SDB > > > > > > > >>>> Jeff, > > > > > > > >>>> I tried in the SPARQL editor. I can run a simple SPARQL > query > > > > > (with > > > > > > > >> no > > > > > > > >>>> need of GRAPH keyword) against an SDB named graph in TBC. > The > > > base > > > > > > > >> URI > > > > > > > >>>> is not a special base URI, it is just the same as the > named > > > graph > > > > > > > >> URI. > > > > > > > >>>> The execution of the query also returns results from the > > > imported > > > > > >>>> non-SDB ontologies. > > > > > > > >>>> Gokhan > > > > > > > >>>> On 4/6/2010 2:08 PM, Gokhan Soydan wrote: > > > > > > > >>>>> Jeff, > > > > > > > >>>>> The base URI is the unique identifier of the ontology in > TBC > > > > > >>>>> environment. The SDB named graph URI is used for internal > > > access > > > > > to > > > > > >>>>> SDB. So they are independent of each other, but they > could be > > > the > > > > > > > >>>> same > > > > > > > >>>>> value. I believe that at some point we might make the > same > > > URI > > > > > >>>>> automatically, but I would need to discuss more with > Holger > > > or > > > > > > > >> Jeremy > > > > > > > >>>>> on that. > > > > > > > >>>>> I am trying to understand what doesn't work for you here. > Are > > > you > > > > > >>>>> trying to access the triples only in a particular named > > > graph, or > > > > > > > >> are > > > > > > > >>>>> you trying to access all triples across all named graphs? > > > > > > > >>>>> Gokhan > > > > > > > >>>>> On 4/6/2010 7:51 AM, Schmitz, Jeffrey A wrote: > > > > > > > >>>>>>> I would suggest using the same graph name and base URI > at > > > the > > > > > > > >>>> wizard > > > > > > > >>>>>>> although as I understand you have different goals here. > > > > > > > >>>>>> Yes, that's what is a little confusing to me, For > looking at > > > > > named > > > > > >>>>>> graphs, what is the base URI field supposed to > represent? > > > > > > > >>>>>> Anyway, I did try putting the Named Graph URI in both > and > > > that > > > > > > > >>>> didn't > > > > > > > >>>>>> work either. > > > > > > > >>>>>> Jeff > > > > > > > >>>>>>> -----Original Message----- > > > > > >>>>>>> From: [email protected] [mailto:topbraid- > > > > > >>>>>>> [email protected]] On Behalf Of Gokhan Soydan > > > > > >>>>>>> Sent: Tuesday, April 06, 2010 3:19 AM > > > > > >>>>>>> To: > > > > ... > > > > read more » > > -- > 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
