lib/bolognese/schema_org.rb in bolognese-0.8.1 vs lib/bolognese/schema_org.rb in bolognese-0.8.2

- old
+ new

@@ -117,14 +117,16 @@ Array.wrap(references) + Array.wrap(is_supplemented_by) end def get_related_identifier(relation_type: nil) - normalize_ids(metadata.fetch(relation_type, nil), SO_TO_DC_RELATION_TYPES[relation_type]) + normalize_ids(ids: metadata.fetch(relation_type, nil), + relation_type: SO_TO_DC_RELATION_TYPES[relation_type]) end def get_reverse_related_identifier(relation_type: nil) - normalize_ids(metadata.dig("@reverse", relation_type), SO_TO_DC_RELATION_TYPES[relation_type]) + normalize_ids(ids: metadata.dig("@reverse", relation_type), + relation_type: SO_TO_DC_RELATION_TYPES[relation_type]) end def is_identical_to get_related_identifier(relation_type: "sameAs") end