json-ld-syntax icon indicating copy to clipboard operation
json-ld-syntax copied to clipboard

Clarification: Example 45, expansion of interest.name

Open Zonker2 opened this issue 4 weeks ago • 0 comments

In Example 45, interest.name expands to http://schema.org/name despite interest having a property-scoped context with vocabulary set to http://xmlns.com/foaf/0.1 (and foaf defining a property name.)

Is this because the domain of foaf:interest is foaf:person and foaf:person is not in the domain of foaf:name, (but e.g. of foaf:first_name)? This seems illogical, since it requires the JSON-LD processor to understand RDF schema (at least), everything else up to now has been self-contained.

I think actually this is because @vocab acts as a fall back for terms not defined elsewhere (here name in the outer @context) but perhaps a notice would be helpful.

Zonker2 avatar Dec 24 '25 08:12 Zonker2