Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: embed for submission model all the attributes of the object metrics #104

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions lib/ontologies_linked_data/models/ontology_submission.rb
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,13 @@ class OntologySubmission < LinkedData::Models::Base

def self.agents_attrs
[:hasCreator, :publisher, :copyrightHolder, :hasContributor,
:translator, :endorsedBy, :fundedBy, :curatedBy ]
:translator, :endorsedBy, :fundedBy, :curatedBy]
end
# Hypermedia settings
embed *[:contact, :ontology] + agents_attrs
embed *[:contact, :ontology, :metrics] + agents_attrs
def self.embed_values_hash
out = {
submissionStatus: [:code], hasOntologyLanguage: [:acronym], metrics: %i[classes individuals properties],

submissionStatus: [:code], hasOntologyLanguage: [:acronym]
}

agent_attributes = LinkedData::Models::Agent.goo_attrs_to_load +
Expand Down