I've added a little more of my work to show how I'm thinking
I hope this question isn't too broad. I'm thinking through a number of things and thought I'd try to put a "basic" question down here.
I have some data for a game I play with some friends online. I have a very simple php page which spits out some data from a database that looks like this:
[
{
"Name": "David Alger",
"Id": "1",
"Username": "Dave",
"Colour": "green"
},
{
"Name": "John Smith",
"Id": "2",
"Username": "JohnS",
"Colour": "blue"
}
]
It's simply the player info, with a local ID, a username and a colour used to show the player in the game (it's actually just used as a colour in HTML).
Since I've been looking at JSON-LD I began to think about making this JSON data into JSON-LD.
My question then becomes:
1) Is it worth making this data (or data like it) into JSON-LD just "in case we want to open it up one day"? Or would that be, typically, a waste of energy?
2) How would I make this JSON-LD? What makes sense to "link" and how would that look?
I've been playing a little with ideas like allowing individual 'players' to be returned rather than all coming at once, then each getting a URI for an ID. (Can this be a simple url like example.com/player?id=1 or does it have to be more as I have shown?) I've also looked at: - using the idea of context for a type like person. - using "sameAs", but it's unclear if that will automatically 'work' in this format? - trying to specify what items like "colour" are, by giving it a context.
{
"@context": {
"name": "http://schema.org/name",
"Colour": "http://dbpedia.org/ontology/Colour"
},
"@type": "http://schema.org/Person",
"@Id": "http://example.com/player/1",
"sameAs" : "https://www.facebook.com/DaveAlger",
"Id": 1,
"name": "David Alger",
"Username": "Dave",
"Colour": "green"
}
It feels rather like I'm blundering around in the dark. So any help is appreciated.