Module: PublishMyData::BasicFeatures

Extended by:
ActiveSupport::Concern
Included in:
Concept, ExampleResource, OntologyClass, Property, RdfType, Resource, Theme
Defined in:
app/models/concerns/publish_my_data/basic_features.rb

Instance Method Summary collapse

Instance Method Details

#eager_load!Object



16
17
18
19
# File 'app/models/concerns/publish_my_data/basic_features.rb', line 16

def eager_load!
  eager_load_object_triples!(labels_only: true)
  eager_load_predicate_triples!(labels_only: true)
end

#in_domain?(domain) ⇒ Boolean

Is this resource in the host domain?

Returns:

  • (Boolean)


12
13
14
# File 'app/models/concerns/publish_my_data/basic_features.rb', line 12

def in_domain?(domain)
  uri.starts_with?("http://" + domain)
end