Module: PublishMyData::DefinedByOntology

Extended by:
ActiveSupport::Concern
Included in:
OntologyClass, Property
Defined in:
app/models/concerns/publish_my_data/defined_by_ontology.rb

Instance Method Summary collapse

Instance Method Details

#defined_by_ontologyObject



9
10
11
12
# File 'app/models/concerns/publish_my_data/defined_by_ontology.rb', line 9

def defined_by_ontology
  ontology_uri = read_predicate(RDF::RDFS.isDefinedBy).first
  Ontology.find(ontology_uri) rescue nil if ontology_uri
end