Skip to content

Commit

Permalink
Merge branch 'master' into opv2
Browse files Browse the repository at this point in the history
  • Loading branch information
mosoriob committed Jul 25, 2023
2 parents 84735f5 + fc58166 commit 4e5763b
Show file tree
Hide file tree
Showing 223 changed files with 29,724 additions and 25,140 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Prettier

# This action works with pull requests and pushes
on:
pull_request:
push:
branches:
- main

jobs:
prettier:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.head_ref }}

- name: Prettify code
uses: creyD/[email protected]
with:
prettier_options: --write **/**/*.java
prettier_version: "2.8.8"
prettier_plugins: "prettier-plugin-java"
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/*.jsp
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
24 changes: 19 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,42 @@

## Installation

### Docker
### Docker

You must install [Docker](https://www.docker.com/) and [docker-compose](https://docs.docker.com/compose/install/).

Clone the repository

```bash
```console
$ git clone https://github.com/KnowledgeCaptureAndDiscovery/wings.git
```

Deploy the container with the following command:

```bash
```console
$ docker-compose up -d
```


Open the browser [http://localhost:8080/wings-portal](http://localhost:8080/wings-portal) to access the Wings portal.

To stop the container, run the following command:

```bash
$ docker-compose down
```

#### Users

The default user is `admin` and the password is `4dm1n!23`. You can change the password in the `./wings-docker/config/tomcat/tomcat-users.xml` and rebuild the container.

```
$ docker-compose build
$ docker-compose up -d
```

Go to [README Docker](wings-docker/) for additional instructions on running the Docker image.
#### Configuration

Please follow the instructions in [README Configuration](docs/configuration.md) to configure the Wings project.

#### Images

Expand Down
2 changes: 1 addition & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>edu.isi.wings</groupId>
<artifactId>wings-core</artifactId>
<version>5.4.3</version>
<version>5.5.0</version>
<name>Wings Core</name>
<packaging>pom</packaging>
<description>Wings project for the IKCAP group</description>
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ services:
- wings_data:/opt/wings
- /var/run/docker.sock:/var/run/docker.sock
- ./portal.properties:/etc/wings/portal.properties

ports:
- 8080:8080
volumes:
Expand Down
84 changes: 84 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# Wings configuration documentation

The wings configuration file is located at `/etc/wings/portal.properties`. It contains the following sections:

- **main**: modify main properties
- **storage**: modify the paths where the data and database is stored
- **ontology**: reference to the WINGS ontology
- **execution**: available engines to run the workflow
- **publisher**: describes how the wings system shares data, execution, and provenance.

Be sure to modify the configuration file carefully, as changes may affect the functionality of the Wings system.

To inspect the configuration file, open a browser and go to [http://localhost:8080/wings-portal/config](http://localhost:8080/wings-portal/config). The sensitive information is hidden.

### Main

The **main** section of the configuration file allows you to modify the main properties of the Wings system.

| Name | Description | Default |
| -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ |
| server | The URL of the Wings instance is used to generate the accessible URI for resources. For example, if the value is set to the default, the component library of the domain CaesarCypher and user admin will be available at http://localhost:8080/wings-portal/export/users/admin/CaesarCypher/components/library.owl. | Obtained by HTTP request. For example, http://localhost:8080 |
| graphviz | Path where the graphviz software is installed | /usr/bin/dot |
| light-reasoner | Enable or disable validation in the planning of workflow | false |

### Storage

The **storage** section of the configuration file allows you to specify the location of the data and database directories. Make sure to set the paths to directories with sufficient storage space and appropriate permissions for the following properties:

| name | description | default value |
| ------------- | -------------------------------------------------- | -------------------- |
| storage.local | Directory where the data and components are stored | $HOME/.wings/storage |
| storage.local | RDF store database (Apache JENA) | $HOME/.wings/TDB |
| storage.local | Directory where the log files are stored | $HOME/.wings/logs |

### Ontology

The following text describes the ontology section of the Wings configuration file. The properties within this section should not be modified unless you are an advanced user with knowledge of the WINGS ontology

The ontology section of the configuration file specifies the location and URIs of the WINGS ontology files. The following properties defin

| Name | Description | Default Value |
| ------------------ | ----------------------------------------------------- | ----------------------------------------------------- |
| ontology.component | Location and URI of the WINGS ontology component ont | http://www.wings-workflows.org/ontology/component.owl |
| ontology.data | Location and URI of the WINGS ontology data file | http://www.wings-workflows.org/ontology/data.owl |
| ontology.execution | Location and URI of the WINGS ontology execution file | http://www.wings-workflows.org/ontology/execution.owl |
| ontology.workflow | Location and URI of the WINGS ontology workflow file | http://www.wings-workflows.org/ontology/workflow.owl |

Again, these properties should not be modified unless you are an advanced user with knowledge of the WINGS ontology.

### Execution and engine

The "Execution" section lists the available engines for running your workflows.

| Name | Description |
| -------------- | ---------------------------------------------------------- |
| name | A short name to describe the engine |
| implementation | Java path where the implementation is |
| type | Modify if the engine is used in the planning, step or both |

WINGS supports the following engines:

1. `local` runs the workflow as a UNIX process.
2. `distributed` runs the workflows using round robin, connecting to the server using the SSH protocol.

By default, the local engine is activated.

```json
execution =
{
engine =
{
name = Local;
implementation = edu.isi.wings.execution.engine.api.impl.local.LocalExecutionEngine;
type = BOTH;
}

engine =
{
name = Distributed;
implementation = edu.isi.wings.execution.engine.api.impl.distributed.DistributedExecutionEngine;
type = BOTH;
}
}
```
Loading

0 comments on commit 4e5763b

Please sign in to comment.