> 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
