Skip to content

Commit

Permalink
Update examples post-upgrades.
Browse files Browse the repository at this point in the history
  • Loading branch information
BigBlueHat committed Dec 13, 2023
1 parent ab3f6d3 commit 5831ed7
Show file tree
Hide file tree
Showing 9 changed files with 178 additions and 140 deletions.
10 changes: 5 additions & 5 deletions example/credentials.html

Large diffs are not rendered by default.

44 changes: 28 additions & 16 deletions example/credentials.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,30 @@
"rdfs_instances": {
"@reverse": "rdfs:isDefinedBy",
"@type": "@id"
},
"rdfs_datatypes": {
"@reverse": "rdfs:isDefinedBy",
"@type": "@id"
},
"dc:title": {
"@container": "@language"
},
"dc:description": {
"@container": "@language"
}
},
"@id": "https://w3.org/2018/credentials#",
"@type": "owl:Ontology",
"dc:title": {
"en": "Verifiable Credentials Vocabulary v2.0"
"@value": "Verifiable Credentials Vocabulary v2.0",
"@language": "en"
},
"dc:description": {
"en": "RDFS [[RDF-SCHEMA]] vocabulary used by the Verifiable Credentials [[VC-DATA-MODEL]]"
"@value": "RDFS [[RDF-SCHEMA]] vocabulary used by the Verifiable Credentials [[VC-DATA-MODEL]]",
"@language": "en"
},
"rdfs:seeAlso": "https://www.w3.org/TR/vc-data-model-2.0/",
"dc:date": "2023-04-14",
"dc:date": "2023-12-13",
"rdfs_classes": [
{
"@id": "cred:JsonSchemaValidator2018",
Expand Down Expand Up @@ -184,7 +196,7 @@
"rdfs_properties": [
{
"@id": "cred:credentialSchema",
"@type": "rdfs:Property",
"@type": "rdf:Property",
"rdfs:domain": "cred:VerifiableCredential",
"rdfs:range": "cred:CredentialSchema",
"rdfs:label": "Credential schema",
Expand All @@ -196,7 +208,7 @@
},
{
"@id": "cred:credentialStatus",
"@type": "rdfs:Property",
"@type": "rdf:Property",
"rdfs:domain": "cred:VerifiableCredential",
"rdfs:range": "cred:CredentialStatus",
"rdfs:label": "Credential status",
Expand All @@ -209,7 +221,7 @@
{
"@id": "cred:credentialSubject",
"@type": [
"rdfs:Property",
"rdf:Property",
"owl:ObjectProperty"
],
"rdfs:domain": "cred:VerifiableCredential",
Expand All @@ -222,7 +234,7 @@
},
{
"@id": "cred:evidence",
"@type": "rdfs:Property",
"@type": "rdf:Property",
"rdfs:domain": "cred:VerifiableCredential",
"rdfs:range": "cred:CredentialEvidence",
"rdfs:label": "Evidence",
Expand Down Expand Up @@ -252,7 +264,7 @@
{
"@id": "cred:holder",
"@type": [
"rdfs:Property",
"rdf:Property",
"owl:ObjectProperty"
],
"rdfs:domain": {
Expand Down Expand Up @@ -288,7 +300,7 @@
{
"@id": "cred:issued",
"@type": [
"rdfs:Property",
"rdf:Property",
"owl:DatatypeProperty"
],
"rdfs:domain": "cred:VerifiableCredential",
Expand All @@ -303,7 +315,7 @@
{
"@id": "cred:issuer",
"@type": [
"rdfs:Property",
"rdf:Property",
"owl:ObjectProperty"
],
"rdfs:domain": "cred:VerifiableCredential",
Expand All @@ -316,7 +328,7 @@
},
{
"@id": "cred:refreshService",
"@type": "rdfs:Property",
"@type": "rdf:Property",
"rdfs:domain": "cred:VerifiableCredential",
"rdfs:range": "cred:RefreshService",
"rdfs:label": "refresh service",
Expand All @@ -329,7 +341,7 @@
{
"@id": "cred:serviceEndpoint",
"@type": [
"rdfs:Property",
"rdf:Property",
"owl:ObjectProperty"
],
"rdfs:domain": "cred:RefreshService",
Expand All @@ -342,7 +354,7 @@
},
{
"@id": "cred:termsOfUse",
"@type": "rdfs:Property",
"@type": "rdf:Property",
"rdfs:domain": {
"owl:unionOf": [
"cred:VerifiableCredential",
Expand All @@ -360,7 +372,7 @@
{
"@id": "cred:validFrom",
"@type": [
"rdfs:Property",
"rdf:Property",
"owl:DatatypeProperty"
],
"rdfs:domain": "cred:VerifiableCredential",
Expand All @@ -375,7 +387,7 @@
{
"@id": "cred:validUntil",
"@type": [
"rdfs:Property",
"rdf:Property",
"owl:DatatypeProperty"
],
"rdfs:domain": "cred:VerifiableCredential",
Expand All @@ -389,7 +401,7 @@
},
{
"@id": "cred:verifiableCredential",
"@type": "rdfs:Property",
"@type": "rdf:Property",
"rdfs:domain": "cred:VerifiablePresentation",
"rdfs:range": "cred:VerifiableCredentialGraph",
"rdfs:label": "verifiable credential",
Expand Down
32 changes: 16 additions & 16 deletions example/credentials.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

# Ontology definition
cred: a owl:Ontology ;
dc:title """Verifiable Credentials Vocabulary v2.0""" ;
dc:description """RDFS [[RDF-SCHEMA]] vocabulary used by the Verifiable Credentials [[VC-DATA-MODEL]]""" ;
dc:title """Verifiable Credentials Vocabulary v2.0"""@en ;
dc:description """RDFS [[RDF-SCHEMA]] vocabulary used by the Verifiable Credentials [[VC-DATA-MODEL]]"""@en ;
rdfs:seeAlso <https://www.w3.org/TR/vc-data-model-2.0/> ;
dc:date "2023-04-14"^^xsd:date ;
dc:date "2023-12-13"^^xsd:date ;
.

# Class definitions
Expand Down Expand Up @@ -86,7 +86,7 @@ cred:VerifiablePresentation a rdfs:Class ;


# Property definitions
cred:credentialSchema a rdfs:Property ;
cred:credentialSchema a rdf:Property ;
rdfs:domain cred:VerifiableCredential ;
rdfs:range cred:CredentialSchema ;
rdfs:label "Credential schema" ;
Expand All @@ -95,7 +95,7 @@ cred:credentialSchema a rdfs:Property ;
vs:term_status "stable" ;
.

cred:credentialStatus a rdfs:Property ;
cred:credentialStatus a rdf:Property ;
rdfs:domain cred:VerifiableCredential ;
rdfs:range cred:CredentialStatus ;
rdfs:label "Credential status" ;
Expand All @@ -104,15 +104,15 @@ cred:credentialStatus a rdfs:Property ;
vs:term_status "stable" ;
.

cred:credentialSubject a rdfs:Property, owl:ObjectProperty ;
cred:credentialSubject a rdf:Property, owl:ObjectProperty ;
rdfs:domain cred:VerifiableCredential ;
rdfs:label "Credential subject" ;
rdfs:comment """<div>An entity about which claims are made.</div>"""^^rdf:HTML ;
rdfs:isDefinedBy <https://w3.org/2018/credentials#> ;
vs:term_status "stable" ;
.

cred:evidence a rdfs:Property ;
cred:evidence a rdf:Property ;
rdfs:domain cred:VerifiableCredential ;
rdfs:range cred:CredentialEvidence ;
rdfs:label "Evidence" ;
Expand All @@ -131,7 +131,7 @@ cred:expirationDate a rdf:Property, owl:DeprecatedProperty, owl:DatatypeProperty
vs:term_status "deprecated" ;
.

cred:holder a rdfs:Property, owl:ObjectProperty ;
cred:holder a rdf:Property, owl:ObjectProperty ;
rdfs:domain [ owl:unionOf (cred:VerifiableCredential cred:VerifiablePresentation) ] ;
rdfs:label "Holder" ;
rdfs:comment """<div>The value of the `holder` property MUST be a URI. It is RECOMMENDED that dereferencing the URI results in a document containing machine-readable information about the holder that can be used to verify the information expressed in the credential.</div>"""^^rdf:HTML ;
Expand All @@ -149,7 +149,7 @@ cred:issuanceDate a rdf:Property, owl:DeprecatedProperty, owl:DatatypeProperty ;
vs:term_status "deprecated" ;
.

cred:issued a rdfs:Property, owl:DatatypeProperty ;
cred:issued a rdf:Property, owl:DatatypeProperty ;
rdfs:domain cred:VerifiableCredential ;
rdfs:range xsd:dateTime ;
rdfs:label "issue date" ;
Expand All @@ -158,15 +158,15 @@ cred:issued a rdfs:Property, owl:DatatypeProperty ;
vs:term_status "stable" ;
.

cred:issuer a rdfs:Property, owl:ObjectProperty ;
cred:issuer a rdf:Property, owl:ObjectProperty ;
rdfs:domain cred:VerifiableCredential ;
rdfs:label "issuer" ;
rdfs:comment """<div>The value of the `issuer` property MUST be a URI. It is RECOMMENDED that dereferencing the URI results in a document containing machine-readable information about the issuer that can be used to verify the information expressed in the credential.</div>"""^^rdf:HTML ;
rdfs:isDefinedBy <https://w3.org/2018/credentials#> ;
vs:term_status "stable" ;
.

cred:refreshService a rdfs:Property ;
cred:refreshService a rdf:Property ;
rdfs:domain cred:VerifiableCredential ;
rdfs:range cred:RefreshService ;
rdfs:label "refresh service" ;
Expand All @@ -175,15 +175,15 @@ cred:refreshService a rdfs:Property ;
vs:term_status "stable" ;
.

cred:serviceEndpoint a rdfs:Property, owl:ObjectProperty ;
cred:serviceEndpoint a rdf:Property, owl:ObjectProperty ;
rdfs:domain cred:RefreshService ;
rdfs:label "service endpoint" ;
rdfs:comment """<div>The value of the `serviceEndpoint` property MUST be a URL to the service endpoint associated with the subject.</div>"""^^rdf:HTML ;
rdfs:isDefinedBy <https://w3.org/2018/credentials#> ;
vs:term_status "stable" ;
.

cred:termsOfUse a rdfs:Property ;
cred:termsOfUse a rdf:Property ;
rdfs:domain [ owl:unionOf (cred:VerifiableCredential cred:VerifiablePresentation) ] ;
rdfs:range odrl:Policy ;
rdfs:label "terms of use" ;
Expand All @@ -192,7 +192,7 @@ cred:termsOfUse a rdfs:Property ;
vs:term_status "stable" ;
.

cred:validFrom a rdfs:Property, owl:DatatypeProperty ;
cred:validFrom a rdf:Property, owl:DatatypeProperty ;
rdfs:domain cred:VerifiableCredential ;
rdfs:range xsd:dateTime ;
rdfs:label "Valid from" ;
Expand All @@ -201,7 +201,7 @@ cred:validFrom a rdfs:Property, owl:DatatypeProperty ;
vs:term_status "stable" ;
.

cred:validUntil a rdfs:Property, owl:DatatypeProperty ;
cred:validUntil a rdf:Property, owl:DatatypeProperty ;
rdfs:domain cred:VerifiableCredential ;
rdfs:range xsd:dateTime ;
rdfs:label "Valid until" ;
Expand All @@ -210,7 +210,7 @@ cred:validUntil a rdfs:Property, owl:DatatypeProperty ;
vs:term_status "stable" ;
.

cred:verifiableCredential a rdfs:Property ;
cred:verifiableCredential a rdf:Property ;
rdfs:domain cred:VerifiablePresentation ;
rdfs:range cred:VerifiableCredentialGraph ;
rdfs:label "verifiable credential" ;
Expand Down
16 changes: 8 additions & 8 deletions example/security.html

Large diffs are not rendered by default.

Loading

0 comments on commit 5831ed7

Please sign in to comment.