From 9709eca5c76aabe823ba34d976c5d11a9d150b76 Mon Sep 17 00:00:00 2001
From: Pjotr Prins
Date: Sat, 7 Nov 2020 10:06:30 +0000
Subject: RDF: use URIs
---
bh20sequploader/bh20seq-schema.yml | 8 +++++++-
bh20sequploader/bh20seq-shex.rdf | 5 +++--
2 files changed, 10 insertions(+), 3 deletions(-)
(limited to 'bh20sequploader')
diff --git a/bh20sequploader/bh20seq-schema.yml b/bh20sequploader/bh20seq-schema.yml
index 861a5ca..645be5e 100644
--- a/bh20sequploader/bh20seq-schema.yml
+++ b/bh20sequploader/bh20seq-schema.yml
@@ -1,6 +1,6 @@
$base: http://biohackathon.org/bh20-seq-schema
$namespaces:
- cc: http://creativecommons.org/ns#
+ cc: https://creativecommons.org/ns#
dc: http://purl.org/metadata/dublin_core_elements#
sch: https://schema.org/
efo: http://www.ebi.ac.uk/efo/
@@ -19,6 +19,8 @@ $graph:
type: string
jsonldPredicate:
_id: https://creativecommons.org/ns#License
+ _type: "@id"
+ noLinkCheck: true
title:
doc: Attribution title related to data license
type: string?
@@ -34,11 +36,15 @@ $graph:
type: string?
jsonldPredicate:
_id: https://creativecommons.org/ns#attributionURL
+ _type: "@id"
+ noLinkCheck: true
attribution_source:
doc: Attribution source URL related to data license
type: string?
jsonldPredicate:
_id: https://creativecommons.org/ns#attributionSource
+ _type: "@id"
+ noLinkCheck: true
- name: hostSchema
type: record
diff --git a/bh20sequploader/bh20seq-shex.rdf b/bh20sequploader/bh20seq-shex.rdf
index fa765dd..1b15c58 100644
--- a/bh20sequploader/bh20seq-shex.rdf
+++ b/bh20sequploader/bh20seq-shex.rdf
@@ -2,6 +2,7 @@ PREFIX :
PREFIX hostSchema:
PREFIX cc:
+PREFIX cclicenses:
PREFIX dc:
PREFIX xsd:
PREFIX obo:
@@ -71,9 +72,9 @@ PREFIX wikidata:
}
:licenseShape{
- cc:License xsd:string ;
+ cc:License [ cclicenses:~ ] ;
dc:Title xsd:string ?;
cc:attributionName xsd:string ?;
- cc:attributionURL xsd:string ?;
+ cc:attributionURL /^http/ ;
cc:attributionSource xsd:string ?;
}
--
cgit v1.2.3