Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
🚀
This server has been upgraded to GitLab release
15.7
.
🚀
Open sidebar
memoriav
Memobase 2020
libraries
Normalizer Service Configuration
Commits
bdf2a927
Commit
bdf2a927
authored
Mar 19, 2021
by
Jonas Waeber
Browse files
Update utilities dependency
parent
cb70ba73
Changes
4
Hide whitespace changes
Inline
Side-by-side
build.gradle
View file @
bdf2a927
...
...
@@ -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.+'
...
...
src/main/kotlin/ch/memobase/configs/LocalTransformsLoader.kt
View file @
bdf2a927
...
...
@@ -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
>()
...
...
src/main/kotlin/ch/memobase/rdf/InvalidInputException.kt
deleted
100644 → 0
View file @
cb70ba73
/*
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
)
src/main/kotlin/ch/memobase/rdf/MemobaseModel.kt
View file @
bdf2a927
...
...
@@ -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
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment