Skip to content

Commit a8db95f

Browse files
authored
Merge pull request #35 from Paulanerus/dev
Dev
2 parents 347ae73 + 5aaeddb commit a8db95f

18 files changed

Lines changed: 442 additions & 359 deletions

File tree

.github/workflows/build-and-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,12 @@ jobs:
111111

112112
- name: Upload Windows Artifact
113113
if: matrix.os == 'windows-latest'
114-
run: gh release upload v${{ env.VERSION }} build/compose/binaries/main-release/msi/TextExplorer-${{ env.VERSION }}.msi --clobber
114+
run: gh release upload v${{ env.VERSION }} build/compose/binaries/main-release/msi/TextVariantExplorer-${{ env.VERSION }}.msi --clobber
115115

116116
- name: Upload Linux Artifact
117117
if: matrix.os == 'ubuntu-latest'
118-
run: gh release upload v${{ env.VERSION }} build/compose/binaries/main-release/deb/textexplorer_${{ env.VERSION }}_amd64.deb --clobber
118+
run: gh release upload v${{ env.VERSION }} build/compose/binaries/main-release/deb/textvariantexplorer_${{ env.VERSION }}_amd64.deb --clobber
119119

120120
- name: Upload macOS Artifact
121121
if: matrix.os == 'macos-latest'
122-
run: gh release upload v${{ env.VERSION }} build/compose/binaries/main-release/dmg/TextExplorer-${{ env.VERSION }}.Dmg --clobber
122+
run: gh release upload v${{ env.VERSION }} build/compose/binaries/main-release/dmg/TextVariantExplorer-${{ env.VERSION }}.Dmg --clobber

CITATION.cff

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cff-version: 1.2.0
2-
title: TextExplorer
2+
title: TextVariantExplorer
33
message: >-
44
If you use this software, please cite it using the
55
metadata from this file.
@@ -8,13 +8,13 @@ authors:
88
- given-names: Paul
99
family-names: Fröhlich
1010
repository-code: 'https://github.com/Paulanerus/TextExplorer'
11-
url: 'https://paulee.dev/textexplorer/'
11+
url: 'https://paulee.dev/textvariantexplorer/'
1212
repository-artifact: >-
1313
https://github.com/Paulanerus/TextExplorer/releases/tag/v1.2.3
1414
abstract: >-
1515
A tool designed for the exploration, analysis, and
1616
comparison of textual data variants.
1717
license: GPL-3.0
1818
commit: 2bbaa5a
19-
version: 1.2.3
20-
date-released: '2025-08-05'
19+
version: 1.3.0
20+
date-released: '2025-08-11'

README.md

Lines changed: 5 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,16 @@
1-
# TextExplorer
1+
# TextVariantExplorer
22

3-
This is a tool designed for the exploration and comparison of variants of textual data.
3+
Is an open-source, cross-platform tool designed for the exploration and comparison of text variants, making it easier to analyze differences and similarities in textual data.
44

55
## Getting Started
66

