Skip to content

Commit 0efaefe

Browse files
committed
fix: default includedInDataCatalog to portal URL
fix: use ui_host for includedInDataCatalog default
1 parent 6459227 commit 0efaefe

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/ontologies_linked_data/models/ontology_submission.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ class OntologySubmission < LinkedData::Models::Base
125125
attribute :source, namespace: :dct, type: :list
126126
attribute :endpoint, namespace: :sd, type: %i[uri list],
127127
default: ->(s) { default_sparql_endpoint(s) }
128-
attribute :includedInDataCatalog, namespace: :schema, type: %i[list uri]
128+
attribute :includedInDataCatalog, namespace: :schema, type: %i[list uri],
129+
default: ->(_s) { [RDF::URI.new("https://#{LinkedData.settings.ui_host}")] }
129130

130131
# Relations
131132
attribute :hasPriorVersion, namespace: :omv, type: :uri

0 commit comments

Comments
 (0)