- From: Martin Hepp <mfhepp@gmail.com>
- Date: Thu, 5 Dec 2024 16:19:48 +0100
- To: Ryan Levering <rrlevering@google.com>, public-schemaorg@w3.org
- Cc: Jan Philipp Maybach <jan.philipp@texxturum.com>
Many people may not be aware of that, but:
Whenever you want to express the value for the property in a Web Ontology as a text or define a new value for an enumeration, it is perfectly valid to simply create a local instance of a compatible value type and use e.g. schema:description and schema:name to hold the text.
Not all consumers of data may understand this, and some application-specific validators may complain, but it is a perfectly valid modeling approach. And it has been proposed for e.g. product model data and incremental enrichment for 15 years now [1].
In particular in the age of LLMs, having small amounts of textual content in the scope of a typed entity should go a long way.
Like so:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type" : "Organization",
"url" : "http://www.your-company-site.com",
"name": "The ACME Anvil Experts Ltd.",
"ethicsPolicy": {
"@type": "CreativeWork",
"name": "ACME Anvil Experts Ethical Policy Statement",
"description": "Act only according to that maxim whereby you can at the same time will that it should become a universal law.",
"url": "https://en.wikipedia.org/wiki/Categorical_imperative"
}
}
</script>
You could also define a globally unique ID for a new value and link to an external definition, like so
"availability":
{
"@id": "https://myownschema.com/CookedToOrder",
"@type": "ItemAvailability",
"description": "Indicates that the menu will be prepared while you are waiting.",
"name": "CookedToOrder"
},
and hence link to a globally unique identifier.
Instead of name and description, rdfs:label and rdfs:comment could be used.
The same holds for site-specific additional classes and properties.
Best wishes
Martin
[1] http://www.ebusiness-unibw.org/wiki/Modeling_Product_Models#recipe_incremental_enrichment
-----------------------------------
martin hepp https://www.heppnetz.de
mfhepp@gmail.com
> On 5. Dec 2024, at 15:37, Ryan Levering <rrlevering@google.com> wrote:
>
> That's a very thorough answer, but I think my short answer would be that you probably don't want to embed something as complex as an ethicsPolicy in a single string. So you either have a webpage that describes it (and a URL link to it) or you are putting it in a more complete, structured form on that page.
>
> On Thu, Dec 5, 2024 at 5:15 AM Jan Philipp Maybach <jan.philipp@texxturum.com> wrote:
> Hi,
>
>
> Thanks a ton.
>
> I can go from here, I guess.
>
>
> Mit vielem Dank😊
> texxturum. Jan Philipp Maybach, Beratungsbüro, Postallee 11, D-45964 Gladbeck
> Telefon: 0 (049) 2043 40 12 858, Web: https://texxturum.eu
> Ich hab ja so viel erlebt im Leben.
>
>
>
>
>
Received on Thursday, 5 December 2024 15:20:04 UTC