-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/vocab claim bugfix #31
Conversation
I still think there's conflict on how "claim" is be used in the two contexts. I believe the use below, says that "This credential, of type badge, is claiming that https://foo.com/i/erickorb has achieved the following..."
|
Hmm, interesting. As you pointed out on the call yesterday, there is a conflict with the term @erickorb @msporny: Are you of the opinion that https://w3id.org/openbadges/v1 should be in alignment with the current work? I thought the target for alignment was bringing together the Identity Credentials spec and the Open Badges spec. Eric, if the snippet you posted represents work that would use the "v1" context, then that context is not compatible with what we are trying to do in the Credentials Community Group, as far as I can tell. It doesn't follow patterns suggested by the draft vocabulary, Open Badges spec, or Identity Credentials spec. As @dlongley pointed out is true about the Identity Credentials spec, if an issuer puts claims inside a The snippet you posted seems to say that the @id of the badge is For example, the properties As is true with the Identity Credentials spec examples, you don't need to use a {
"@context": ["https://w3id.org/credentials/v1", "https://example.org/contexts/basicInfo"],
"credential": [{
"id": "http://biguniversity.gov/credentials/53091",
"type": ["BasicInfo", "Credential"],
"claim": {
"id": "https://example.com/identities/bob",
"name": "Bob Bobman",
"birthdate": "1985-12-14"
},
"expires": "2018-01-01",
"signature": {
"type": "GraphSignature2012",
"creator": "https://biguniversity.edu/keys/1",
"signature": "3780eyfh3q0fhhfiq3q9f8ahsidfhf29rhaish"
}
}]
} But if you are using a {
"@context": "https://w3id.org/credentials/v1",
"id": "http://biguniversity.gov/credentials/53091",
"type": ["UniversityDegree", "Credential"],
"claim": {
"id": "https://example.com/identities/bob",
"badgeAssertion": [
{
"@context": "https://w3id.org/openbadges/v1.1",
"id": "https://biguniversity.edu/credentials/53091/badge",
"type": "Assertion",
"recipient": {
"identity": "bbob@example.com",
"type": "email",
"hashed": false
},
"issuedOn": "2015-03-01",
"badge": {
"id": "https://bigunivertsity.edu/credentials/BA",
"type": "BadgeClass",
"name": "Bachelor of Arts",
"description": "The gold standard of credentials in liberal arts education",
"image": "https://biguniversity.edu/credentials/BA/image",
"criteria": "https://biguniversity.edu/credentials/BA/criteria",
"issuer": {
"id": "https://biguniversity.edu/id",
"type": "IssuerOrg",
"name": "Big University",
"url": "http://biguniversity.edu",
"publicKey": "https://biguniversity.edu/keys/1"
}
}
}
]
},
"signature": {
"type": "GraphSignature2012",
"creator": "https://biguniversity.edu/keys/1",
"signature": "3780eyfh3q0fhhfiq3q9f8ahsidfhf29rhaish"
}
} This example makes a claim that |
These changes included as part of #34 |
Fixes one issue I noticed myself, one issue that @erickorb, @dlongley and @msporny noticed, and one issue that @elf-pavlik noted.
claim
is a property of aCredential
. It's associated value must be aClaimSet
.@type
value in the context forclaim
must be@id
, notClaimSet
-- @type is for datatypes of literal values, not class types of JSON object literals.Thanks for feedback, all.