-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
start refactor and doc core.worker and worker.springboot
- Loading branch information
Marvin Hofer
committed
Jun 6, 2023
1 parent
7a9eedd
commit 591c4bb
Showing
79 changed files
with
719 additions
and
831 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
4 changes: 1 addition & 3 deletions
4
...mods/core/databus/DatabusIdentifier.scala → ...ia/databus/dataid/DatabusIdentifier.scala
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
2 changes: 1 addition & 1 deletion
2
.../core/databus/DatabusIdentifierType.scala → ...atabus/dataid/DatabusIdentifierType.scala
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
7 changes: 4 additions & 3 deletions
7
...a/databus/mods/core/util/Compressor.scala → ...ia/databus/mods/core/io/Compression.scala
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
13 changes: 6 additions & 7 deletions
13
...edia/databus/mods/core/util/UriUtil.scala → ...pedia/databus/mods/core/io/DataUtil.scala
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
6 changes: 3 additions & 3 deletions
6
...ia/databus/mods/core/util/IORdfUtil.scala → .../dbpedia/databus/mods/core/io/RdfIO.scala
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
2 changes: 1 addition & 1 deletion
2
...edia/databus/mods/model/ModActivity.scala → ...databus/mods/core/model/ModActivity.scala
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,4 +1,4 @@ | ||
package org.dbpedia.databus.mods.model | ||
package org.dbpedia.databus.mods.core.model | ||
|
||
abstract class ModActivity { | ||
|
||
|
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
4 changes: 2 additions & 2 deletions
4
...ds/model/ModActivityMetadataBuilder.scala → ...re/model/ModActivityMetadataBuilder.scala
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
3 changes: 3 additions & 0 deletions
3
...bus-mods-core/src/main/scala/org/dbpedia/databus/mods/core/model/ModActivityRequest.scala
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package org.dbpedia.databus.mods.core.model | ||
|
||
case class ModActivityRequest(dataId: String, accessUri: Option[String]) |
3 changes: 3 additions & 0 deletions
3
...us-mods-core/src/main/scala/org/dbpedia/databus/mods/core/model/ModActivityResponse.scala
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package org.dbpedia.databus.mods.core.model | ||
|
||
case class ModActivityResponse(baseUri: String, data: Array[Byte]) |
21 changes: 21 additions & 0 deletions
21
...-lib/databus-mods-core/src/main/scala/org/dbpedia/databus/mods/core/model/ModResult.scala
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package org.dbpedia.databus.mods.core.model | ||
|
||
import org.dbpedia.databus.dataid.Part | ||
import org.dbpedia.databus.mods.core.MetadataType | ||
|
||
import java.net.URI | ||
|
||
/** | ||
* Data artifact created by a mod activity | ||
* | ||
* @param used the data artifact used as input | ||
* @param id | ||
* @param metadataType | ||
*/ | ||
class ModResult( | ||
val id: URI, | ||
val suffix: String, | ||
val used: URI, | ||
val metadataType: MetadataType | ||
) | ||
|
21 changes: 21 additions & 0 deletions
21
...tabus-mods-core/src/main/scala/org/dbpedia/databus/mods/core/model/ModResultFactory.scala
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package org.dbpedia.databus.mods.core.model | ||
|
||
import org.dbpedia.databus.dataid.Part | ||
import org.dbpedia.databus.mods.core.MetadataType | ||
|
||
import java.net.URI | ||
|
||
object ModResultFactory { | ||
|
||
def enrichment(used: URI): ModResult = { | ||
new ModResult(null, null, used, MetadataType.Enrichment) | ||
} | ||
|
||
def statistics(used: URI): ModResult = { | ||
new ModResult(null, null, used,MetadataType.Statistics) | ||
} | ||
|
||
def summary(used: URI): ModResult = { | ||
new ModResult(null, null, used,MetadataType.Summary) | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...a/databus/mods/model/vocabulary/MOD.scala → ...abus/mods/core/model/vocabulary/MOD.scala
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
2 changes: 1 addition & 1 deletion
2
.../databus/mods/model/vocabulary/PROV.scala → ...bus/mods/core/model/vocabulary/PROV.scala
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
74 changes: 0 additions & 74 deletions
74
...s-mods-core/src/main/scala/org/dbpedia/databus/mods/core/util/DatabusModVocabHelper.scala
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
...atabus-mods-core/src/main/scala/org/dbpedia/databus/mods/core/util/ModActivityUtils.scala
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package org.dbpedia.databus.mods.core.util | ||
|
||
import org.dbpedia.databus.mods.core.io.DataUtil | ||
import org.dbpedia.databus.mods.core.model.ModActivityRequest | ||
|
||
import java.io.InputStream | ||
import java.net.URI | ||
|
||
object ModActivityUtils { | ||
|
||
def openInputStream(modActivityRequest: ModActivityRequest): InputStream = { | ||
modActivityRequest.accessUri match { | ||
case Some(accessUri) => | ||
DataUtil.openStream(new URI(accessUri)) | ||
case None => | ||
DataUtil.openStream(new URI(modActivityRequest.dataId)) | ||
} | ||
} | ||
} |
Oops, something went wrong.