-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Using JAR
java -jar target/fair_ontologies-0.1.0.jar
Outdated JAR file reference as this is not the latest release. It could be renamed to fair_ontologies.jar for each release, or the README can use generics like fair_ontologies-X.y.z.jar
As a result, you should see a JSON in your folder, such as the one in sample.json.
There is no sample.json produced, and no indication that the JAR when executed retrieves the file either (tested on localhost). AFAIK the JAR starts the server and only requests to assessOntology trigger checks.
Using curl
curl will print output to the terminal and not into a file:
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\"}"
As a result, you should see a JSON in your console, such as the one in sample.json in the root of this repository.
which should be:
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\"}" -o sample.json