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
Storing National Identity Numbers, Passport Numbers etc in Schema.org #1358
Comments
|
We don't have a structure for this yet. One approach would be as explored in #1186 where we try to use properties from Wikidata within a Schema.org JSON-LD setting. The Wikidata folk have added lots and lots of these kinds of identification properties. I don't know if they have the one you're interested in, though. Perhaps we might also extend http://schema.org/additionalProperty to be applicable on more types (like Person); this would allow you to make up your own structure that indicated a value was South African national ID... |
|
Wikidata does not have the South African National Identity number. +1 for extending http://schema.org/additionalProperty Since there are a few important properties currently missing from Person like profession. |
|
Note that my initial proposal when crafting additionalProperty to make this applicable to schema:Thing, but so many Semantic Web folks raised concern that this would be an evil extension mechanism that I had to contrain it to schema:Product. See here and the following hundreds of emails if you want to understand the context: Martin martin hepp http://www.heppnetz.de
|
|
Any news on this? I believe it is still current. |
|
Since this thread went quiet the identifier property was introduced in v3.2 and can be used thus: or: The Wikidata URI I used in this example is for South African identity card, which I presume (as a non-expert) is the source of said number. |
|
Thanks @RichardWallis, this works. I think we can do better though, by standardising a few properties of those identifiers. For example, since it's a national ID, there is an emitting country. Then, inside a given country, there are sometimes a couple of different valid types of national documents, for example in Peru of you have Peruvian nationality you will have a DNI (documento nacional de identidad, national identity document) but if you're an authorised resident what you have is a CE (carnet de extranjería, foreigner card). So those are local types. However there are also global types such as passport. What's the name of the South-African one(s)? Last but not least, as a person you may well own several of those documents. I believe what we need is a full-fledged Government identifier with maybe documentNumber, documentType, (with a few fixed types such as "nationalId", "passport", etc.), and a local subtype. Or maybe just try to list all existing types with a syntax such as "passport", "DNI", "CE", "SSN", etc. in one field. And then other properties such as validFromDate, validUntilDate... Thoughts? |
|
A couple of thoughts come to mind.
|
|
I'm thinking of digital identity such as the one worked on by the Credentials and the Verifiable Claims W3C working groups. With proper ACLs, you might want to share your government document number(s) with certain entities such as a bank for example, as a verifiable claim. |
|
This issue is being tagged as Stale due to inactivity. |
|
I'm not willing to drop this (yet). Maybe a good way to describe a national ID is through URNs. Something like One more difficult case would be passports, since those have a fixed pattern of country + passport number. Maybe for passports a specific type of URN could be used, such as One advantage of describing an ID document as a single identifier (as opposed to a compound object) is that you can use it to refer to an individual as easily as with any other identifier. In particular, you can trivially refer to individuals in Verifiable Credentials through the I'm curious about opinions and/or existing practices on the matter. |
|
I kinda like using a generic |
|
There are blockchain projects working on this where the person will decide what data is disclosed. Since it is generally best to model the schema after external ontologies, we might want to allow the blockchain efforts to mature a little more? |
|
Three years later and there does not exist a solution :) ? |
|
@RichardWallis provided a solution for this (in this thread) on Sep 1, 2017. Considering the privacy issues, I think this topic would be better handled by an outside ontology or private firm. The person should be able to reject or allow this type of information when a query is generated. What could be handled by schema.org is Folksonomy tagging and identities. These are identifiers that the person wants in the Knowledge Base. (also, Google seems to prefer that these |
|
The main use for us is to use this with https://www.w3.org/TR/vc-data-model/. |
I realise this is perhaps not the correct place to ask this question, however the issue has been raised via the mailing list last year by someone else and was not answered, so I'm raising it here in hope there is a straight forward answer.
How does one store a national identity number in schema.org format? Given:
{
"@context": "http://schema.org/",
"@type": "Person",
"name": "Jonathan Endersby",
"givenName": "Jonathan",
"familyName": "Endersby",
"birthDate": "1980-02-20",
"gender": "Male"
}
How would I add a South African National Identity number of "8002203838229" to that entity? (that's not my real ID, don't worry).
I realise that this may have to go via a "serviceOutput", but I'm yet to find a clear example of that.
Thank you in advance.
J.
The text was updated successfully, but these errors were encountered: