Unverified Commit 132935ef authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

use type property as fallback for name in creator relation

parent a182b977
Pipeline #19820 passed with stages
in 6 minutes and 16 seconds
......@@ -126,7 +126,7 @@ object Extractors {
.flatMap(obj =>
getBlankNodeContent(graph)(obj)("creationRelationHasTarget")
.flatMap(v => stringValue(v)("name")) match {
case Some(name) => Some(obj("type").str, name)
case Some(name) => Some(obj.getOrElse("name", obj("type")).str, name)
case None => None
}
)
......
Supports Markdown
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