Sha256: 8dda0079250d479f07517493974b30bcf156c9fbde2a3c4aebad40e9d0f4b345
Contents?: true
Size: 540 Bytes
Versions: 31
Compression:
Stored size: 540 Bytes
Contents
module PublishMyData module BasicFeatures extend ActiveSupport::Concern included do field :label, RDF::RDFS.label # same as the title field :comment, RDF::RDFS.comment #short desc field :data_graph_uri, RDF::PMD_DS.graph, is_uri: true end # Is this resource in the host domain? def in_domain?(domain) uri.starts_with?("http://" + domain) end def eager_load! eager_load_object_triples!(labels_only: true) eager_load_predicate_triples!(labels_only: true) end end end
Version data entries
31 entries across 31 versions & 1 rubygems