7-
### Initial Setup
7+
You can download the latest version of TextVariantExplorer from the [**GitHub releases page**](https://github.com/Paulanerus/TextExplorer/releases/latest).
88

9-
1. **Download and Install**
10-
- Get the [latest release](https://github.com/Paulanerus/TextExplorer/releases/latest) of the application and install it on your system
11-
12-
2. **Obtain a Plugin and Dataset**
13-
- Download a demo plugin from the release page along with its [corresponding dataset](https://zenodo.org/records/12723324), or create your own
14-
15-
3. **Load the Data**
16-
- Start the application
17-
- Load the data via the menu in the top right-corner of the window
18-
- The data layout can be configured in the new window
19-
- When the configuration is complete, press the 'Load' button
20-
- Depending on the size of your dataset, the loading process may take some time
21-
22-
4. **Load the Plugin**
23-
- Load the plugin via the menu in the top right-corner of the window
24-
25-
### Search
26-
27-
1. **Select a Datapool**
28-
- If multiple datasets are available, you can switch between them using the menu in the top-left corner.
29-
30-
2. **Perform a Search**
31-
- Enter simple words or sentences to search through the dataset.
32-
- Use Boolean operators to refine your search: and, and not, or
33-
34-
3. **Use Name Variants**
35-
- The syntax for searching name variants is: `@name:value`
36-
37-
4. **Apply Pre-Filters**
38-
- You can pre-filter search results using the following syntax: `@name:value1:value2`
39-
40-
## Development
41-
42-
To create plugins for TextExplorer, see the [API ReadMe](api/README.md) for details.
9+
For comprehensive usage guides and development information, please see the [**official documentation**](https://textvariantexplorer.readthedocs.io/en/latest/) on Read the Docs.
4310

4411
## Citation
4512

46-
If you use TextExplorer in your research, please cite it using the information provided in the [CITATION.cff](CITATION.cff) file.
13+
If you use TextVariantExplorer in your research, please cite it using the information provided in the [CITATION.cff](CITATION.cff) file.
4714

4815
## Support
4916

api/README.md

Lines changed: 0 additions & 164 deletions
This file was deleted.

api/src/main/kotlin/dev/paulee/api/data/Data.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@ sealed interface SourceField {
9393
data class BasicField(
9494
override val name: String,
9595
override val fieldType: FieldType,
96-
@JsonInclude(JsonInclude.Include.NON_EMPTY) override val sourceLink: String = ""
96+
@param:JsonInclude(JsonInclude.Include.NON_EMPTY) override val sourceLink: String = ""
9797
) :
9898
SourceField
9999

100100
data class IndexField(
101101
override val name: String,
102102
override val fieldType: FieldType,
103-
@JsonInclude(JsonInclude.Include.NON_EMPTY)
103+
@param:JsonInclude(JsonInclude.Include.NON_EMPTY)
104104
override val sourceLink: String = "",
105105
val lang: Language,
106106
val default: Boolean = false
@@ -109,7 +109,7 @@ data class IndexField(
109109
data class UniqueField(
110110
override val name: String,
111111
override val fieldType: FieldType,
112-
@JsonInclude(JsonInclude.Include.NON_EMPTY)
112+
@param:JsonInclude(JsonInclude.Include.NON_EMPTY)
113113
override val sourceLink: String = "",
114114
val identify: Boolean = false
115115
) : SourceField

api/src/main/kotlin/dev/paulee/api/data/IDataService.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package dev.paulee.api.data
22

33
import dev.paulee.api.data.provider.IStorageProvider
4+
import dev.paulee.api.data.provider.QueryOrder
45
import java.io.Closeable
56
import java.nio.file.Path
67

@@ -20,7 +21,9 @@ interface IDataService : Closeable {
2021

2122
fun getAvailableDataInfo(): Set<DataInfo>
2223

23-
fun getPage(query: String, pageCount: Int): Pair<List<Map<String, String>>, Map<String, List<Map<String, String>>>>
24+
fun getSuggestions(field: String, value: String): List<String>
25+
26+
fun getPage(query: String, order: QueryOrder?, pageCount: Int): Pair<List<Map<String, String>>, Map<String, List<Map<String, String>>>>
2427

2528
fun getPageCount(query: String): Triple<Long, Long, Set<String>>
2629

api/src/main/kotlin/dev/paulee/api/data/provider/StorageProvider.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import dev.paulee.api.data.DataInfo
44
import java.io.Closeable
55
import java.nio.file.Path
66

7+
typealias QueryOrder = Pair<String, Boolean>
8+
79
enum class StorageType {
810
SQLITE,
911
}
@@ -25,6 +27,7 @@ interface IStorageProvider : Closeable {
2527
ids: Set<Long> = emptySet(),
2628
whereClause: List<String> = emptyList(),
2729
filter: List<String> = emptyList(),
30+
order: QueryOrder? = null,
2831
offset: Int = 0,
2932
limit: Int = Int.MAX_VALUE,
3033
): List<Map<String, String>>
@@ -35,4 +38,6 @@ interface IStorageProvider : Closeable {
3538
whereClause: List<String> = emptyList(),
3639
filter: List<String> = emptyList(),
3740
): Long
41+
42+
fun suggestions(name: String, field: String, value: String, amount: Int): List<String>
3843
}

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ compose.desktop {
4545

4646
nativeDistributions {
4747
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
48-
packageName = "TextExplorer"
48+
packageName = "TextVariantExplorer"
4949

5050
modules += listOf("java.sql")
5151
}

0 commit comments

Comments
 (0)