Previous topic  Top  Next topic  Print this Topic
 

Load Save

 

Save

Saves an ontology to a file.

Syntax:

save <module> to <file>.

Example:

save "http://acme.com#"#ontology1 to '/home/me/ontology.obl'.

OntoBroker reply:

Module "http://acme.com#"#ontology1 saved to file:/home/me/ontology.obl

Side-effect: Ontology is saved to given filename.

Load

Loads an ontology from a given URL or file.

Syntax:

load <URL>.

load "file".

Example for URL:

load

<file/sample/sample.obl>.

OntoBroker reply:

1 ontologies loaded.

Example for local file:

load

"E:/me/documents/ontology.obl"

OntoBroker reply:

1 ontologies loaded.

Additional information about the load command

Keep in mind that the <load> command only sends an order to the server to load an ontology. The server itself must have access to the ontology!

You have two different options:

Send an accessible URL to the server and the sever will be able to load the ontology.
Send a link to an accessible file.

The supported protocols are http, https (bei WebDAV), file and ftp.