mirror of
https://github.com/logseq/logseq.git
synced 2026-04-26 07:05:10 +00:00
enhance: bb task for creating graphs from EDN file
Converted inferred graph to an EDN file now that this task exists. Also merge last of tasks.create-graph to relevant ns so that external users can also create such tasks
This commit is contained in:
21
deps/db/script/create_graph/inferred.edn
vendored
Normal file
21
deps/db/script/create_graph/inferred.edn
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
;; Script that generates classes and properties for a demo of inferring properties.
|
||||
;; To generate this graph:
|
||||
;; bb dev:db-create inferred deps/db/create_graph/inferred.edn
|
||||
;;
|
||||
;; To try the demo in the UI, in any page type:
|
||||
;; - Good Will Hunting #Movie #Ben-Affleck
|
||||
;; or
|
||||
;; - DB 3 #Meeting #Tienson
|
||||
{:auto-create-ontology? true
|
||||
:classes {:Movie {:build/schema-properties [:actor :comment]}
|
||||
:Meeting {:build/schema-properties [:attendee :duration]}}
|
||||
:properties
|
||||
{:actor {:block/schema {:type :object :cardinality :many}
|
||||
:build/schema-classes [:Person]}
|
||||
:attendee {:block/schema {:type :object :cardinality :many}
|
||||
:build/schema-classes [:Person]}}
|
||||
:pages-and-blocks
|
||||
[{:page {:block/original-name "Matt-Damon" :build/tags [:Person]}}
|
||||
{:page {:block/original-name "Ben-Affleck" :build/tags [:Person]}}
|
||||
{:page {:block/original-name "Tienson" :build/tags [:Person]}}
|
||||
{:page {:block/original-name "Zhiyuan" :build/tags [:Person]}}]}
|
||||
Reference in New Issue
Block a user