@Controller @RequestMapping(value="/plugin/tagwizard") public class TagWizardController extends PluginController
| Modifier and Type | Field and Description |
|---|---|
static String |
ID |
static String |
URI |
PLUGIN_URI_PREFIX| Constructor and Description |
|---|
TagWizardController() |
| Modifier and Type | Method and Description |
|---|---|
OntologyTag |
addTagAttribute(@Valid AddTagRequest request)
Add a tag for a single attribute
|
Map<String,OntologyTag> |
autoTagAttributes(@Valid AutoTagRequest request)
Automatically tags all attributes in the current entity using Lucene lexical matching.
|
void |
clearAllTags(String entityTypeId)
Clears all tags from every attribute in the current target entity
|
void |
deleteSingleTag(@Valid RemoveTagRequest request)
Delete a single tag
|
List<OntologyTerm> |
getAllOntologyTerms(@Valid GetOntologyTermRequest request)
Returns ontology terms based on a search term and a selected ontology
|
ErrorMessageResponse |
handleRuntimeException(RuntimeException e) |
String |
viewTagWizard(String target,
org.springframework.ui.Model model)
Displays on tag wizard button press
|
getId, getPluginSettings, getUripublic static final String ID
public static final String URI
@GetMapping public String viewTagWizard(@RequestParam(required=false,value="selectedTarget") String target, org.springframework.ui.Model model)
target - The target entity namemodel - the model@PostMapping(value="/tagattribute") @ResponseBody public OntologyTag addTagAttribute(@Valid @RequestBody @Valid AddTagRequest request)
request - the AddTagRequest containing the entityTypeId, attributeName, relationIRI and ontologyTermIRIs@PostMapping(value="/deletesingletag")
@ResponseBody
public void deleteSingleTag(@Valid @RequestBody
@Valid RemoveTagRequest request)
request - the RemoveTagRequest containing entityTypeId, attributeName, relationIRI and ontologyTermIRI@PostMapping(value="/clearalltags")
@ResponseBody
public void clearAllTags(@RequestParam
String entityTypeId)
entityTypeId - The name of the Entity@PostMapping(value="/autotagattributes") @ResponseBody public Map<String,OntologyTag> autoTagAttributes(@Valid @RequestBody @Valid AutoTagRequest request)
request - containing the entityTypeId and selected ontology identifiersMap containing Attribute name and a Map of Tag iri and label@PostMapping(value="/getontologyterms") @ResponseBody public List<OntologyTerm> getAllOntologyTerms(@Valid @RequestBody @Valid GetOntologyTermRequest request)
request - Containing ontology identifiers and a search termList of OntologyTerms@ExceptionHandler(value=java.lang.RuntimeException.class) @ResponseBody @ResponseStatus(value=INTERNAL_SERVER_ERROR) public ErrorMessageResponse handleRuntimeException(RuntimeException e)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.