-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* read application version from manifest * NED-Opentapioca reads version from maven * QB-BirthDataWikidata reads version from maven * QB-GAnswerWrapper reads version from maven * QB-TeBaQaWrapper reads version from maven * QB-RuBQWrapper reads version from maven * QB-PlatypusWrapper reads version from maven * QE-Wikidata reads version from maven * TQA-ChatGPTWrapper reads version from maven * LD-shuyo: upgrading Spring Boot Starter Parent * QE-Wikidata: fixing test * QB-PlatypusWrapper: fixing missing parameter * TQA-ChatGPTWrapper: fixing pom * CopyValuesOfPriorGraph reads appVersion from POM * KG2KG-TranslateAnnotationsOfInstance reads version from POM * LD-Shuyo reads appVersion from POM * NED-OpenAI-GPT reads appVersion from POM * DateOfDeathDBpedia reads appVersion from POM * DeepPavlovWrapper reads appVersion from POM * PlatypusWrapper reads appVersion from POM * QB-QAnswer reads appVersion from POM * QBE-QAnswer reads appVersion from POM * TQA-ChatGPTWrapper reads appVersion from POM * adjust components to use dependency management * update used componentparent version * implement test for queries using Jena ARQ * define version range for qanarycomponent-parent --------- Co-authored-by: anbo-de <[email protected]>
- Loading branch information
Showing
45 changed files
with
643 additions
and
863 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
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
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
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
28 changes: 28 additions & 0 deletions
28
qanary-component-LD-Shuyo/src/main/java/eu/wdaqua/qanary/component/shuyo/ld/Application.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,13 +1,41 @@ | ||
package eu.wdaqua.qanary.component.shuyo.ld; | ||
|
||
import java.io.IOException; | ||
|
||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.ComponentScan; | ||
|
||
import com.cybozu.labs.langdetect.LangDetectException; | ||
|
||
import eu.wdaqua.qanary.component.QanaryComponent; | ||
import io.swagger.v3.oas.models.OpenAPI; | ||
import io.swagger.v3.oas.models.info.Info; | ||
import io.swagger.v3.oas.models.info.License; | ||
|
||
@SpringBootApplication | ||
@ComponentScan(basePackages = {"eu.wdaqua.qanary"}) | ||
public class Application { | ||
public static void main(String[] args) { | ||
SpringApplication.run(Application.class, args); | ||
} | ||
|
||
@Bean | ||
public OpenAPI customOpenAPI() { | ||
String appVersion = getClass().getPackage().getImplementationVersion(); | ||
return new OpenAPI().info(new Info() // | ||
.title("Qanary Shuyo Language Detection Component") // | ||
.version(appVersion) // | ||
.description("LD") // | ||
.termsOfService("http://swagger.io/terms/") // | ||
.license(new License().name("Apache 2.0").url("http://springdoc.org")) // | ||
); | ||
} | ||
|
||
@Bean | ||
public QanaryComponent qanaryComponent(@Value("${spring.application.name}") final String name) throws IOException, LangDetectException { | ||
return new LanguageDetection(name); | ||
} | ||
} |
Oops, something went wrong.