Create
Creates a new graph on an existing Mulgara server. The corresponding command for removing graphs is drop. The general syntax is as follows:
create graph [type];
Where graph is the URI of the graph to create and type is an optional graph type specification.
When using the Connection interface, graph URIs may be anything that does not conflict with an RMI-base URL.
Graphs can also be located across a network using an RMI-based URL. The are graph URIs that are formed by adding a fragment part to the URL of the server they reside on. This form of URI is required when using any of the automatically connecting interfaces, such as the command UI, the TqlAutoInterpreter interface, or the web UI.
The following example creates a graph named MyGraph on the server at rmi://mysite.com/server1.
create <rmi://mysite.com/server1#MyGraph>;
The optional graph types are:
- http://mulgara.org/mulgara#Model
This is the default triple store graph. Specifying this type is equivalent to omitting the type parameter. - http://mulgara.org/mulgara#ViewModel
A view graph that represents a combined set of graphs. See the Views section for more information. - http://mulgara.org/mulgara#LuceneModel
A full-text string index graph based on Lucene. All statements placed into a full-text graph must have a literal-valued object. Queries against a full-text graph result in a match if the object in the query constraint is similar to any stored statements, rather than needing to be identical. See the Full-Text Graphs section for more information. - http://mulgara.org/mulgara#XMLSchemaModel
A datatyping graph that represents the property of orderedness that literals like dates and numbers possess. Datatyping graphs are used to constrain results to be above, below, or between specified dates or numbers. See the Datatyping Graphs section for more information. - http://mulgara.org/mulgara#TypeModel
A nodetyping graph that represents the type the RDF nodes have in a graph. Nodetyping graphs are used to constrain results to be literals or URI references. See the Nodetyping Graphss section for more information. - http://mulgara.org/mulgara#FileSystemModel
A filesystem graph that can be queried to return information about files and directories on filesystems. See the Filesystem Graph section for more information. - http://mulgara.org/mulgara#PrefixModel
A graph containing virtual statement about the characters prefixing string literals, or URI references.
The Mulgara server must exist before you can create graphs on it. If you try to create a graph on a nonexistent or unreachable server, the command fails with the message Couldn't contact server.
