Many-to-many relationships within same dataset

So, I have a case where items within a given dataset (skills) need to be related.

Eq. Javascript can be related to node, json, es6, webpack…

Should I simply reference the ids of related items as part of the “relationships” section of my response?