1

For example, consider a subset of the user data provided by the Twitter API:

{
    "id_str": "6253282",
    "screen_name": "twitterapi",
    "name": "Twitter API"
}

Let’s say I want to model this information with JSON-LD. I can easily adapt most of this data using standards like:

{
    "@id": "acct:6253282@twitter.com",
    "???": "twitterapi",
    "http://schema.org/name": "Twitter API"
}

(The ??? is a placeholder for the descriptor I’m seeking.)

In short: are there any standard vocabularies that I could use to replace the ??? in the code snippet above?

Community
  • 1
  • 1
Josh Tilles
  • 1,281
  • 11
  • 19

1 Answers1

1

The vocabulary FOAF¹ provides the nick property:

A short informal nickname characterising an agent (includes login identifiers, IRC and other chat nicknames).


¹ Note that this vocabulary is part of the JSON-LD Context http://www.w3.org/2013/json-ld-context/rdfa11:

"foaf": "http://xmlns.com/foaf/0.1/",
unor
  • 92,415
  • 26
  • 211
  • 360