Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ gem 'request_store'
gem 'rest-client'
gem 'rsolr'
gem 'thin', '~> 1.0' # compatibility version pin. thin should be replaced with webmoc

gem "down", "~> 5.0"

# Testing
group :test do
Expand All @@ -37,7 +37,7 @@ group :development do
gem 'rubocop', require: false
end
# NCBO gems (can be from a local dev path or from rubygems/git)
gem 'goo', github: 'ncbo/goo', branch: 'master'
gem 'goo', github: 'ncbo/goo', branch: 'develop'
gem 'sparql-client', github: 'ncbo/sparql-client', tag: 'v6.3.0'

gem 'public_suffix', '~> 5.1.1'
Expand Down
11 changes: 7 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GIT
remote: https://github.com/ncbo/goo.git
revision: 26c0a69e67ac59778a46caf51202ebd38ccac767
branch: master
revision: ca5f9d858eef89923903236fe6f76c78271e538d
branch: develop
specs:
goo (0.0.2)
addressable (~> 2.8)
Expand Down Expand Up @@ -69,6 +69,8 @@ GEM
date (3.4.1)
docile (1.4.1)
domain_name (0.6.20240107)
down (5.4.2)
addressable (~> 2.8)
email_spec (2.3.0)
htmlentities (~> 4.3.3)
launchy (>= 2.1, < 4.0)
Expand Down Expand Up @@ -111,7 +113,7 @@ GEM
mime-types (3.7.0)
logger
mime-types-data (~> 3.2025, >= 3.2025.0507)
mime-types-data (3.2025.0819)
mime-types-data (3.2025.0826)
mini_mime (1.1.5)
minitest (4.7.5)
minitest-reporters (0.14.24)
Expand Down Expand Up @@ -199,7 +201,7 @@ GEM
prism (~> 1.4)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
rubyzip (3.0.1)
rubyzip (3.0.2)
simplecov (0.22.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
Expand Down Expand Up @@ -238,6 +240,7 @@ DEPENDENCIES
addressable (~> 2.8)
bcrypt (~> 3.0)
cube-ruby
down (~> 5.0)
email_spec
ffi
goo!
Expand Down
12 changes: 4 additions & 8 deletions lib/ontologies_linked_data/models/ontology_submission.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require 'uri'
require 'open-uri'
require 'cgi'
require 'benchmark'
# require 'benchmark'
require 'csv'
require 'fileutils'

Expand Down Expand Up @@ -59,12 +59,8 @@ class OntologySubmission < LinkedData::Models::Base
# Description metadata
attribute :description, namespace: :omv, enforce: %i[concatenate], fuzzy_search: true

# attribute :homepage
# attribute :documentation, namespace: :omv
# attribute :publication
# attribute :uri, namespace: :omv
attribute :homepage, namespace: :foaf, type: :uri
attribute :documentation, namespace: :omv, type: :uri
attribute :homepage, namespace: :foaf, type: :url
attribute :documentation, namespace: :omv, type: :url
attribute :publication, type: %i[uri list]
attribute :uri, namespace: :omv, type: :uri, enforce: %i[distinct_of_identifier], fuzzy_search: true

Expand Down Expand Up @@ -124,7 +120,7 @@ class OntologySubmission < LinkedData::Models::Base
attribute :wasInvalidatedBy, namespace: :prov, type: :list

# Links
attribute :pullLocation, type: :uri # URI for pulling ontology
attribute :pullLocation, type: :url # URL for pulling ontology
attribute :isFormatOf, namespace: :dct, type: :uri
attribute :hasFormat, namespace: :dct, type: %i[uri list]
attribute :dataDump, namespace: :void, type: :uri, default: -> (s) { data_dump_default(s) }
Expand Down
2 changes: 1 addition & 1 deletion lib/ontologies_linked_data/models/project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Project < LinkedData::Models::Base
attribute :created, enforce: [:date_time], :default => lambda {|x| DateTime.now }
attribute :updated, enforce: [:date_time], :default => lambda {|x| DateTime.now }
attribute :name, enforce: [:existence, :safe_text_256]
attribute :homePage, enforce: [:uri, :existence]
attribute :homePage, enforce: [:url, :existence]
attribute :description, enforce: [:existence, :safe_text]
attribute :contacts, enforce: [:safe_text_256]
attribute :institution, enforce: [:safe_text_256]
Expand Down