Sha256: cc7e68ca1bfb0d35d8312cd9b1f6559c050f3850520c071ddb0f495b05f9a645

Contents?: true

Size: 644 Bytes

Versions: 39

Compression:

Stored size: 644 Bytes

Contents

# frozen_string_literal: true

module LinkedRails
  class Ontology
    class ClassSerializer < LinkedRails.serializer_parent_class
      attribute :description, predicate: Vocab.schema.description
      attribute :input_select_property, predicate: Vocab.ontola['forms/inputs/select/displayProp']
      attribute :label, predicate: Vocab.rdfs.label
      attribute :plural_label, predicate: Vocab.ontola[:pluralLabel]
      attribute :image, predicate: Vocab.schema.image
      attribute :parent_class, predicate: Vocab.rdfs.subClassOf
      statements :data

      def self.data(object, _params)
        object.data
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
linked_rails-0.0.4.pre.g3aeec2263 app/serializers/linked_rails/ontology/class_serializer.rb
linked_rails-0.0.4.pre.gacd5f04d4 app/serializers/linked_rails/ontology/class_serializer.rb
linked_rails-0.0.4.pre.gb0b6aea40 app/serializers/linked_rails/ontology/class_serializer.rb
linked_rails-0.0.4.pre.g792a1b887 app/serializers/linked_rails/ontology/class_serializer.rb
linked_rails-0.0.4.pre.g58af47992 app/serializers/linked_rails/ontology/class_serializer.rb
linked_rails-0.0.4.pre.g0ec6e30ca app/serializers/linked_rails/ontology/class_serializer.rb
linked_rails-0.0.4.pre.g9e3bcac55 app/serializers/linked_rails/ontology/class_serializer.rb
linked_rails-0.0.4.pre.g222bfeeca app/serializers/linked_rails/ontology/class_serializer.rb
linked_rails-0.0.4.pre.gb254a2893 app/serializers/linked_rails/ontology/class_serializer.rb
linked_rails-0.0.4.pre.g2c6c26e86 app/serializers/linked_rails/ontology/class_serializer.rb
linked_rails-0.0.4.pre.ge881247c3 app/serializers/linked_rails/ontology/class_serializer.rb
linked_rails-0.0.4.pre.gfabf7e9f5 app/serializers/linked_rails/ontology/class_serializer.rb
linked_rails-0.0.4.pre.g8c045be3a app/serializers/linked_rails/ontology/class_serializer.rb
linked_rails-0.0.4.pre.g8d7195543 app/serializers/linked_rails/ontology/class_serializer.rb
linked_rails-0.0.4.pre.gfe77aae19 app/serializers/linked_rails/ontology/class_serializer.rb
linked_rails-0.0.4.pre.gc866c1806 app/serializers/linked_rails/ontology/class_serializer.rb
linked_rails-0.0.4.pre.g3e8f5731a app/serializers/linked_rails/ontology/class_serializer.rb
linked_rails-0.0.4.pre.g58e27be7f app/serializers/linked_rails/ontology/class_serializer.rb
linked_rails-0.0.4.pre.g96885856b app/serializers/linked_rails/ontology/class_serializer.rb
linked_rails-0.0.4.pre.g1faca9643 app/serializers/linked_rails/ontology/class_serializer.rb