-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
6603 feat remove unused dkg feature (#6609)
- Loading branch information
1 parent
670d6da
commit 04d1a49
Showing
2 changed files
with
10 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
...es/server/src/main/java/software/uncharted/terarium/hmiserver/proxies/mira/MIRAProxy.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,16 @@ | ||
package software.uncharted.terarium.hmiserver.proxies.mira; | ||
|
||
import com.fasterxml.jackson.databind.JsonNode; | ||
import feign.FeignException; | ||
import java.util.List; | ||
import org.springframework.cloud.openfeign.FeignClient; | ||
import org.springframework.http.ResponseEntity; | ||
import org.springframework.web.bind.annotation.PostMapping; | ||
import org.springframework.web.bind.annotation.RequestBody; | ||
import org.springframework.web.bind.annotation.RequestParam; | ||
import software.uncharted.terarium.hmiserver.models.dataservice.model.Model; | ||
import software.uncharted.terarium.hmiserver.models.mira.Curies; | ||
import software.uncharted.terarium.hmiserver.models.mira.DKG; | ||
import software.uncharted.terarium.hmiserver.models.mira.EntitySimilarityResult; | ||
|
||
@FeignClient(name = "mira-api", url = "${mira-api.url}", path = "/api") | ||
public interface MIRAProxy { | ||
// This returns a MIRANet, not an AMR | ||
@PostMapping("/reconstruct_ode_semantics") | ||
ResponseEntity<JsonNode> reconstructODESemantics(@RequestBody final Object amr) throws FeignException; | ||
|
||
// This converts MIRANet (Petrinet) to AMR | ||
@PostMapping("/to_petrinet") | ||
ResponseEntity<Model> toPetrinet(@RequestBody Object obj) throws FeignException; | ||
|
||
@PostMapping("/entity_similarity") | ||
ResponseEntity<List<EntitySimilarityResult>> entitySimilarity(@RequestBody Curies obj) throws FeignException; | ||
|
||
@PostMapping("/search") | ||
ResponseEntity<List<DKG>> search(@RequestBody String q, @RequestParam Integer limit, @RequestParam Integer offset) | ||
throws FeignException; | ||
} |