asami

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

quoll 2023-04-10T15:03:24.905349Z

You’re welcome

quoll 2023-04-09T12:18:40.294549Z

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

quoll 2023-04-09T12:20:09.473099Z

It’s documented here: https://github.com/quoll/asami/wiki/5.-Entity-Structure#arrays

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

Thank you for making things clear. 🙏

💖 1