diff --git a/inception/inception-project-initializers-basic/src/main/java/de/tudarmstadt/ukp/inception/project/initializers/basic/BasicProjectInitializer.java b/inception/inception-project-initializers-basic/src/main/java/de/tudarmstadt/ukp/inception/project/initializers/basic/BasicProjectInitializer.java index 58c5125a12f..02cefbcf718 100644 --- a/inception/inception-project-initializers-basic/src/main/java/de/tudarmstadt/ukp/inception/project/initializers/basic/BasicProjectInitializer.java +++ b/inception/inception-project-initializers-basic/src/main/java/de/tudarmstadt/ukp/inception/project/initializers/basic/BasicProjectInitializer.java @@ -26,6 +26,7 @@ import org.apache.wicket.request.resource.PackageResourceReference; import org.apache.wicket.request.resource.ResourceReference; import org.springframework.context.ApplicationContext; +import org.springframework.core.annotation.Order; import de.tudarmstadt.ukp.clarin.webanno.model.Project; import de.tudarmstadt.ukp.clarin.webanno.project.initializers.QuickProjectInitializer; @@ -38,6 +39,7 @@ * {@link InceptionBasicProjectInitializersAutoConfiguration#basicProjectInitializer}. *

*/ +@Order(1000) public class BasicProjectInitializer implements QuickProjectInitializer { diff --git a/inception/inception-project-initializers-basic/src/main/resources/de/tudarmstadt/ukp/inception/project/initializers/basic/thumbnail.svg b/inception/inception-project-initializers-basic/src/main/resources/de/tudarmstadt/ukp/inception/project/initializers/basic/thumbnail.svg index 8c41ffaa4eb..d6659d8cf31 100644 --- a/inception/inception-project-initializers-basic/src/main/resources/de/tudarmstadt/ukp/inception/project/initializers/basic/thumbnail.svg +++ b/inception/inception-project-initializers-basic/src/main/resources/de/tudarmstadt/ukp/inception/project/initializers/basic/thumbnail.svg @@ -43,7 +43,7 @@ inkscape:document-units="mm" showgrid="true" inkscape:zoom="2.8284271" - inkscape:cx="224.85996" + inkscape:cx="225.03674" inkscape:cy="113.49064" inkscape:window-width="1680" inkscape:window-height="931" @@ -620,7 +620,7 @@ inkscape:path-effect="#path-effect9" inkscape:original-d="m 32.687567,52.608504 c -0.197209,-0.172558 -0.394417,-0.345115 -0.591626,-0.517673 -0.246515,-0.07395 -0.493021,-0.147906 -0.739532,-0.221859 -0.271167,0.07395 -0.542323,0.147906 -0.813485,0.221859 -0.271167,0.221864 -0.542323,0.443719 -0.813485,0.665579 -0.135583,0.246515 -0.271162,0.493021 -0.406742,0.739532 0.03698,0.382099 0.07395,0.764183 0.110929,1.146274 0.123258,0.271167 0.246511,0.542324 0.369766,0.813485 0.23419,0.32047 0.46837,0.640928 0.702556,0.961392 0.32047,0.271167 0.640927,0.542323 0.961391,0.813485 0.271167,0.258841 0.542323,0.517672 0.813485,0.776508 0.06163,0.0493 0.123255,0.0986 0.184883,0.147907 0.23419,-0.135584 0.46837,-0.271162 0.702556,-0.406743 0.283492,-0.221864 0.566974,-0.443719 0.850461,-0.665579 0.23419,-0.221864 0.46837,-0.443719 0.702555,-0.665578 0.221864,-0.23419 0.44372,-0.46837 0.665579,-0.702555 0.160235,-0.258842 0.320464,-0.517673 0.480696,-0.776509 0.07395,-0.209538 0.147906,-0.419068 0.221859,-0.628602 0,-0.258841 0,-0.517672 0,-0.776509 -0.06163,-0.234189 -0.123255,-0.46837 -0.184883,-0.702555 -0.184886,-0.197212 -0.369766,-0.394417 -0.554649,-0.591625 -0.221864,-0.110932 -0.443719,-0.22186 -0.665578,-0.33279 -0.221864,0.02465 -0.443719,0.0493 -0.665579,0.07395 -0.184887,0.07396 -0.369766,0.147907 -0.554649,0.22186 -0.258841,0.135584 -0.517672,0.271162 -0.776508,0.406743 z" transform="translate(-3.1805074,-3.6482291)" /> */ +@Order(3000) public class BasicDocumentLabelingProjectInitializer implements QuickProjectInitializer { diff --git a/inception/inception-project-initializers-sentencelabeling/src/main/java/de/tudarmstadt/ukp/inception/project/initializers/sentencelabeling/SentenceLabelingProjectInitializer.java b/inception/inception-project-initializers-sentencelabeling/src/main/java/de/tudarmstadt/ukp/inception/project/initializers/sentencelabeling/SentenceLabelingProjectInitializer.java index 7430bea3288..341f95f31d4 100644 --- a/inception/inception-project-initializers-sentencelabeling/src/main/java/de/tudarmstadt/ukp/inception/project/initializers/sentencelabeling/SentenceLabelingProjectInitializer.java +++ b/inception/inception-project-initializers-sentencelabeling/src/main/java/de/tudarmstadt/ukp/inception/project/initializers/sentencelabeling/SentenceLabelingProjectInitializer.java @@ -29,6 +29,7 @@ import org.apache.commons.io.IOUtils; import org.apache.wicket.request.resource.PackageResourceReference; import org.apache.wicket.request.resource.ResourceReference; +import org.springframework.core.annotation.Order; import de.tudarmstadt.ukp.clarin.webanno.model.Project; import de.tudarmstadt.ukp.clarin.webanno.project.initializers.QuickProjectInitializer; @@ -42,6 +43,7 @@ * {@link InceptionSentenceLabelingProjectInitializersAutoConfiguration#sentenceLabelingProjectInitializer}. *

*/ +@Order(2000) public class SentenceLabelingProjectInitializer implements QuickProjectInitializer { diff --git a/inception/inception-project-initializers-ud/src/main/java/de/tudarmstadt/ukp/inception/project/initializers/ud/UniversalDependenciesProjectInitializer.java b/inception/inception-project-initializers-ud/src/main/java/de/tudarmstadt/ukp/inception/project/initializers/ud/UniversalDependenciesProjectInitializer.java index fcbb3901810..e503c6258e9 100644 --- a/inception/inception-project-initializers-ud/src/main/java/de/tudarmstadt/ukp/inception/project/initializers/ud/UniversalDependenciesProjectInitializer.java +++ b/inception/inception-project-initializers-ud/src/main/java/de/tudarmstadt/ukp/inception/project/initializers/ud/UniversalDependenciesProjectInitializer.java @@ -20,9 +20,14 @@ import static java.util.Arrays.asList; import java.io.IOException; +import java.lang.invoke.MethodHandles; import java.util.List; import java.util.Optional; +import org.apache.wicket.request.resource.PackageResourceReference; +import org.apache.wicket.request.resource.ResourceReference; +import org.springframework.core.annotation.Order; + import de.tudarmstadt.ukp.clarin.webanno.model.Project; import de.tudarmstadt.ukp.clarin.webanno.project.initializers.DependencyLayerInitializer; import de.tudarmstadt.ukp.clarin.webanno.project.initializers.LemmaLayerInitializer; @@ -40,15 +45,25 @@ * {@link ProjectInitializersAutoConfiguration#standardProjectInitializer}. *

*/ +@Order(6000) public class UniversalDependenciesProjectInitializer implements QuickProjectInitializer { + private static final PackageResourceReference THUMBNAIL = new PackageResourceReference( + MethodHandles.lookup().lookupClass(), "thumbnail.svg"); + @Override public String getName() { return "Universal Dependencies"; } + @Override + public Optional getThumbnail() + { + return Optional.of(THUMBNAIL); + } + @Override public boolean alreadyApplied(Project aProject) { diff --git a/inception/inception-project-initializers-ud/src/main/java/de/tudarmstadt/ukp/inception/project/initializers/ud/thumbnail.svg b/inception/inception-project-initializers-ud/src/main/java/de/tudarmstadt/ukp/inception/project/initializers/ud/thumbnail.svg new file mode 100644 index 00000000000..227d7285ba6 --- /dev/null +++ b/inception/inception-project-initializers-ud/src/main/java/de/tudarmstadt/ukp/inception/project/initializers/ud/thumbnail.svg @@ -0,0 +1,1110 @@ + + + + + + diff --git a/inception/inception-project-initializers-wikidatalinking/src/main/java/de/tudarmstadt/ukp/inception/project/initializers/wikidatalinking/EntityLinkingProjectInitializer.java b/inception/inception-project-initializers-wikidatalinking/src/main/java/de/tudarmstadt/ukp/inception/project/initializers/wikidatalinking/EntityLinkingProjectInitializer.java index 1c2198c95db..3ebcca6019c 100644 --- a/inception/inception-project-initializers-wikidatalinking/src/main/java/de/tudarmstadt/ukp/inception/project/initializers/wikidatalinking/EntityLinkingProjectInitializer.java +++ b/inception/inception-project-initializers-wikidatalinking/src/main/java/de/tudarmstadt/ukp/inception/project/initializers/wikidatalinking/EntityLinkingProjectInitializer.java @@ -18,11 +18,15 @@ package de.tudarmstadt.ukp.inception.project.initializers.wikidatalinking; import java.io.IOException; +import java.lang.invoke.MethodHandles; import java.util.ArrayList; import java.util.List; import java.util.Optional; +import org.apache.wicket.request.resource.PackageResourceReference; +import org.apache.wicket.request.resource.ResourceReference; import org.springframework.context.ApplicationContext; +import org.springframework.core.annotation.Order; import de.tudarmstadt.ukp.clarin.webanno.model.AnnotationFeature; import de.tudarmstadt.ukp.clarin.webanno.model.AnnotationLayer; @@ -41,9 +45,13 @@ * {@link WikiDataLinkingProjectInitializersAutoConfiguration#entityLinkingProjectInitializer}. *

*/ +@Order(5000) public class EntityLinkingProjectInitializer implements QuickProjectInitializer { + private static final PackageResourceReference THUMBNAIL = new PackageResourceReference( + MethodHandles.lookup().lookupClass(), "thumbnail.svg"); + private final AnnotationSchemaService annotationService; private final ApplicationContext context; @@ -60,6 +68,12 @@ public String getName() return "Entity linking (Wikidata)"; } + @Override + public Optional getThumbnail() + { + return Optional.of(THUMBNAIL); + } + @Override public boolean alreadyApplied(Project aProject) { diff --git a/inception/inception-project-initializers-wikidatalinking/src/main/java/de/tudarmstadt/ukp/inception/project/initializers/wikidatalinking/thumbnail.svg b/inception/inception-project-initializers-wikidatalinking/src/main/java/de/tudarmstadt/ukp/inception/project/initializers/wikidatalinking/thumbnail.svg new file mode 100644 index 00000000000..9cbe90ad870 --- /dev/null +++ b/inception/inception-project-initializers-wikidatalinking/src/main/java/de/tudarmstadt/ukp/inception/project/initializers/wikidatalinking/thumbnail.svg @@ -0,0 +1,1198 @@ + + + + + + diff --git a/inception/inception-project-initializers/src/main/java/de/tudarmstadt/ukp/clarin/webanno/project/initializers/StandardProjectInitializer.java b/inception/inception-project-initializers/src/main/java/de/tudarmstadt/ukp/clarin/webanno/project/initializers/StandardProjectInitializer.java index 4d9865f7582..598d209ac65 100644 --- a/inception/inception-project-initializers/src/main/java/de/tudarmstadt/ukp/clarin/webanno/project/initializers/StandardProjectInitializer.java +++ b/inception/inception-project-initializers/src/main/java/de/tudarmstadt/ukp/clarin/webanno/project/initializers/StandardProjectInitializer.java @@ -18,12 +18,16 @@ package de.tudarmstadt.ukp.clarin.webanno.project.initializers; import java.io.IOException; +import java.lang.invoke.MethodHandles; import java.util.List; import java.util.Optional; import java.util.stream.Collectors; +import org.apache.wicket.request.resource.PackageResourceReference; +import org.apache.wicket.request.resource.ResourceReference; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Lazy; +import org.springframework.core.annotation.Order; import de.tudarmstadt.ukp.clarin.webanno.model.Project; import de.tudarmstadt.ukp.clarin.webanno.project.initializers.config.ProjectInitializersAutoConfiguration; @@ -36,9 +40,13 @@ * {@link ProjectInitializersAutoConfiguration#standardProjectInitializer}. *

*/ +@Order(100000) public class StandardProjectInitializer implements QuickProjectInitializer { + private static final PackageResourceReference THUMBNAIL = new PackageResourceReference( + MethodHandles.lookup().lookupClass(), "webanno.png"); + private final ProjectService projectService; @Autowired @@ -53,6 +61,12 @@ public String getName() return "Classic linguistic project"; } + @Override + public Optional getThumbnail() + { + return Optional.of(THUMBNAIL); + } + @Override public boolean alreadyApplied(Project aProject) { diff --git a/inception/inception-project-initializers/src/main/java/de/tudarmstadt/ukp/clarin/webanno/project/initializers/empty/EmptyProjectInitializer.java b/inception/inception-project-initializers/src/main/java/de/tudarmstadt/ukp/clarin/webanno/project/initializers/empty/EmptyProjectInitializer.java index 0ee8fbbc4f2..15747937c2e 100644 --- a/inception/inception-project-initializers/src/main/java/de/tudarmstadt/ukp/clarin/webanno/project/initializers/empty/EmptyProjectInitializer.java +++ b/inception/inception-project-initializers/src/main/java/de/tudarmstadt/ukp/clarin/webanno/project/initializers/empty/EmptyProjectInitializer.java @@ -20,9 +20,14 @@ import static java.util.Arrays.asList; import java.io.IOException; +import java.lang.invoke.MethodHandles; import java.util.List; import java.util.Optional; +import org.apache.wicket.request.resource.PackageResourceReference; +import org.apache.wicket.request.resource.ResourceReference; +import org.springframework.core.annotation.Order; + import de.tudarmstadt.ukp.clarin.webanno.model.Project; import de.tudarmstadt.ukp.clarin.webanno.project.initializers.QuickProjectInitializer; import de.tudarmstadt.ukp.clarin.webanno.project.initializers.SentenceLayerInitializer; @@ -36,15 +41,25 @@ * {@link ProjectInitializersAutoConfiguration#emptyProjectInitializer}. *

*/ +@Order(4000) public class EmptyProjectInitializer implements QuickProjectInitializer { + private static final PackageResourceReference THUMBNAIL = new PackageResourceReference( + MethodHandles.lookup().lookupClass(), "thumbnail.svg"); + @Override public String getName() { return "Blank project (no layers)"; } + @Override + public Optional getThumbnail() + { + return Optional.of(THUMBNAIL); + } + @Override public boolean alreadyApplied(Project aProject) { diff --git a/inception/inception-project-initializers/src/main/java/de/tudarmstadt/ukp/clarin/webanno/project/initializers/empty/thumbnail.svg b/inception/inception-project-initializers/src/main/java/de/tudarmstadt/ukp/clarin/webanno/project/initializers/empty/thumbnail.svg new file mode 100644 index 00000000000..d94472a5691 --- /dev/null +++ b/inception/inception-project-initializers/src/main/java/de/tudarmstadt/ukp/clarin/webanno/project/initializers/empty/thumbnail.svg @@ -0,0 +1,1294 @@ + + + + + +MusicDentistPharmacyE=m.c2A b c ...100100011 diff --git a/inception/inception-project-initializers/src/main/java/de/tudarmstadt/ukp/clarin/webanno/project/initializers/webanno.png b/inception/inception-project-initializers/src/main/java/de/tudarmstadt/ukp/clarin/webanno/project/initializers/webanno.png new file mode 100644 index 00000000000..c2755029367 Binary files /dev/null and b/inception/inception-project-initializers/src/main/java/de/tudarmstadt/ukp/clarin/webanno/project/initializers/webanno.png differ diff --git a/inception/inception-ui-dashboard/src/main/java/de/tudarmstadt/ukp/inception/ui/core/dashboard/projectlist/ProjectTemplateSelectionDialogPanel.html b/inception/inception-ui-dashboard/src/main/java/de/tudarmstadt/ukp/inception/ui/core/dashboard/projectlist/ProjectTemplateSelectionDialogPanel.html index 74027686e11..1036ede5ac1 100644 --- a/inception/inception-ui-dashboard/src/main/java/de/tudarmstadt/ukp/inception/ui/core/dashboard/projectlist/ProjectTemplateSelectionDialogPanel.html +++ b/inception/inception-ui-dashboard/src/main/java/de/tudarmstadt/ukp/inception/ui/core/dashboard/projectlist/ProjectTemplateSelectionDialogPanel.html @@ -20,9 +20,14 @@