Project

General

Profile

Admin » History » Version 2

Gregg -, 09/01/2009 11:06 AM

1 1 Gregg -
== System Graphs and Server URIs ==
2
3
Mulgara maintains a ''system graph'', which is akin to the system tables of a traditional Relational Database system.
4
5
The URI of the system graph is generated from the ''server URI''.  The server URI is meant to uniquely identify a server and, in the case of a standalone RMI server, describe the location used for querying the server from an RMI client.  It is constructed in the following manner:
6
{{{
7
rmi://<hostname>[:rmiport]/<servername>
8
}}}
9
where <hostname> is the canonical network name for the host (the result from the 'hostname' command in Linux); [:rmiport] is the optional port number for the RMI registry, specified only if it's running on a different port from the default 1089; and <servername> is the name of the server (you can have multiple servers deployed on the same host; defaults to "server1").  All of these parameters may be changed in the configuration.
10
11 2 Gregg -
'''NOTE:'''  The server URI is ''not'' the same as the server ''address''.  In other words, "server URI" is a bit of a misnomer.  It is an internal label Mulgara constructs and maintains; it only works as a network address for {{{rmi:}}} clients, not SPARQL over HTTP clients, etc.  But it non-{{{rmi:}}} clients can nevertheless use it as (part of) a Graph URI.
12
13 1 Gregg -
The ''system graph URI'' is defined relative to the server URI, and is constructed by simply appending an empty fragment - {{{#}}} - to the server URI.  For a standalone Mulgara server running a default configuration, you can use {{{<rmi://localhost/server1#>}}} to refer to the system graph because Mulgara will resolve aliases to the local host when it evaluates RMI graph URIs.
14
15
To dump the sysgraph of the default server try executing the following SPARQL query as the Query Text in the sample WebUI interface (don't forget the angle brackets):
16
{{{
17
select ?x ?y ?z from <rmi://localhost/server1#> where {?x ?y ?z}
18
}}}