about summary refs log tree commit diff
path: root/bh20sequploader
diff options
context:
space:
mode:
authorPjotr Prins2020-07-15 11:43:35 +0100
committerGitHub2020-07-15 11:43:35 +0100
commita0c8ebd57b875f265e8b0efec4abfaf892eb6c45 (patch)
treeb5477179d66540ab25634295112a2df47df30e27 /bh20sequploader
parent3dd94e87c25ff0b2942dc59c919a9e6e45fe45be (diff)
parentb5e38b960c380f0f7868d8fc4038ea3c3a0c52ee (diff)
downloadbh20-seq-resource-a0c8ebd57b875f265e8b0efec4abfaf892eb6c45.tar.gz
bh20-seq-resource-a0c8ebd57b875f265e8b0efec4abfaf892eb6c45.tar.lz
bh20-seq-resource-a0c8ebd57b875f265e8b0efec4abfaf892eb6c45.zip
Merge pull request #97 from pjotrp/master
Add license metadata to record
Diffstat (limited to 'bh20sequploader')
-rw-r--r--bh20sequploader/bh20seq-options.yml4
-rw-r--r--bh20sequploader/bh20seq-schema.yml25
2 files changed, 29 insertions, 0 deletions
diff --git a/bh20sequploader/bh20seq-options.yml b/bh20sequploader/bh20seq-options.yml
index c553f41..d1ea398 100644
--- a/bh20sequploader/bh20seq-options.yml
+++ b/bh20sequploader/bh20seq-options.yml
@@ -3,6 +3,10 @@
 # being unique or at least using the same options in different containing
 # types.
 
+license_type:
+  CC0 Public Domain Dedication: http://creativecommons.org/publicdomain/zero/1.0/
+  CC-BY-4.0 Attribution 4.0 International: http://creativecommons.org/licenses/by/4.0/
+
 host_age_unit:
   Years: http://purl.obolibrary.org/obo/UO_0000036
   Months: http://purl.obolibrary.org/obo/UO_0000035
diff --git a/bh20sequploader/bh20seq-schema.yml b/bh20sequploader/bh20seq-schema.yml
index a8ab920..b3d4d12 100644
--- a/bh20sequploader/bh20seq-schema.yml
+++ b/bh20sequploader/bh20seq-schema.yml
@@ -1,5 +1,6 @@
 $base: http://biohackathon.org/bh20-seq-schema
 $namespaces:
+  cc:  http://creativecommons.org/ns#
   sch: https://schema.org/
   efo: http://www.ebi.ac.uk/efo/
   obo: http://purl.obolibrary.org/obo/
@@ -9,6 +10,30 @@ $namespaces:
 
 $graph:
 
+- name: licenseSchema
+  type: record
+  fields:
+    license_type:
+      doc: License types as defined in https://wiki.creativecommons.org/images/d/d6/Ccrel-1.0.pdf
+      type: string?
+      jsonldPredicate:
+          _id: https://creativecommons.org/ns#License
+    title:
+      doc: Attribution title related to data license
+      type: string?
+      jsonldPredicate:
+          _id: http://semanticscience.org/resource/SIO_001167
+    attribution_url:
+      doc: Attribution URL related to data license
+      type: string?
+      jsonldPredicate:
+          _id: https://creativecommons.org/ns#Work
+    attribution_source:
+      doc: Attribution source URL related to data license
+      type: string?
+      jsonldPredicate:
+          _id: https://creativecommons.org/ns#Work
+
 - name: hostSchema
   type: record
   fields: