create
Creates a new model on an existing Mulgara server. The corresponding command for removing models is drop
. The general syntax is as follows:
create model [type];
Where model
is the URI of the model to create and type
is an optional model type specification.
Model URIs are formed by adding a fragment part to the URI of the server they reside on. The following example creates a model named MyModel
on the server at rmi://mysite.com/server1
.
create <rmi://mysite.com/server1#MyModel>;
The optional model types are:
http://mulgara.org/mulgara#Model
This is the default triple store model. Specifying this type is equivalent to omitting the type parameter.
http://mulgara.org/mulgara#ViewModel
A view model that represents a combined set of models. See the Views section for more information.
http://mulgara.org/mulgara#LuceneModel
A full-text string index model based on Lucene.
All statements placed into a full-text model must have a literal-valued object. Queries against a full-text model 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 Models section for more information.
http://mulgara.org/mulgara#XMLSchemaModel
A datatyping model that represents the property of orderedness that literals like dates and numbers possess.
Datatyping models are used to constrain results to be above, below, or between specified dates or numbers.
See the Datatyping Models section for more information.
http://mulgara.org/mulgara#TypeModel
A nodetyping model that represents the type the RDF nodes have in a graph.
Nodetyping models are used to constrain results to be literals or URI references.
See the Nodetyping Models section for more information.
http://mulgara.org/mulgara#FileSystemModel
A filesystem model that can be queried to return information about files and directories on filesystems.
See the Filesystem Model section for more information.
The Mulgara server must exist before you can create models on it. If you try to create a model on a nonexistent or unreachable server, the command fails with the message Couldn't contact server
.