Commit 8bbb8927 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Refactor org.memobase to ch.memobase

parent 11497cb3
Pipeline #26593 passed with stages
in 4 minutes and 31 seconds
......@@ -16,7 +16,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.memobase.helpers
package ch.memobase.helpers
import org.apache.logging.log4j.LogManager
......
......@@ -15,7 +15,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.memobase.helpers
package ch.memobase.helpers
data class DocumentResponseSource(
val id: String,
......
......@@ -15,7 +15,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.memobase.helpers
package ch.memobase.helpers
import com.beust.klaxon.Klaxon
import com.beust.klaxon.KlaxonException
......@@ -34,8 +34,8 @@ import org.elasticsearch.index.query.QueryBuilders.boolQuery
import org.elasticsearch.index.query.QueryBuilders.termQuery
import org.elasticsearch.search.Scroll
import org.elasticsearch.search.builder.SearchSourceBuilder
import org.memobase.model.FacetContainer
import org.memobase.model.LanguageContainer
import ch.memobase.model.FacetContainer
import ch.memobase.model.LanguageContainer
/**
......
......@@ -16,12 +16,12 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.memobase.helpers
package ch.memobase.helpers
import com.beust.klaxon.JsonArray
import com.beust.klaxon.JsonObject
import org.apache.logging.log4j.LogManager
import org.memobase.model.LanguageContainer
import ch.memobase.model.LanguageContainer
object Extract {
private val log = LogManager.getLogger("ExtractHelper")
......
......@@ -16,7 +16,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.memobase.helpers
package ch.memobase.helpers
import com.beust.klaxon.JsonObject
import org.apache.logging.log4j.LogManager
......
......@@ -16,7 +16,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.memobase.helpers
package ch.memobase.helpers
import ch.memobase.rdf.EBUCORE
import com.beust.klaxon.JsonArray
......
......@@ -15,7 +15,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.memobase.helpers
package ch.memobase.helpers
import ch.memobase.rdf.NS
import com.beust.klaxon.JsonObject
......
......@@ -15,7 +15,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.memobase.helpers
package ch.memobase.helpers
import ch.memobase.rdf.RICO
import ch.memobase.rdf.RICO.Types
......@@ -25,7 +25,8 @@ import com.beust.klaxon.Klaxon
import com.beust.klaxon.KlaxonException
import java.io.StringReader
import org.apache.logging.log4j.LogManager
import org.memobase.model.UpdateQuery
import ch.memobase.model.UpdateQuery
import ch.memobase.helpers.Constants.CorporateBodyType
object JsonUtility {
......@@ -63,7 +64,7 @@ object JsonUtility {
it[RICO.type.localName] !in listOf(Types.RecordSet.original, Types.RecordSet.related)
) {
Pair(recordSetTag, it)
} else if (it[Constants.atType] == RICO.CorporateBody.uri && it[Constants.ricoType] == Constants.CorporateBodyType.memobaseInstitution) {
} else if (it[Constants.atType] == RICO.CorporateBody.uri && it[Constants.ricoType] == CorporateBodyType.memobaseInstitution) {
Pair(institutionTag, it)
} else {
Pair(it[Constants.entityId] as String, it)
......
......@@ -15,11 +15,11 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.memobase.helpers
package ch.memobase.helpers
import com.github.doyaaaaaken.kotlincsv.dsl.csvReader
import org.memobase.model.FacetContainer
import org.memobase.model.LanguageContainer
import ch.memobase.model.FacetContainer
import ch.memobase.model.LanguageContainer
import java.io.File
object LoadFile {
......
......@@ -15,9 +15,9 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.memobase.helpers
package ch.memobase.helpers
import org.memobase.model.FacetContainer
import ch.memobase.model.FacetContainer
class TranslationMappers(
institutionTypeLabelsPath: String,
......
......@@ -15,11 +15,11 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.memobase.helpers
package ch.memobase.helpers
import org.memobase.model.FacetContainer
import org.memobase.model.LanguageContainer
import org.memobase.model.UpdateQuery
import ch.memobase.model.FacetContainer
import ch.memobase.model.LanguageContainer
import ch.memobase.model.UpdateQuery
class UpdateQueryBuilder {
private val recordSetFacetTerm = "recordSet.facet"
......
......@@ -16,7 +16,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.memobase.model
package ch.memobase.model
import com.fasterxml.jackson.annotation.JsonInclude
......
......@@ -16,7 +16,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.memobase.model
package ch.memobase.model
import com.fasterxml.jackson.annotation.JsonInclude
......
......@@ -16,11 +16,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.memobase.model
package ch.memobase.model
import com.fasterxml.jackson.annotation.JsonIgnore
import com.fasterxml.jackson.annotation.JsonInclude
import org.memobase.model.SimpleFacetContainer.Companion
@JsonInclude(JsonInclude.Include.NON_EMPTY)
data class DocumentsSearchDoc(
......
......@@ -15,7 +15,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.memobase.model
package ch.memobase.model
import com.fasterxml.jackson.annotation.JsonInclude
......
......@@ -15,7 +15,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.memobase.model
package ch.memobase.model
import com.fasterxml.jackson.annotation.JsonInclude
......
......@@ -16,7 +16,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.memobase.model
package ch.memobase.model
import com.fasterxml.jackson.annotation.JsonInclude
......
......@@ -15,11 +15,11 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.memobase.model
package ch.memobase.model
import com.fasterxml.jackson.annotation.JsonIgnore
import com.fasterxml.jackson.annotation.JsonInclude
import org.memobase.helpers.Date
import ch.memobase.helpers.Date
@JsonInclude(JsonInclude.Include.NON_EMPTY)
data class InstitutionSearchDoc(
......
......@@ -15,7 +15,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.memobase.model
package ch.memobase.model
data class IntegerRange(
val gte: Int,
......
......@@ -16,10 +16,10 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package org.memobase.model
package ch.memobase.model
import com.fasterxml.jackson.annotation.JsonInclude
import org.memobase.helpers.Constants
import ch.memobase.helpers.Constants
@JsonInclude(JsonInclude.Include.NON_NULL)
data class LanguageContainer(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment