inferred.edn 940 B

123456789101112131415161718192021
  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/schema-properties [:actor :comment]}
  11. :Meeting {:build/schema-properties [:attendee :duration]}}
  12. :properties
  13. {:actor {:block/schema {:type :node :cardinality :many}
  14. :build/schema-classes [:Person]}
  15. :attendee {:block/schema {:type :node :cardinality :many}
  16. :build/schema-classes [:Person]}}
  17. :pages-and-blocks
  18. [{:page {:block/title "Matt-Damon" :build/tags [:Person]}}
  19. {:page {:block/title "Ben-Affleck" :build/tags [:Person]}}
  20. {:page {:block/title "Tienson" :build/tags [:Person]}}
  21. {:page {:block/title "Zhiyuan" :build/tags [:Person]}}]}