File tree 7 files changed +30576
-7
lines changed
7 files changed +30576
-7
lines changed Original file line number Diff line number Diff line change
1
+ set -xe
2
+
3
+ java -jar target/oba-* -jar-with-dependencies.jar -c examples/dbpedia/config_music.yaml
4
+ pushd outputs/dbpedia_music/servers/python
5
+ bash generate-server.sh
6
+ pushd server
7
+ docker build -t openapi_server .
8
+ docker run --name dbpedia_music -d -p 8080:8080 openapi_server
9
+ popd
10
+ sleep 10s
11
+ curl -X GET " http://0.0.0.0:8080/v1.3.0/bands/Pink_Floyd" -H " accept: application/json"
12
+ docker logs dbpedia_music
Original file line number Diff line number Diff line change 1
1
language : java
2
2
script :
3
3
- mvn package
4
+ - bash .ci/dbpedia_music.sh
4
5
before_deploy :
5
6
- ls -lR
6
7
deploy :
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ openapi:
20
20
# # Ontologies
21
21
# ## List of ontologies
22
22
ontologies :
23
- - https://gist.githubusercontent.com/mosoriob/cec147b24bd241295584dfcc21c21b93/raw/b6fa41ddf93212d967f35da20278f54d2ae2d40d/gistfile1.txt
23
+ - examples/dbpedia/ontology.xml
24
24
25
25
# # SPARQL information
26
26
endpoint :
Original file line number Diff line number Diff line change @@ -20,19 +20,18 @@ openapi:
20
20
# # Ontologies
21
21
# ## List of ontologies
22
22
ontologies :
23
- - https://gist.githubusercontent.com/mosoriob/cec147b24bd241295584dfcc21c21b93/raw/b6fa41ddf93212d967f35da20278f54d2ae2d40d/gistfile1.txt
23
+ - examples/dbpedia/ontology.xml
24
24
25
25
# # SPARQL information
26
26
endpoint :
27
27
url : http://dbpedia.org/sparql
28
28
prefix : http://dbpedia.org/resource
29
- graph_base : http://ontosoft.isi.edu:3030/modelCatalog-1.2.0/data/
30
29
31
30
# # Filter the paths by methods
32
31
enable_get_paths : true
33
- enable_post_paths : true
34
- enable_delete_paths : true
35
- enable_put_paths : true
32
+ enable_post_paths : false
33
+ enable_delete_paths : false
34
+ enable_put_paths : false
36
35
37
36
# # Select the classes to add in the API
38
37
classes :
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -18,7 +18,11 @@ dir=${PWD}
18
18
cp ../openapi.yaml ${PWD}
19
19
20
20
SERVER_DIR=server
21
- docker run -ti --rm -v ${PWD} :/local openapitools/openapi-generator-cli:v4.1.2 \
21
+
22
+
23
+ docker run -ti --rm -v ${PWD} :/local \
24
+ -u " $( id -u) :$( id -u) " \
25
+ openapitools/openapi-generator-cli:v4.1.2 \
22
26
generate \
23
27
-i /local/openapi.yaml\
24
28
-g python-flask \
You can’t perform that action at this time.
0 commit comments