diff --git a/contexts/generic b/contexts/generic index b5555e5b95..3c5e156e34 100644 --- a/contexts/generic +++ b/contexts/generic @@ -38,7 +38,7 @@ }, "url": { "@id": "schema:url", - "@type": "@id" + "@type": "xsd:anyURI" }, "citation": { "@id": "schema:citation", @@ -71,6 +71,7 @@ }, "landingPage": { "@id": "reproschema:landingPage", + "@type": "xsd:anyURI", "@container": "@set" }, "question": { diff --git a/examples/protocols/protocol1.jsonld b/examples/protocols/protocol1.jsonld index 833c1ea559..20c7de7d0e 100644 --- a/examples/protocols/protocol1.jsonld +++ b/examples/protocols/protocol1.jsonld @@ -9,6 +9,7 @@ "description": "example Protocol", "schemaVersion": "1.0.0-rc1.post", "version": "0.0.1", + "landingPage": "http://example.com/sample-readme.md", "messages": [ { "message": "Test message: Triggered when item1 value is greater than 0", diff --git a/validation/reproschema-shacl.ttl b/validation/reproschema-shacl.ttl index a62498ff97..d6841e73ac 100644 --- a/validation/reproschema-shacl.ttl +++ b/validation/reproschema-shacl.ttl @@ -158,7 +158,8 @@ reproschema:ProtocolShape a sh:NodeShape ; [ sh:node reproschema:MediaObjectShape ; sh:path schema:video ], - [ sh:nodeKind sh:IRI ; + [ sh:datatype xsd:anyURI ; + sh:pattern "((http|https)://)(www.)?[a-zA-Z0-9@:%._\\+~#?&//=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%._\\+~#?&//=]*)" ; sh:path reproschema:landingPage ], [ sh:datatype rdf:langString ; @@ -353,8 +354,9 @@ reproschema:IsVisShape a sh:NodeShape ; sh:minCount 1 ; sh:path schema:method ], - [ sh:datatype rdf:langString ; + [ sh:datatype xsd:anyURI ; sh:minCount 1 ; + sh:pattern "((http|https)://)(www.)?[a-zA-Z0-9@:%._\\+~#?&//=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%._\\+~#?&//=]*)" ; sh:path schema:url ], [ sh:datatype rdf:langString ; @@ -447,7 +449,8 @@ prov:SoftwareAgentShape a sh:NodeShape ; sh:property [ sh:datatype rdf:langString ; sh:path schema:version ], - [ sh:nodeKind sh:IRI ; + [ sh:datatype xsd:anyURI ; + sh:pattern "((http|https)://)(www.)?[a-zA-Z0-9@:%._\\+~#?&//=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%._\\+~#?&//=]*)" ; sh:path schema:url ] ; sh:targetClass reproschema:SoftwareAgent .