Difference between revisions of "Servers"
From CCIL
(→More information) |
|||
(11 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
There are two ways of obtaining ''CCIL'': | There are two ways of obtaining ''CCIL'': | ||
* Download a pre-build zip file, which contains the full system. | * Download a pre-build zip file, which contains the full system. | ||
− | * Build from source code | + | * Build from source code. |
=== Download a release === | === Download a release === | ||
Line 15: | Line 15: | ||
In order the server to know which objects to instantiate it has to read the binding from a file. The [https://en.wikipedia.org/wiki/Turtle_%28syntax%29 Turtle] format is used, due to its infinite expression abilities. | In order the server to know which objects to instantiate it has to read the binding from a file. The [https://en.wikipedia.org/wiki/Turtle_%28syntax%29 Turtle] format is used, due to its infinite expression abilities. | ||
+ | |||
+ | === Location === | ||
+ | |||
+ | Within a distribution, it resides in the ''/config'' folder, but this can change by specifying the ''server.config.file'' option: | ||
+ | |||
+ | <code> | ||
+ | -Dserver.config.file=/other/location/config.ttl | ||
+ | </code> | ||
+ | |||
+ | The startup scripts for ''server'' and ''application'' modes differ in this setting. | ||
+ | |||
+ | === Format === | ||
+ | |||
+ | Below is a sample: | ||
+ | |||
+ | <pre> | ||
+ | service:sharpfind rdf:type entity:service ; | ||
+ | entity:dependsOn service:k-index ; | ||
+ | entity:dependsOn service:contexts ; | ||
+ | entity:dependsOn service:license ; | ||
+ | entity:implementation "com.datacraftmagic.sharpfind.server.SharpFindBackendService" ; | ||
+ | entity:classpath "" ; | ||
+ | entity:arguments "" . | ||
+ | </pre> | ||
+ | |||
+ | == More information == | ||
+ | |||
+ | * You can read more about the configuration and what can you achieve with it in the dedicated section in the [http://cybercore.sourceforge.net/documentation/index.php/The_server_configuration_file CyberCore documentation]. | ||
+ | * Another option is to check-out the source and take a look into the ''tutorials'' folder. |
Latest revision as of 09:09, 25 March 2017
Contents
Obtain distribution
There are two ways of obtaining CCIL:
- Download a pre-build zip file, which contains the full system.
- Build from source code.
Download a release
- The releases section in the project's site.
Build from source code
TBA
The server configuration file
In order the server to know which objects to instantiate it has to read the binding from a file. The Turtle format is used, due to its infinite expression abilities.
Location
Within a distribution, it resides in the /config folder, but this can change by specifying the server.config.file option:
-Dserver.config.file=/other/location/config.ttl
The startup scripts for server and application modes differ in this setting.
Format
Below is a sample:
service:sharpfind rdf:type entity:service ; entity:dependsOn service:k-index ; entity:dependsOn service:contexts ; entity:dependsOn service:license ; entity:implementation "com.datacraftmagic.sharpfind.server.SharpFindBackendService" ; entity:classpath "" ; entity:arguments "" .
More information
- You can read more about the configuration and what can you achieve with it in the dedicated section in the CyberCore documentation.
- Another option is to check-out the source and take a look into the tutorials folder.