forked from D-Net/dnet-hadoop
added instanceTypeMapping field on MAG
This commit is contained in:
parent
98dc042db5
commit
a0642bd190
|
@ -490,6 +490,7 @@ object MagUtility extends Serializable {
|
|||
result.setDataInfo(MAGDataInfo)
|
||||
val i = new Instance
|
||||
i.setInstancetype(tp)
|
||||
i.setInstanceTypeMapping(List(instanceTypeMapping(currentType)).asJava)
|
||||
result.setInstance(List(i).asJava)
|
||||
}
|
||||
result
|
||||
|
|
|
@ -72,7 +72,6 @@ object UnpayWallToOAF {
|
|||
|
||||
def convertToOAF(input: String): Publication = {
|
||||
|
||||
|
||||
val pub = new Publication
|
||||
|
||||
implicit lazy val formats: DefaultFormats.type = org.json4s.DefaultFormats
|
||||
|
|
Loading…
Reference in New Issue