From fb4ad4e8a8513ac687c524d29509e1f82369e7a1 Mon Sep 17 00:00:00 2001 From: Gia Thuan Lam Date: Wed, 3 Apr 2024 12:18:05 +0000 Subject: [PATCH] Add certificationRating property to Certification. --- data/ext/pending/issue-3230-examples.txt | 14 +++++++++++++- data/ext/pending/issue-3230.ttl | 8 ++++++++ data/schema.ttl | 4 ++-- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/data/ext/pending/issue-3230-examples.txt b/data/ext/pending/issue-3230-examples.txt index 54247289d..47734b490 100644 --- a/data/ext/pending/issue-3230-examples.txt +++ b/data/ext/pending/issue-3230-examples.txt @@ -52,6 +52,12 @@ JSON: }, "logo": "https://eprel.ec.europa.eu/assets/images/label/thumbnails/E-Left-LightOrange-WithAGScale.png", "certificationIdentification": "1779994", + "certificationRating": { + "@type": "Rating", + "ratingValue": "E", + "bestRating": "A", + "worstRating": "G" + }, "hasMeasurement": { "@type": "QuantitativeValue", "name": "Energy Efficiency Index (EEI)", @@ -338,7 +344,7 @@ JSON: "schema:name": "WolfCrypt", "hasCertification": { "type": "Certification", - "schema:name": "FIPS compliance", + "schema:name": "FIPS 140-2", "url": "https://csrc.nist.gov/projects/cryptographic-module-validation-program/certificate/3389", "certificationStatus": "CertificationActive", "issuedBy": { @@ -347,6 +353,12 @@ JSON: "url": "https://www.nist.gov" }, "certificationIdentification": "3389", + "certificationRating": { + "@type": "Rating", + "ratingValue": 1, + "bestRating": 4, + "worstRating": 1 + }, "expires": "2024-03-03" } }, diff --git a/data/ext/pending/issue-3230.ttl b/data/ext/pending/issue-3230.ttl index 9cee5e9bd..fed5a578e 100644 --- a/data/ext/pending/issue-3230.ttl +++ b/data/ext/pending/issue-3230.ttl @@ -28,6 +28,14 @@ :source ; rdfs:comment "Identifier of a certification instance (as registered with an independent certification body). Typically this identifier can be used to consult and verify the certification instance. See also [gs1:certificationIdentification](https://www.gs1.org/voc/certificationIdentification)." . +:certificationRating a rdf:Property ; + rdfs:label "certificationRating" ; + :domainIncludes :Certification ; + :isPartOf ; + :rangeIncludes :Rating ; + :source ; + rdfs:comment "Rating of a certification instance (as defined by an independent certification body). Typically this rating can be used to rate the level to which the requirements of the certification instance are fulfilled. See also [gs1:certificationValue](https://www.gs1.org/voc/certificationValue)." . + :CertificationStatusEnumeration a rdfs:Class ; rdfs:label "CertificationStatusEnumeration" ; :isPartOf ; diff --git a/data/schema.ttl b/data/schema.ttl index d4720860c..154abf69b 100644 --- a/data/schema.ttl +++ b/data/schema.ttl @@ -4557,7 +4557,7 @@ See also the dedicated document on the use of schema :domainIncludes :Rating ; :rangeIncludes :Number, :Text ; - rdfs:comment "The highest value allowed in this rating system. If bestRating is omitted, 5 is assumed." . + rdfs:comment "The highest value allowed in this rating system." . :billingAddress a rdf:Property ; rdfs:label "billingAddress" ; @@ -9527,7 +9527,7 @@ we define a supporting type, [[SpeakableSpecification]] which is defined to be :domainIncludes :Rating ; :rangeIncludes :Number, :Text ; - rdfs:comment "The lowest value allowed in this rating system. If worstRating is omitted, 1 is assumed." . + rdfs:comment "The lowest value allowed in this rating system." . :xpath a rdf:Property ; rdfs:label "xpath" ;