> 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#3
http://anchor/request#2
http://anchor/request#1
http://anchor/request#4
http://anchor/ontology
http://anchor/extension1
http://anchor/extension2
http://www.w3.org/2006/time
http://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 at
http://groups.google.com/group/topbraid-users?hl=en

Reply via email to