Hello Dave; This is helpful. It seems that there may be problems in your <http://anchor/ontology> graph. One approach to figuring our what may be wrong is to create a connector directly to the <http:// anchor/ontology> to see if it can be opened at all. (How was this graph created and do you know whether it is a valid ontology or not.)
BTW, the base URI is used by TBS as the name of graph. The name, like any resource in RDF, is a URI and it represents a unique resource. That resource is a graph, be it from a text serialization, an RDF back- end, a named graph on a back-end, etc. For example, to create a connector to your ontology graph, use the following: File name: anchor_ontology Base URI: http://myorg.org/anc_ontology SDB Named Graph URI: http://anchor/ontology If you open that, you may get some other error messages that provide more insight on what the problem is with the model. Another experiment would be to create a text serialization that has at least some of the <http://anchor/ontology> ontology in it and import your four instance files. To do this, Use New > RDF/OWL file to create a file, let's call it anchor_ontology_test.ttl. Then create connectors to the four instance files: File name: {request1, request2, request3, request4} Base URI: http://myorg.org/{r1, r2, r3, r4} SDB Named Graph URI: http://anchor/request#{1, 2, 3, 4} Then import the request1.sdb, etc, file in anchor_ontology_test.ttl. If this works as desired, then you can export that file to your SDB database, possibly replacing <http://anchor/ontology>. -- Scott On Apr 11, 10:15 am, "Lebling, David (US SSA)" <[email protected]> wrote: > In the previous message, the error should read: > > The following URIs could not be imported: <http://anchor/ > ontology> > > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of DaveL > Sent: Monday, April 11, 2011 10:13 AM > To: TopBraid Suite Users > Subject: [topbraid-users] Re: Named Graphs 102 > > > I'm missing some context and/or steps here. Perhaps a new thread with > > a procedure to reproduce this can get me back on track? > > That sounds like a good idea. Let me start from scratch. I have an SDB > database (PostgreSQL) with named graphs in it. The graphs are named: > > http://anchor/request#3http://anchor/request#2http://anchor/request#1http://anchor/request#4http://anchor/ontologyhttp://anchor/extension1http://anchor/extension2http://www.w3.org/2006/timehttp://www.w3.org/2003/01/geo/wgs84_pos > > The first four are instances of classes defined in the next three, > which are a main ontology and two extensions to it (they reference the > main ontology). The ontologies are stored in the SDB database to take > advantage of SDB's ability to import ontologies from a database model. > > I create a workspace Test, and in that workspace create a Project/ > General/Project called Example. In that project I invoke New / RDF/OWL > Jena SDB Database Connection. I fill in the dialog as follows: > > File name: Test > Base URI:http://localhost/jenaStore > SDB Named Graph URI: urn:x-arq:UnionGraph > > Followed by the URL of the store, username and password. > > Note the Base URI. As you suggested, this may be the source of my > problems. I admit that I do not understand Base URIs, even after > reading your FAQ and spelunking on the web for explanations of how > they are used. My use case is to be able to do SPARQL queries on the > class instances (note that the word "request" in their names may be > vary once we get further in development). > > The result of trying to open the DB connection is: > > Error > Mon Apr 11 09:23:12 EDT 2011 > Warning: Error during import. The import will be ignored but as a > result the model may be incomplete. > > The following URIs could not be imported: <http://anchor/ > cornerstoneCore> > > org.topbraidcomposer.core.io.FailedImportException: The following URIs > could not be imported: <http://anchor/ontology> > at org.topbraidcomposer.core.io.TBCIO.loadImportedModels(TBCIO.java: > 225) > at org.topbraidcomposer.core.io.TBCIO$2$1.run(TBCIO.java:310) > at java.lang.Thread.run(Unknown Source) > > The resulting Ontology Overview has the red warning about multiple > ontologies. Perhaps unsurprisingly, the classes and properties defined > in <http://anchor/ontology> are not found, although those found in the > extensions are. > > Also unsurprisingly (given the import issue), the following SPARQL > query (which should find the four "request" instances) finds nothing. > > PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> > PREFIX ont: <http://anchor/ontology#> > SELECT * > WHERE > { > GRAPH <urn:x-arq:UnionGraph> { ?s rdf:type ont:Request } > > } > > I hope this is enough detail to help you. > > Thanks, > > Dave > > -- > 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
