From 3211290fbaefdf4930e57250fc8464d7599c8993 Mon Sep 17 00:00:00 2001 From: Maximiliano Osorio Date: Tue, 30 Jun 2020 11:15:07 -0700 Subject: [PATCH] fix: generate simple examples --- examples/dbpedia/config_music.yaml | 6 +++--- examples/modelcatalog/config.yaml | 7 +++---- src/main/java/edu/isi/oba/MapperSchema.java | 7 +++++++ src/main/resources/servers.zip | Bin 8125153 -> 8125153 bytes .../template/requirements.mustache | 2 +- 5 files changed, 14 insertions(+), 8 deletions(-) diff --git a/examples/dbpedia/config_music.yaml b/examples/dbpedia/config_music.yaml index 77f8483..17b41ee 100644 --- a/examples/dbpedia/config_music.yaml +++ b/examples/dbpedia/config_music.yaml @@ -30,9 +30,9 @@ endpoint: ## Filter the paths by methods enable_get_paths: true -enable_post_paths: false -enable_delete_paths: false -enable_put_paths: false +enable_post_paths: true +enable_delete_paths: true +enable_put_paths: true ## Select the classes to add in the API classes: diff --git a/examples/modelcatalog/config.yaml b/examples/modelcatalog/config.yaml index 479e758..97182c3 100644 --- a/examples/modelcatalog/config.yaml +++ b/examples/modelcatalog/config.yaml @@ -1,9 +1,8 @@ ontologies: - - https://mintproject.github.io/Mint-ModelCatalog-Ontology/release/1.4.0/ontology.xml - - https://knowledgecaptureanddiscovery.github.io/SoftwareDescriptionOntology/release/1.5.0/ontology.xml + - https://w3id.org/okn/o/sdm/1.5.0 + - https://w3id.org/okn/o/sd/1.6.0 name: modelcatalog output_dir: outputs - openapi: openapi: 3.0.1 info: @@ -22,7 +21,7 @@ firebase: key: "test" endpoint: - url: http://endpoint.mint.isi.edu/modelCatalog-1.4.0 + url: https://endpoint.mint.isi.edu/modelCatalog-1.4.0 prefix: https://w3id.org/okn/i/mint graph_base: http://endpoint.mint.isi.edu/modelCatalog-1.4.0/data/ diff --git a/src/main/java/edu/isi/oba/MapperSchema.java b/src/main/java/edu/isi/oba/MapperSchema.java index ca51dfb..bc052e4 100644 --- a/src/main/java/edu/isi/oba/MapperSchema.java +++ b/src/main/java/edu/isi/oba/MapperSchema.java @@ -1,5 +1,7 @@ package edu.isi.oba; + +import io.swagger.v3.oas.models.examples.Example; import io.swagger.v3.oas.models.media.Schema; import org.semanticweb.owlapi.apibinding.OWLManager; import org.semanticweb.owlapi.model.*; @@ -73,6 +75,11 @@ private Schema setSchema() { schema.setDescription(this.cls_description); schema.setType(this.type); schema.setProperties(this.getProperties()); + HashMap exampleMap = new HashMap<>(); + exampleMap.put("id", "some_id"); + Example example = new Example(); + example.setValue(exampleMap); + schema.setExample(example); return schema; } diff --git a/src/main/resources/servers.zip b/src/main/resources/servers.zip index 2d39dc0711bcf3b45a02aea87403aa67307390a8..0543262092f138dd462a21cfda1410a3f92c44e7 100644 GIT binary patch delta 2292 zcmZYAdpuNW9{})~IYXvgGUR^C>ymp(?&Ge6m@e)bCb7AT2&cC(rcJqXTvl(Q_~1V?iyEdb2YRP z!~-6CM=MwaCP627Dh!Sy1VScepzZ0gI-OPViR%bN@*aaM=dEoXoRu?ujf}MqOI4yXx3-x@?0)2vvDWm8cdd<8YUYMR z-OC4ZVrUAQEdO2k3q1!DddnrvB()ji@pBt`N<_C8h-zZ>4~v9Pm7O*`UMVoyd}>Mf z*d?Q#R+(6hhwq-dDf)@wONUvh&T~C4gC@P2OqRyS7Wz88S!ezI z?=D%CxQWK)+n;RTqvzR*e3JiQK~~l~Ivc1&N!DxLne;~Ze3*miZB@Grfe^ZZ%eLjY zj_I!z0SvS{jjV*~@-Q1+8CF(KV9xqwoxzV!cbk0sc+-*XX3r#d3HzR}f8;FCQ<~K_ zBO#qJ(4HD_HfW;xcA!u=W$#{#0=G#yMwmaP_8yzi9#ySTccPcw(tmT$XGS!4sD0f= zDS<#QoruQ`4`MS5r%R+Ny|;{@#|AL^n;8Ag#&>3zquh_P^=BP)_G*@~%%?dkiq9x= zH@ptoD;Jf~g8lw|GD+97t}~>)*G^Z)J(A2U%MB2c9t|y1!@rq&J~)5dk3Bx~OJ2C` z0`=6emdJM;>+9FbRtnP_$9^DpsSJCQ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