Skip to content

Commit 3edf993

Browse files
authored
Merge pull request threatgrid#62 from quoll/master
Added graph dump operation
2 parents c4c0b00 + 2f90fe4 commit 3edf993

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/naga/store.clj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
(assert-data [store data] "Inserts new axioms")
1616
(query-insert [store assertion-patterns patterns] "Resolves a set of patterns, joins them, and inserts the set of resolutions"))
1717

18+
(defn retrieve-contents
19+
"Convenience function to retrieve the contents of the entire store"
20+
[store]
21+
(resolve-pattern store '[?entity ?attribute ?value]))
22+
1823
(def registered-stores (atom {}))
1924

2025
(defn register-storage!

0 commit comments

Comments
 (0)