1
0
Fork 0

WIP monodirectional citations

This commit is contained in:
Claudio Atzori 2023-02-28 10:57:32 +01:00
parent 69fa616490
commit 0559d8b412
1 changed files with 1 additions and 11 deletions

View File

@ -397,17 +397,7 @@ case object Crossref2Oaf {
from.setDataInfo(source.getDataInfo)
from.setLastupdatetimestamp(source.getLastupdatetimestamp)
val to = new Relation
to.setTarget(source.getId)
to.setSource(targetId)
to.setRelType(ModelConstants.RESULT_RESULT)
to.setRelClass(ModelConstants.IS_CITED_BY)
to.setSubRelType(ModelConstants.CITATION)
to.setCollectedfrom(source.getCollectedfrom)
to.setDataInfo(source.getDataInfo)
to.setLastupdatetimestamp(source.getLastupdatetimestamp)
List(from, to)
List(from)
}
def generateCitationRelations(dois: List[String], result: Result): List[Relation] = {