w3c-ccg / security-vocab

The Linked Data Security Vocabulary
https://w3id.org/security
Other
21 stars 21 forks source link

Is there a "digest" property? #96

Open IS4Code opened 3 years ago

IS4Code commented 3 years ago

The documentation under the digestValue property has this example:

{
  "@context": [
    "https://w3id.org/security/v1",
    {
      "dc": "https://w3id.org/dc/terms/",
      "foaf": "http://xmlns.com/foaf/0.1/"
    }
  ],
  "@id": "http://example.com/logo.jpg",
  "@type": "foaf:Image",
  "dc:title": "Example Logo",
  "digest":
  {
    "@type": "Digest",
    "digestAlgorithm": "http://www.w3.org/2000/09/xmldsig#sha1",
    "digestValue": "981ec496092bf6ea18d6251d36068b52b633268b"
  }
}

There is a digest property mentioned, but I cannot find it in any of the contexts. Is sec:digest safe to use, or should I use another vocabulary? I was looking for a suitable ontology that would allow me to link digests to entities, but so far I was unable to find any concrete property for that which wouldn't assert other unwanted facts about the subject. What is the expected way to link a digest to an entity in this ontology?