Add description to schema class pages now that they are visible

pull/10438/head
Gabriel Horner 2023-09-18 12:07:41 -04:00
parent 96da22e143
commit f742864d0d
1 changed files with 4 additions and 1 deletions

View File

@ -54,7 +54,10 @@
:block/type "class"
:block/uuid (get-class-uuid class-uuids (class-m "@id"))
:db/id (get-class-db-id class-db-ids (class-m "@id"))
:properties {:url (string/replace-first (class-m "@id") "schema:" "https://schema.org/")}}
:properties (cond->
{:url (string/replace-first (class-m "@id") "schema:" "https://schema.org/")}
(class-m "rdfs:comment")
(assoc :description (class-m "rdfs:comment")))}
parent-class
(assoc :block/namespace {:db/id (get-class-db-id class-db-ids parent-class)})
(seq properties)