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: [email protected]
> >>>>>>> Subject: Re: [topbraid-users] Named graphs in SDB
> >>>>>>>
> >>>>>>> Jeff,
> >>>>>>>
> >>>>>>> The default graph and named graphs are stored in separate
> tables
> >>>>>>>
> >> in
> >>
> >>>>>>>
> >>>> the
> >>>>
> >>>>
> >>>>>>> database. The default graph is stored in a triples table
> whereas
> >>>>>>>
> >>>>>>>
> >>>> the
> >>>>
> >>>>
> >>>>>>> named graphs are all stored in a quad table. The extra column
> in
> >>>>>>>
> >>>>>>>
> >>>> the
> >>>>
> >>>>
> >>>>>>> quad table is for the graph name. The layout is described here:
> >>>>>>>
> >>>>>>> http://openjena.org/wiki/SDB/Database_Layouts
> >>>>>>>
> >>>>>>> So, using "urn:x-arg:DefaultGraph" in the SPARQL query or
> >>>>>>>
> >> anywhere
> >>
> >>>>>>>
> >>>> else
> >>>>
> >>>>
> >>>>>>> like base URI should not return anything, if you just have
> named
> >>>>>>>
> >>>>>>>
> >>>> graphs
> >>>>
> >>>>
> >>>>>>> in SDB. As far as I understand from
> >>>>>>> http://openjena.org/wiki/SDB/Configuration , "urn:x-
> >>>>>>>
> >> arq:UnionGraph"
> >>
> >>>>>>> only
> >>>>>>> works on the union of all SDB named graphs. I am not sure if it
> >>>>>>>
> >>>>>>>
> >>>> should
> >>>>
> >>>>
> >>>>>>> support imported ontologies.
> >>>>>>>
> >>>>>>> The "more than one owl:Ontology" error would be caused by the
> >>>>>>>
> >>>>>>>
> >>>> contents
> >>>>
> >>>>
> >>>>>>> of the current ontology. If there is more than one
> >>>>>>>
> >>>>>>> ?x a owl:Ontology
> >>>>>>>
> >>>>>>> triple, then you would get that error. If you have
> >>>>>>> "urn:x-arq:UnionGraph" as the base URI, then I assume that
> >>>>>>>
> >> triples
> >>
> >>>>>>>
> >>>> are
> >>>>
> >>>>
> >>>>>>> loaded from all named graphs into the current ontology, which
> >>>>>>>
> >> would
> >>
> >>>>>>> contain more than one owl:Ontology triple, i.e. normally one
> per
> >>>>>>>
> >>>>>>>
> >>>> named
> >>>>
> >>>>
> >>>>>>> graph.
> >>>>>>>
> >>>>>>> I would suggest using the same graph name and base URI at the
> >>>>>>>
> >>>>>>>
> >>>> wizard
> >>>>
> >>>>
> >>>>>>> although as I understand you have different goals here. The
> URIs
> >>>>>>> "urn:x-arq:DefaultGraph" and "urn:x-arq:UnionGraph" are "safe"
> to
> >>>>>>>
> >>>>>>>
> >>>> use
> >>>>
> >>>>
> >>>>>>> in
> >>>>>>> SPARQL query datasets as a value of the GRAPH keyword. Their
> role
> >>>>>>>
> >>>>>>>
> >>>> in
> >>>>
> >>>>
> >>>>>>> SDB
> >>>>>>> querying is described here:
> >>>>>>>
> >>>>>>> http://openjena.org/wiki/SDB/Configuration
> >>>>>>>
> >>>>>>> Gokhan
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> On 4/5/2010 8:36 AM, Schmitz, Jeffrey A wrote:
> >>>>>>>
> >>>>>>>
> >>>>>>>> I'm trying to open a specific named graph using the new
> feature,
> >>>>>>>>
> >>>>>>>>
> >>>> but
> >>>>
> >>>>
> >>>>>>> can't seem to get it to view it correctly.  I know the model is
> >>>>>>>
> >> in
> >>
> >>>>>>> there because using java/jena I can write it to file using:
> >>>>>>>
> >>>>>>>
> >>>>>>>>        _sdbStore = SDBFactory.connectStore("sdb.ttl");
> >>>>>>>>        _baseModel = SDBFactory.connectNamedModel(_sdbStore,
> >>>>>>>>
> >>>>>>>>
> >>>> graphURI);
> >>>>
> >>>>
> >>>>>>>>        writer.write(baseModel, os, null);
> >>>>>>>>
> >>>>>>>> and it works great.  I can also submit sparql queries against
> >>>>>>>>
> >> the
> >>
> >>>>>>>>
> >>>>>>> model, run spin inferencing on it, etc. and it seems to work
> >>>>>>>
> >>>>>>>
> >>>> correctly.
> >>>>
> >>>>
> >>>>>>>> I've tried connecting from TBC using a Base URI of:
> >>>>>>>>
> >>>>>>>> urn:x-arq:DefaultGraph
> >>>>>>>>
> >>>>>>>> And the URI of my named model (stored in the graphURI variable
> >>>>>>>>
> >> in
> >>
> >>>>>>>>
> >>>> the
> >>>>
> >>>>
> >>>>>>> above code) as the Named Graph.  When I try to connect I'm not
> >>>>>>>
> >>>>>>>
> >>>> getting
> >>>>
> >>>>
> >>>>>>> an error or anything, but I can't see any triples either.
> >>>>>>>
> >>>>>>>
> >>>>>>>> I have also tried using for the base URI:
> >>>>>>>>
> >>>>>>>> urn:x-arq:UnionGraph
> >>>>>>>>
> >>>>>>>> And for that I can see all the triples, but it doesn't process
> >>>>>>>>
> >> any
> >>
> >>>>>>>>
> >>>> of
> >>>>
> >>>>
> >>>>>>> the import triples in my named graph like it used to for RDB
> >>>>>>>
> >> based
> >>
> >>>>>>> models.  Should it?  Also, I get the "more than one
> owl:Ontology"
> >>>>>>>
> >>>>>>>
> >>>> error
> >>>>
> >>>>
> >>>>>>> when doing it this way.
> >>>>>>>
> >>>>>>>
> >>>>>>>> Thanks,
> >>>>>>>> Jeff
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>> -----Original Message-----
> >>>>>>>>> From: [email protected] [mailto:topbraid-
> >>>>>>>>> [email protected]] On Behalf Of Scott Henninger
> >>>>>>>>> Sent: Thursday, April 01, 2010 11:13 AM
> >>>>>>>>> To: TopBraid Suite Users
> >>>>>>>>> Subject: [topbraid-users] Named graphs in SDB
> >>>>>>>>>
> >>>>>>>>> Jeff;  Yes you can open named graphs in SDB within TopBraid.
> >>>>>>>>>
> >> The
> >>
> >>>>>>>>> wizards now allow you to specify the name.
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>> Noticed this:
> >>>>>>>>>> - Feature: Added named graph support to SDB import/export
> >>>>>>>>>>
> >>>>>>>>>>
> >>>> wizards
> >>>>
> >>>>
> >>>>>>>>>> Does this include viewing in place, individual SDB named
> >>>>>>>>>>
> >> graphs
> >>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>> within topbraid?  Sounds like this is only for
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>> importing and exporting named graphs.
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>> --
> >>>>>>>>> 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-composer-users?hl=en
> >>>>>>>>>
> >>>>>>>>> To unsubscribe, reply using "remove me" as the subject.
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>> --
> >>>>>>> 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-composer-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-composer-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

Reply via email to