schemaorg icon indicating copy to clipboard operation
schemaorg copied to clipboard

Let all types has the https://schema.org/additionalProperty

Open fishfree opened this issue 1 year ago • 11 comments

https://schema.org/additionalProperty supports arbitrary key-value pairs, so it's very suitable for extended description. Or is it only neccessary to add this property in the Thing type? Then all other types can inherit it.

fishfree avatar Jun 04 '24 01:06 fishfree

This issue is being nudged due to inactivity.

github-actions[bot] avatar Sep 02 '24 02:09 github-actions[bot]

Are you suggesting additionalProperty be a property of Thing?

MatthiasWiesmann avatar Sep 02 '24 11:09 MatthiasWiesmann

@MatthiasWiesmann Yes, exactly. It will add great extensibility to describe things.

fishfree avatar Sep 02 '24 13:09 fishfree

I would bring this to the larger community, as this would be a significant change.

MatthiasWiesmann avatar Sep 02 '24 13:09 MatthiasWiesmann

Thing seem like a pretty obvious domain for additionalProperty....

smrgeoinfo avatar Sep 03 '24 02:09 smrgeoinfo

This issue is being nudged due to inactivity.

github-actions[bot] avatar Dec 07 '24 02:12 github-actions[bot]

I've found that https://validator.schema.org does not complain about schema:additionalProperty on classes where it isn't defined, such as schema:Dataset.

I tested the following snippet in https://validator.schema.org and found that it passes validation, which seems curious to me since other non-schema-compliant properties appear to raise warnings or errors.

Is this expected behaviour?

{
    "@context": "https://schema.org/",
    "@type": "Dataset",
    "name": "HOT: Niskin bottle samples",
    "description": "Something, Something, Something, Something, Something, Something, Something, Something, Something",
    "additionalProperty": {
        "@type": "PropertyValue",
        "propertyID": "https://dbpedia.org/page/Spatial_reference_system",
        "value": "https://www.w3.org/2003/01/geo/wgs84_pos"
    }
}

image

roblinksdata avatar Jan 10 '25 15:01 roblinksdata

+1 from IOC UNESCO's Ocean Data and Information System application case

pbuttigieg avatar Jan 23 '25 10:01 pbuttigieg

+1

fthobe avatar Apr 09 '25 14:04 fthobe

+1 Also if its allowed on purpose whats the reason behind it? How is addidtionalProperty different from the others?

tahirawan077 avatar Apr 11 '25 10:04 tahirawan077

Also if its allowed on purpose whats the reason behind it? How is addidtionalProperty different from the others?

It allows you to include a property that is not part of schema.org (and therefore not guaranteed to be understood by tools and apps that use schema.org).

It may be useful for microdata or if you treat JSON-LD as just being JSON, but there are better ways of doing this for properties from RDF/Linked Data vocabularies---just include the relevant namespace and in JSON-LD add what you need to the context, see for example this on the JSON-LD playground https://tinyurl.com/2adv7z79 .

philbarker avatar Apr 11 '25 11:04 philbarker

This issue is being nudged due to inactivity.

github-actions[bot] avatar Jul 15 '25 03:07 github-actions[bot]