question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Consider optional GivenName and FamilyName for people

See original GitHub issue

It is best practice (e.g. schema.org) to allow givenName and familyName in addition to name. Makes it easier to generate correct citation, as names frequently need to be formatted.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
cboettigcommented, Mar 30, 2017

Yup, this makes sense to me,

Note that since we’re essentially defining a vocabulary, not a schema, nothing actually prevents you from using these existing schema.org terms in your codemeta.json, e.g.:

{
  "title":"dataone: R Interface to the DataONE REST API",
  "identifier":"http://dx.doi.org/10.5063/F1M61H5X",
  "@context":"https://raw.githubusercontent.com/codemeta/codemeta/master/codemeta.jsonld",
  "@type":"SoftwareSourceCode",
   "agents":[
      {
         "@id":"http://orcid.org/0000-0003-0077-4738",
         "@type":"person",
         "email":"jones@nceas.ucsb.edu",
         "schema:givenName":"Matt",
         "schema:familyName": "Jones"
      }
   ]
}

Is just as good as:

{
  "title":"dataone: R Interface to the DataONE REST API",
  "identifier":"http://dx.doi.org/10.5063/F1M61H5X",
  "@context":"https://raw.githubusercontent.com/codemeta/codemeta/master/codemeta.jsonld",
  "@type":"SoftwareSourceCode",
   "agents":[
      {
         "@id":"http://orcid.org/0000-0003-0077-4738",
         "@type":"person",
         "email":"jones@nceas.ucsb.edu",
         "name":"Matt Jones",
      }
   ]
}

the only difference being that you have to use the namespace since name is explicitly in the context and so far givenName & familyName are not.

For programmatic use, I believe we ought to be defining a JSON frame (#128) for framing input jsonld into a practical & predictably structured JSON tree. We don’t have such a frame defined yet; I suppose it should just permit all three options as possible members of an agent (e.g. name, givenName and familyName?)

0reactions
cboettigcommented, May 10, 2017

This has been added to the proposed codemeta-v2.jsonld, which goes along with the re-alignment towards schema.org anyhow (#134). So closing this out as subsumed by #134

Read more comments on GitHub >

github_iconTop Results From Across the Web

How should I fill the "First name" and "Last name" in an ...
For the first name, put whatever you want people to actually call you. · For the last name, put both names, or else...
Read more >
SEVIS Names FAQ - Study in the States
Q: Why do the standards say that Given Name is optional? A: Not everybody has more than one name. If you have only...
Read more >
Why Your Form Only Needs One Name Field - UX Movement
Single “Full Name” Field​​ A single field labeled “Full Name” is more culturally inclusive. The full name may include first, middle, last, family ......
Read more >
Personal names - Internationalization
Given a three-word name, you can't tell whether it's two given names and a family name, like John Jacob Astor, or a given...
Read more >
Personal name - Wikipedia
This article is about the full names of individual human beings. For the name distinguishing one person from others with the same surname,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found