- From: Richard Wallis <richard.wallis@dataliberate.com>
- Date: Wed, 2 Sep 2020 19:12:50 +0100
- To: James Hudson <jameshudson3010@gmail.com>
- Cc: "schema. org Mailing List" <public-schemaorg@w3.org>
- Message-ID: <CAD47Kz5RH9AR1oSxD1nXUHDmXFsktu0_Mv3yzcJ1qJzqW91v+Q@mail.gmail.com>
Hi James,
Your assumption is correct.
Richard Wallis
Founder, Data Liberate
http://dataliberate.com
Linkedin: http://www.linkedin.com/in/richardwallis
Twitter: @rjw
On Wed, 2 Sep 2020 at 17:29, James Hudson <jameshudson3010@gmail.com> wrote:
> 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 18:13:14 UTC