Commit 6ae70f5f authored by Günter Hipler's avatar Günter Hipler
Browse files

resourceGenres contained not needed code

parent fc933593
......@@ -333,24 +333,7 @@ object Extractors {
.filter(obj =>
obj("@type").str == "http://www.w3.org/2004/02/skos/core#Concept" &&
!obj.contains("resultsFrom"))
.flatMap(v => {
if (v("prefLabel").isInstanceOf[JArr]) {
v("prefLabel").arr.flatMap(item =>
stringValue(item.obj)("@value") match {
case Some(s) => Some(s)
case None => None
}
)
}
else {
stringValue(v)("prefLabel") match {
case Some(s) => Some(s)
case None => None
}
}
}
).toList.distinct
.flatMap(filteredObj => stringOrArrayValue (filteredObj)("prefLabel")("@value")).toList.distinct
val resourceDCTermsExtent
: List[mutable.LinkedHashMap[String, JValue]] => List[String] =
......
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