Skip to content

Commit 666940f

Browse files
committed
documentation for API doc in README
1 parent 7fc4d44 commit 666940f

1 file changed

Lines changed: 29 additions & 4 deletions

File tree

README.md

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ The client application has been integrated from the work in https://github.com/j
2727
## Demo
2828
A public demo of FOOPS! is available here: [https://w3id.org/foops/](https://w3id.org/foops/)
2929

30-
## Metrics and tests
31-
The metrics (i.e., conceptual description of what is being assessed) and tests (i.e., implementation of a metric) supported by the tool are available at [https://w3id.org/foops/catalog](https://w3id.org/foops/catalog), along with a detail description of their rationale and means of verification.
3230

3331
## Installation instructions
3432
The project was build and tested with JDK 11.0.11 in Ubuntu.
@@ -49,13 +47,17 @@ java -jar -Dserver.port=PORT fair_ontologies-0.0.1.jar
4947

5048
Where PORT is the port you want to run the server
5149

52-
to test the installation, just do a curl command:
50+
to test the installation, just do a curl command (if the application was run in the port 8083):
5351

5452
```
5553
curl -X POST "http://localhost:8083/assessOntology" -H "accept: application/json;charset=UTF-8" -H "Content-Type: application/json;charset=UTF-8" -d "{ \"ontologyUri\": \"https://w3id.org/okn/o/sd\"}"
5654
```
5755

58-
As a result, you should see a JSON in your console, such as the one in sample.json.
56+
As a result, you should see a JSON in your console, such as the one in sample.json in the root of this repository.
57+
58+
### Swagger OpenAPI
59+
When you run the server, FOOPS! will set up a Swagger UI describing the endpoints available in the API. This API is available at `http://localhost:PORT/swagger-ui/index.html#/`
60+
5961

6062
## Running the JAR in local
6163
To create the JAR, just run:
@@ -81,6 +83,29 @@ As a result, you should see a JSON in your folder, such as the one in sample.jso
8183

8284
If you want to change the out file path you can use the flag -out
8385

86+
## Documentation
87+
88+
### Metrics and tests
89+
The metrics (i.e., conceptual description of what is being assessed) and tests (i.e., implementation of a metric) supported by the tool are available at [https://w3id.org/foops/catalog](https://w3id.org/foops/catalog), along with a detail description of their rationale and means of verification.
90+
91+
### API result specification
92+
FOOPS! supports two result specifications, due to legacy development. The endpoints:
93+
* [POST] /assessOntology and
94+
* [POST] /assessOntologyFile
95+
96+
Follow the classic FOOPS! JSON format. To see an example, please see the [sample json file](./sample.json) in the code repository. This JSON is simple, but may be harder to debug.
97+
98+
The endpoints:
99+
* [GET] /benchmarks/{identifier}
100+
* [GET] /tests
101+
* [GET] /tests/{identifier}
102+
* [GET] /metrics
103+
* [GET] /metrics/{identifier}
104+
* [POST] /assess/resultset/{identifier}
105+
* [POST] /assess/test/{test_identifier}
106+
107+
Follow the [FAIR test resource specification](https://w3id.org/ftr/), providing machine-readable metadata (JSON-LD) on all tests, metrics and groups of tests supported by FOOPS!
108+
84109
## Expanding the list of supported persistent registries
85110
Test [FIND3](https://w3id.org/foops/test/FIND3) assesses whether an ontology complies to a certain URI scheme, based on persistent identifier registries like w3id.org or purl.org. However, your organization may issue persistent URIs too. If you would like us to add your registry scheme into the supported URI schemes, please [open an issue](https://github.com/oeg-upm/fair_ontologies/issues) describing the URI scheme you want to support in FOOPS! and a link to a policy page describing the intention of the organization to support the resources in the long term. A reviewer will check and add it into the tool.
86111

0 commit comments

Comments
 (0)