asami 2023-04-09

George Peristerakis 2023-04-09T05:40:02.460579Z

Hello, I have a list of json documents I transacted into asami and in each document has a key "skills" with value a list of strings. Does asami add each element to the graph as a node or is the entire list a node? Because I tried (asami/q '[:find ?skill :where [_ :skills ?skills]] (...)) returns a list of [:a/node-XXXXX]

Jakub Holý (HolyJak) 2023-04-29T20:21:12.969599Z

if you do not care about the order then it might be better to leverage multi-value property by turning the list into a set

You’re welcome

Unless it’s an id property, then it gets structured as a linked list in the graph, just as RDF does it: https://www.w3.org/TR/rdf-mt/%23InterpVocab#collections

George Peristerakis 2023-04-10T03:55:00.704319Z

Thank you for making things clear. 🙏

💖 1