Class inheritance and storing data

Hello,

I have a fairly simple question and I am not sure what the correct answer
is.

The http://schema.org/about property has a range of sch:Thing.

Picking a random class from schema.org: https://schema.org/GameServer

Because sch:GameServer inherits from sch:Thing, would it be appropriate to
store instance data of sch:GameServer inside of a sch:about property?

For example, would something like this be appropriate:

TTL:

@prefix sch: <http://schema.org/> .

<http:///example.org/asdgjkj> a sch:CommunicateAction ;
    sch:about [ a sch:GameServer ;
            sch:playersOnline "42" ] .


JSON-LD:

{
  "@context": {
        "sch": "http://schema.org/",
        "about": "http://schema.org/about",
        "GameServer": "http://schema.org/GameServer",
        "playersOnline": "http://schema.org/playersOnline",
        "ex": "http:/example.org/"
  },
  "@id": "ex:asdgjkj",
  "@type": "CommunicateAction",
  "about": {
    "@type": "GameServer",
    "playersOnline": "42"
  }
}

I believe I am making an incorrect assumption from my Object Oriented
Programming background and assuming that inheritance works basically the
same way in this space.

Or, would this be a valid use of schema.org terms?

Regards,
James

Received on Wednesday, 2 September 2020 16:27:49 UTC