- From: Melvin Carvalho <melvincarvalho@gmail.com>
- Date: Sat, 16 Nov 2024 22:21:15 +0100
- To: Gregg Kellogg <gregg@greggkellogg.com>
- Cc: Semantic Web <semantic-web@w3.org>
- Message-ID: <CAKaEYhKjCF7Cx6fvri_JCebL-rrDG2S8-HE2+uoLvYru9T8CgA@mail.gmail.com>
st 21. 8. 2024 v 0:41 odesílatel Gregg Kellogg <gregg@greggkellogg.com> napsal: > From Section 9.2 on Node Objects [1]. > > If the node object <https://www.w3.org/TR/json-ld11/#dfn-node-object> contains > the @type key, its value *MUST* be either an IRI reference > <https://tools.ietf.org/html/rfc3987#section-1.3>, a compact IRI > <https://www.w3.org/TR/json-ld11/#dfn-compact-iri> (including blank node > identifiers > <https://www.w3.org/TR/rdf11-concepts/#dfn-blank-node-identifier>), a term > <https://www.w3.org/TR/json-ld11/#dfn-term> defined in the active context > <https://www.w3.org/TR/json-ld11/#dfn-active-context> expanding into an > IRI <https://tools.ietf.org/html/rfc3987#section-2>, or an array > <https://infra.spec.whatwg.org/#list> of any of these. See § 3.5 Specifying > the Type <https://www.w3.org/TR/json-ld11/#specifying-the-type>for > further discussion on @type values. > > > So, yes, @type can be resolved either to the default vocabulary or the > document location. It’s about the only term that has this dual expansion > capability. > Thanks Gregg But what if I want "Thing" to be a relative URI, and it's already in the @context? Is there some precedence to it? Or am I out of luck with wanting to use a relative URI when a context contains a term. If so, might there be an issue of context terms polluting the namespace? > > Gregg Kellogg > > > [1] https://www.w3.org/TR/json-ld11/#node-objects > > Sent from my iPhone > > On Aug 20, 2024, at 2:09 AM, Melvin Carvalho <melvincarvalho@gmail.com> > wrote: > > > if I have : > > "@type": "Thing" > > will that look for a relative URI in the current document if there is no > context? > > and if there is a context, can I still point to a relative URI? > >
Received on Saturday, 16 November 2024 21:21:32 UTC