[Mulgara-general] Can't connect to remote Mulgara repository using ConnectionFactory

Paul Gearon gearon at ieee.org
Thu Nov 20 16:15:57 UTC 2008


On Thu, Nov 20, 2008 at 10:08 AM, David Legg
<david.legg at searchevent.co.uk> wrote:
> I did notice something else strange... If I use the built in example webapp
> to populate the triplestore with data I can use the same app to list it
> again as you would expect.  If I cut and paste the SPARQL query into my test
> program I get syntax exceptions.  It seems the webapp uses: -
>
>  select $subject $predicate $object from
> <rmi://SearchMaster/server1#sampledata> where $subject $predicate $object;

The "Tutorial" commands/queries in the web are all TQL. The above
query is a TQL query.

> but my test program using RMI only works if I add a couple of curly braces
> and remove the semi-colon... like so: -
>
>  select $subject $predicate $object from
> <rmi://SearchMaster/server1#sampledata> where {$subject $predicate $object}

That's a SPARQL query.

There are different parsers for TQL and SPARQL, so be sure you use the
correct one.

> So, back to my network problem... communication seems fine if the JVMs are
> on the same machine but fail if they are truly remote.  Is there something
> else I should be setting up?

Can you open a GUI terminal on Windowss and execute the TQL query
there? That shell should see that you have a graph with RMI in the
name and connect to the appropriate server for you.

Paul



More information about the Mulgara-general mailing list