diff --git a/databus-mods-lib/pom.xml b/databus-mods-lib/pom.xml index 6c950f7..28671f5 100755 --- a/databus-mods-lib/pom.xml +++ b/databus-mods-lib/pom.xml @@ -22,11 +22,11 @@ - - com.github.Vehnem - rdfdetector - master-SNAPSHOT - + + + + + org.apache.jena @@ -59,9 +59,32 @@ com.github.jsonld-java jsonld-java - + + + + + + + + + + + + + + + + + + + + + info.picocli + picocli-spring-boot-starter + 4.6.1 + diff --git a/databus-mods-lib/src/test/scala/org/dbpedia/databus_mods/lib/util/Tests.scala b/databus-mods-lib/src/test/scala/org/dbpedia/databus_mods/lib/util/Tests.scala index 319761d..8a18121 100755 --- a/databus-mods-lib/src/test/scala/org/dbpedia/databus_mods/lib/util/Tests.scala +++ b/databus-mods-lib/src/test/scala/org/dbpedia/databus_mods/lib/util/Tests.scala @@ -1,47 +1,47 @@ -package org.dbpedia.databus_mods.lib.util - -import java.io.BufferedInputStream -import java.net.URL - -import org.apache.jena.riot.Lang -import org.dbpedia.databus.client.filehandling.convert.compression.Compressor -import org.dice_research.rdfdetector.RdfSerializationDetector -import org.scalatest.funsuite.AnyFunSuite - -import scala.collection.JavaConversions._ - -class Tests extends AnyFunSuite { - - test("detect RDF ser.") { - - val detector = new RdfSerializationDetector() - - val u = "http://downloads.dbpedia.org/repo/dbpedia/generic/labels/2016.10.01/dataid.ttl" - // val u = "http://downloads.dbpedia.org/repo/dbpedia/generic/labels/2020.07.01/labels_lang%3dde.ttl.bz2" - val is = new URL( - u - ).openStream() - - val langs = detector.detect( - new BufferedInputStream( - Compressor.decompress( - new BufferedInputStream( - is - )))) - - is.close() - langs.foreach(println) - - /** ****************************/ - - val lang = langs.head - val is2 = new URL( - u - ).openStream() - -// Lang.N3 -// val cnt = RdfFileHelpers.readAsTriplesIterator(is2, lang).toIterator.size - -// println(cnt) - } -} +//package org.dbpedia.databus_mods.lib.util +// +//import java.io.BufferedInputStream +//import java.net.URL +// +//import org.apache.jena.riot.Lang +//import org.dbpedia.databus.client.filehandling.convert.compression.Compressor +//import org.dice_research.rdfdetector.RdfSerializationDetector +//import org.scalatest.funsuite.AnyFunSuite +// +//import scala.collection.JavaConversions._ +// +//class Tests extends AnyFunSuite { +// +// test("detect RDF ser.") { +// +// val detector = new RdfSerializationDetector() +// +// val u = "http://downloads.dbpedia.org/repo/dbpedia/generic/labels/2016.10.01/dataid.ttl" +// // val u = "http://downloads.dbpedia.org/repo/dbpedia/generic/labels/2020.07.01/labels_lang%3dde.ttl.bz2" +// val is = new URL( +// u +// ).openStream() +// +// val langs = detector.detect( +// new BufferedInputStream( +// Compressor.decompress( +// new BufferedInputStream( +// is +// )))) +// +// is.close() +// langs.foreach(println) +// +// /** ****************************/ +// +// val lang = langs.head +// val is2 = new URL( +// u +// ).openStream() +// +//// Lang.N3 +//// val cnt = RdfFileHelpers.readAsTriplesIterator(is2, lang).toIterator.size +// +//// println(cnt) +// } +//}