Add url properties to schema and page properties

This required adding support for property :properties to create-graph.
Also fixed a subtle bug where transact! silently fails for positive
:db/id integers. Also misc script cleanup and docs
This commit is contained in:
Gabriel Horner
2023-08-30 16:13:21 -04:00
parent 43c299972c
commit 7a48557ec9
3 changed files with 108 additions and 58 deletions

View File

@@ -31,6 +31,18 @@ properties. Read the docs in
[logseq.tasks.db-graph.create-graph](src/logseq/tasks/db_graph/create_graph.cljs)
for specifics on the EDN map.
Another example is the `create_graph_with_schema_org.cljs` script which creates a graph
with the https://schema.org/ ontology with as many of the classes and properties as possible:
```
$ yarn -s nbb-logseq src/logseq/tasks/db_graph/create_graph_with_schema_org.cljs schema
Skipping 67 superseded properties
Skipping 25 properties with unsupported data types
Renaming 44 classes due to page name conflicts
Generating 2268 pages with 900 classes and 1368 properties ...
Created graph schema!
```
#### Update graph scripts
For database graphs, it is possible to update graphs with the