{ "@context": "https://w3id.org/identity/v1", "id": "did:ebfeb1f712ebc6f1c276e12ec21", "type": ["Identity", "Person"], "name": "Alice Bobman", "email": "alice@example.com", "birthDate": "1985-12-14", "telephone": "12345678910" }
{ "@context": "https://w3id.org/identity/v1", "id": "http://example.gov/credentials/3732", "type": ["Credential", "ProofOfAgeCredential"], "issuer": "https://dmv.example.gov", "issued": "2010-01-01", "claim": { "id": "did:ebfeb1f712ebc6f1c276e12ec21", "ageOver": 21 }, "signature": { "type": "LinkedDataSignature2015", "creator": "https://dmv.example.gov/keys/6", "signature": "2332f32g43ve23g23g23g/g3223gegvgre212fb488vh" } }
{ "@context": "https://w3id.org/identity/v1", "id": "http://example.gov/credentials/3732", "type": ["Credential", "PassportCredential"], "name": "Passport", "issuer": "https://example.gov", "issued": "2010-01-01", "claim": { "id": "did:ebfeb1f712ebc6f1c276e12ec21", "name": "Alice Bobman", "birthDate": "1985-12-14", "gender": "female", "nationality": { "name": "United States" }, "address": { "type": "PostalAddress", "addressStreet": "372 Sumter Lane", "addressLocality": "Blackrock", "addressRegion": "Nevada", "postalCode": "237842", "addressCountry": "US" }, "passport": { "type": "Passport", "name": "United States Passport", "documentId": "123-45-6789", "issuer": "https://example.gov", "issued": "2010-01-07T01:02:03Z", "expires": "2020-01-07T01:02:03Z" } }, "signature": { "type": "LinkedDataSignature2015", "creator": "https://example.gov/keys/27", "signature": "3780eyfh3q0fhhfiq3q9f8ahsidfhf29rhaish" } }
Because Linked Data is a graph-based format and credentials have been digitally-signed as independent graphs of information, they are expressed using the @graph keyword. An application that receives an identity in this format can be ensured that the credential data won't be accidentally mixed with data in any other graphs in the identity document. Once the application has verified the digital Signatures in each credential, it can safely merge all of the claim data into a single graph of information about the identity.
"@context": "https://w3id.org/identity/v1", "id": "did:ebfeb1f712ebc6f1c276e12ec21", "type": ["Identity", "Person"], "name": "Alice Bobman", "email": "alice@example.com", "birthDate": "1985-12-14", "telephone": "12345678910", "credential": [{ "@graph": { "@context": "https://w3id.org/identity/v1", "id": "http://example.gov/credentials/3732", "type": ["Credential", "PassportCredential"], "name": "Passport", "issuer": "https://example.gov", "issued": "2010-01-01", "claim": { "id": "did:ebfeb1f712ebc6f1c276e12ec21", "name": "Alice Bobman", "birthDate": "1985-12-14", "gender": "female", "nationality": { "name": "United States" }, "address": { "type": "PostalAddress", "addressStreet": "372 Sumter Lane", "addressLocality": "Blackrock", "addressRegion": "Nevada", "postalCode": "237842", "addressCountry": "US" }, "passport": { "type": "Passport", "name": "United States Passport", "documentId": "123-45-6789", "issuer": "https://example.gov", "issued": "2010-01-07T01:02:03Z", "expires": "2020-01-07T01:02:03Z" } }, "signature": { "type": "LinkedDataSignature2015", "creator": "https://example.gov/keys/27", "signature": "3780eyfh3q0fhhfiq3q9f8ahsidfhf29rhaish" } } }] }
{ "@context": { "name": "http://schema.org/name", "description": "http://schema.org/description", "image": { "@id": "http://schema.org/image", "@type": "@id" }, "geo": "http://schema.org/geo", "latitude": { "@id": "http://schema.org/latitude", "@type": "xsd:float" }, "longitude": { "@id": "http://schema.org/longitude", "@type": "xsd:float" }, "xsd": "http://www.w3.org/2001/XMLSchema#" }, "name": "The Empire State Building", "description": "The Empire State Building is a 102-story landmark in New York City.", "image": "http://www.civil.usherbrooke.ca/cours/gci215a/empire-state-building.jpg", "geo": { "latitude": "40.75", "longitude": "73.98" } }