Commit bdf2a927 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

Update utilities dependency

parent cb70ba73
......@@ -48,7 +48,7 @@ dependencies {
//compile group: 'org.elasticsearch.client', name: 'elasticsearch-rest-high-level-client', version: '7.1.0'
implementation "org.apache.logging.log4j:log4j-api:${log4jV}"
implementation 'org.memobase:memobase-service-utilities:2.0.4'
implementation 'org.memobase:memobase-service-utilities:2.0.15'
// YAML Parser
implementation 'com.fasterxml.jackson.core:jackson-databind:2.11.+'
implementation 'com.fasterxml.jackson.core:jackson-core:2.11.+'
......
......@@ -30,7 +30,7 @@ import java.util.regex.PatternSyntaxException
import org.apache.logging.log4j.LogManager
class LocalTransformsLoader(private val data: ByteArray) {
private val log = LogManager.getLogger("LocalTransformsLoader")
private val log = LogManager.getLogger(this::class.java)
private val objectMapper = ObjectMapper(YAMLFactory()).registerKotlinModule()
private val transforms = mutableListOf<ITransformer>()
......
/*
Copyright 2020 Jonas Waeber
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package ch.memobase.rdf
/**
* This exception is used to signal that the input message contains invalid data.
*/
class InvalidInputException(message: String) : Exception(message)
......@@ -15,6 +15,7 @@
*/
package ch.memobase.rdf
import ch.memobase.exceptions.InvalidInputException
import java.io.StringWriter
import org.apache.jena.graph.Factory
import org.apache.jena.rdf.model.Resource
......@@ -22,6 +23,7 @@ import org.apache.jena.rdf.model.impl.ModelCom
import org.apache.jena.riot.RDFDataMgr
import org.apache.jena.riot.RDFFormat
class MemobaseModel : ModelCom(Factory.createGraphMem()) {
fun createRicoResource(rdfType: Resource, ricoType: String): RicoResource {
......
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