From 695168fc36421422250f0b02855e8b363e607ff1 Mon Sep 17 00:00:00 2001 From: Syphax Bouazzouni Date: Sat, 15 Apr 2023 13:41:30 +0100 Subject: [PATCH 1/3] enable read/write feature to Group and Category models --- lib/ontologies_api_client/models/category.rb | 2 ++ lib/ontologies_api_client/models/group.rb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/ontologies_api_client/models/category.rb b/lib/ontologies_api_client/models/category.rb index 0f41b59..7df0645 100644 --- a/lib/ontologies_api_client/models/category.rb +++ b/lib/ontologies_api_client/models/category.rb @@ -5,6 +5,8 @@ module Client module Models class Category < LinkedData::Client::Base include LinkedData::Client::Collection + include LinkedData::Client::ReadWrite + @media_type = "http://data.bioontology.org/metadata/Category" end end diff --git a/lib/ontologies_api_client/models/group.rb b/lib/ontologies_api_client/models/group.rb index 803b148..3061d72 100644 --- a/lib/ontologies_api_client/models/group.rb +++ b/lib/ontologies_api_client/models/group.rb @@ -5,6 +5,8 @@ module Client module Models class Group < LinkedData::Client::Base include LinkedData::Client::Collection + include LinkedData::Client::ReadWrite + @media_type = "http://data.bioontology.org/metadata/Group" end end From 18d190098becb4d2e55b2c02eee68833b3f6a569 Mon Sep 17 00:00:00 2001 From: Syphax Bouazzouni Date: Thu, 15 Jun 2023 21:25:04 +0200 Subject: [PATCH 2/3] add agent model --- lib/ontologies_api_client/models/agent.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lib/ontologies_api_client/models/agent.rb diff --git a/lib/ontologies_api_client/models/agent.rb b/lib/ontologies_api_client/models/agent.rb new file mode 100644 index 0000000..f16da4c --- /dev/null +++ b/lib/ontologies_api_client/models/agent.rb @@ -0,0 +1,14 @@ +require_relative "../base" + +module LinkedData + module Client + module Models + class Agent < LinkedData::Client::Base + include LinkedData::Client::Collection + include LinkedData::Client::ReadWrite + + @media_type = "http://xmlns.com/foaf/0.1/Agent" + end + end + end +end From a761d4303ad93bd35a6a15545ed0d8f358078319 Mon Sep 17 00:00:00 2001 From: Syphax Bouazzouni Date: Fri, 16 Jun 2023 02:18:08 +0200 Subject: [PATCH 3/3] add identifier model --- lib/ontologies_api_client/models/identifier.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lib/ontologies_api_client/models/identifier.rb diff --git a/lib/ontologies_api_client/models/identifier.rb b/lib/ontologies_api_client/models/identifier.rb new file mode 100644 index 0000000..4261de3 --- /dev/null +++ b/lib/ontologies_api_client/models/identifier.rb @@ -0,0 +1,14 @@ +require_relative "../base" + +module LinkedData + module Client + module Models + class Identifier < LinkedData::Client::Base + include LinkedData::Client::Collection + include LinkedData::Client::ReadWrite + + @media_type = "http://www.w3.org/ns/adms#Identifier" + end + end + end +end