mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
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
21 lines
975 B
Clojure
21 lines
975 B
Clojure
;; 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]}}]} |