inferred.edn 971 B

1234567891011121314151617181920212223
  1. ;; Script that generates classes and properties for a demo of inferring properties.
  2. ;; To generate this graph:
  3. ;; bb dev:db-create inferred deps/db/create_graph/inferred.edn
  4. ;;
  5. ;; To try the demo in the UI, in any page type:
  6. ;; - Good Will Hunting #Movie #Ben-Affleck
  7. ;; or
  8. ;; - DB 3 #Meeting #Tienson
  9. {:auto-create-ontology? true
  10. :classes {:Movie {:build/class-properties [:actor :comment]}
  11. :Meeting {:build/class-properties [:attendee :duration]}}
  12. :properties
  13. {:actor {:logseq.property/type :node
  14. :db/cardinality :many
  15. :build/property-classes [:Person]}
  16. :attendee {:logseq.property/type :node
  17. :db/cardinality :many
  18. :build/property-classes [:Person]}}
  19. :pages-and-blocks
  20. [{:page {:block/title "Matt-Damon" :build/tags [:Person]}}
  21. {:page {:block/title "Ben-Affleck" :build/tags [:Person]}}
  22. {:page {:block/title "Tienson" :build/tags [:Person]}}
  23. {:page {:block/title "Zhiyuan" :build/tags [:Person]}}]}