Skip to content

This project implements a multi-language header suggestion service that interacts with Grafterizer and ASIA ecosystem to help the used the annotate a table at schema level in several languages. This work is part of EuBusinessGraph EU project.

License

Notifications You must be signed in to change notification settings

UNIMIBInside/ASIA-suggester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multi-language Annotation Suggester (ASIA-MAS)

This project implements a multi-language header suggestion service based on ABSTAT that interacts with Grafterizer and ASIA ecosystem to help the used the annotate a table at schema level in several languages. This work is part of EuBusinessGraph EU project.

Requirements and Prerequisites

  • JDk 8
  • An Azure subscription key for Translator Text (to get one follow this tutorial)
  • ABSTAT credentials

Build and Run

From root directory:

$ cd suggester
$ ./mvnw package
$ java -jar target/suggester-0.1.jar --suggester.translator.subscription-key=XXXXXXXXXXXXXXX  --suggester.abstat.auth-username=XXXX --suggester.abstat.auth-password=XXXX --suggester.abstat.password=XXXX --suggester.abstat.username=XXXX

Keys can also be set as environment variables:

(on Linux)
$ SUGGESTER_TRANSLATOR_SUBSCRIPTION_KEY=XXXXX
$ echo $SUGGESTER_TRANSLATOR_SUBSCRIPTION_KEY
$ java -jar target/suggester-0.1.jar

By default, ASIA-MAS will run on port 8085. To use a different port, set the server.port property as follows when running the program:

java -jar target/suggester-0.1.jar -Dserver.port=7000

To create a Docker container from sources:

$ cd suggester
$ ./mvnw clean package
$ ./mvnw docker:build -Ddocker.account.name=<ACCOUNT_NAME>

To run the just created Docker container:

$ docker run -e SUGGESTER_TRANSLATOR_SUBSCRIPTION_KEY=XXXX -e SUGGESTER_ABSTAT_AUTH_USERNAME=XXXX -e SUGGESTER_ABSTAT_AUTH_PASSWORD=XXXX -e SUGGESTER_ABSTAT_USERNAME=XXXX -e SUGGESTER_ABSTAT_PASSWORD=XXXX  <ACCOUNT_NAME>/asiasuggester

A precompiled Docker image of ASIA-MAS can be found at:

https://hub.docker.com/r/miciav/asiasuggester

A list of third-party libraries together with their licenses is reported in THIRD-PARTY.txt

To update the list of third party license file run:

$ mvn license:add-third-party  

About

This project implements a multi-language header suggestion service that interacts with Grafterizer and ASIA ecosystem to help the used the annotate a table at schema level in several languages. This work is part of EuBusinessGraph EU project.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published