Sha256: 33551740469d19a07f1ac3dbd8aca176501b09c8a5483943c0e092d2f42a4fa0
Contents?: true
Size: 646 Bytes
Versions: 3
Compression:
Stored size: 646 Bytes
Contents
# frozen_string_literal: true module LinkedRails module Enhancements module Singularable module Serializer extend ActiveSupport::Concern included do statements :same_as_statement def self.same_as_statement(object, _params) return [] unless object.singular_resource? && object.singular_iri != object.iri [ RDF::Statement.new( object.singular_iri, Vocab.owl.sameAs, object.iri, graph_name: Vocab.ll[:supplant] ) ] end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems