- From: James Hudson <jameshudson3010@gmail.com>
- Date: Wed, 2 Sep 2020 12:27:02 -0400
- To: "schema. org Mailing List" <public-schemaorg@w3.org>
- Message-ID: <CAEUVO9GKz=+hegUbeedkwQPXAuMJWy8FPjRyyvwtOBgeT_3bVg@mail.gmail.com>
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