Skip to content

Are "rich" references possible via reference nodes or embedded node objects? #853

Answered by absoludity
absoludity asked this question in Q&A
Discussion options

You must be logged in to vote

Now I am answering my own question: Rich references appear to be handled fine - rather than defining new nodes, the data is merged together based on the unique @id (ie. the RDF triplets have the same subject). More accurately, it's not a reference, but a separate node object for the same node (@id), which may define the same (or new) properties which will be merged into the resulting node (see below for spec reference).

Using the playground with the following json-ld:

{
  "@context": {
    "@vocab": "http://xmlns.com/foaf/0.1/"
  },
  "@id": "http://manu.sporny.org/about#manu",
  "@type": "Person",
  "name": "Manu Sporny",
  "knows": [{
    "@id": "https://greggkellogg.net/foaf#me",
    "…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@BigBlueHat
Comment options

@absoludity
Comment options

Answer selected by absoludity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants