Skip to content

Commit

Permalink
Merge branch 'feature/add-skos-collections' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Dec 13, 2022
2 parents 6af410b + 8be2a07 commit 2902fa3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions controllers/collection_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ class CollectionsController < ApplicationController
end

get '/members' do
submission, attributes, bring_unmapped_needed = collections_setting_params
ont, submission = get_ontology_and_submission
attributes, page, size, filter_by_label, order_by, bring_unmapped_needed = settings_params(LinkedData::Models::Class)
collection_uri = get_collection_uri(params)
data = LinkedData::Models::SKOS::Collection.find(collection_uri).in(submission).include(:member).first
reply data.member
data = LinkedData::Models::Class.where(memberOf: collection_uri).in(submission).include(attributes).page(page,size).all
reply data
end
end
end
Expand Down

0 comments on commit 2902fa3

Please sign in to comment.