Skip to content

Commit

Permalink
Update uses of properties to be valid with property validation
Browse files Browse the repository at this point in the history
- Added property related pages for validation
- Minor fixes for validation e.g. remove unused property and one-off
  uses of a property
- Update graph overview and delete an ol query
  • Loading branch information
logseq-cldwalker committed Jun 26, 2023
1 parent 351394b commit cce557f
Show file tree
Hide file tree
Showing 24 changed files with 77 additions and 23 deletions.
7 changes: 6 additions & 1 deletion .graph-validator/config.edn
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
{:exclude [tags-and-page-refs-have-pages]
:add-namespaces [logseq.graph-validator.validations.class schema]}
:add-namespaces [logseq.graph-validator.validations.class
logseq.graph-validator.validations.property
schema]
;; These are all used in examples
:property/ignore-list #{:author :project :tag :publication-date :price :qty
:full-title :source}}
3 changes: 3 additions & 0 deletions pages/Boolean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
type:: [[Class]]
parent:: [[DataType]]
url:: https://schema.org/Boolean
4 changes: 4 additions & 0 deletions pages/DataType.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
type:: [[Class]]
parent:: [[Class]]
url:: https://schema.org/DataType
description:: Provides basic data types such as integers, strings, etc. See https://www.w3.org/TR/rdf12-concepts/#section-Datatypes for additional datatypes that could be possible
10 changes: 5 additions & 5 deletions pages/Graph Overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
*Note:* This section shows how classes or types of pages are related to each other. A class groups pages that share a common set of properties. `Thing` is the root class from which all other classes are defined. When a class is a child of another class, it usually inherits using the same properties as its parent class.
- [[Thing]]
- [[Class]]
- [[DataType]]
- [[Boolean]]
- [[StringWithRefs]]
- [[String]]
- [[Uri]]
- [[FeatureTag]]
- [[Feature]]
- [[Command]]
Expand Down Expand Up @@ -50,11 +55,6 @@
:result-transform (fn [res] (map (fn [m] (assoc-in m [:block/properties :name] (get-in m [:block/page :block/original-name]))) res))
:title "Commands"}
#+END_QUERY
- query-table:: true
#+BEGIN_QUERY
{:query (property :type [[Command]])
:title "Commands"}
#+END_QUERY
- [[Whiteboard/Tool]]
collapsed:: true
- collapsed:: true
Expand Down
4 changes: 4 additions & 0 deletions pages/String.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
type:: [[Class]]
parent:: [[DataType]]
url:: https://schema.org/Text
meta:: Prefer the name string over text as it maps with xsd:string
4 changes: 4 additions & 0 deletions pages/StringWithRefs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
type:: [[Class]]
parent:: [[DataType]]
url:: {{docs-base-url StringWithRefs}}
description:: String that can have page references
4 changes: 4 additions & 0 deletions pages/Uri.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
type:: [[Class]]
parent:: [[DataType]]
url:: https://schema.org/URL
meta:: Couldn't use URL since we're case insensitive and url is already taken
2 changes: 0 additions & 2 deletions pages/Whiteboard___Property___Links.md

This file was deleted.

10 changes: 1 addition & 9 deletions pages/about.org
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#+TITLE: About
#+PERMALINK: about

** Hi, welcome to [[https://logseq.com][Logseq]].

Expand All @@ -13,33 +12,27 @@
plain text files, we support both Markdown and Emacs Org mode for the time being. Even if the website is down or can't be maintained, your data is always yours.

*Logseq* is hugely inspired by [[https://roamresearch.com/][Roam Research]], [[https://orgmode.org/][Org Mode]], [[https://tiddlywiki.com/][Tiddlywiki]] and [[https://workflowy.com/][Workflowy]], hats off to all of them!
[[https://cdn.logseq.com/%2F8b9a461d-437e-4ca5-a2da-18b51077b5142020_07_25_Screenshot%202020-07-25%2013-29-49%20%2B0800.png?Expires=4749255017&Signature=Qbx6jkgAytqm6nLxVXQQW1igfcf~umV1OcG6jXUt09TOVhgXyA2Z5jHJ3AGJASNcphs31pZf4CjFQ5mRCyVKw6N8wb8Nn-MxuTJl0iI8o-jLIAIs9q1v-2cusCvuFfXH7bq6ir8Lpf0KYAprzuZ00FENin3dn6RBW35ENQwUioEr5Ghl7YOCr8bKew3jPV~OyL67MttT3wJig1j3IC8lxDDT8Ov5IMG2GWcHERSy00F3mp3tJtzGE17-OUILdeuTFz6d-NDFAmzB8BebiurYz0Bxa4tkcdLUpD5ToFHU08jKzZExoEUY8tvaZ1-t7djmo3d~BAXDtlEhC2L1YC2aVQ__&Key-Pair-Id=APKAJE5CCD6X7MP6PTEA][2020_07_25_Screenshot 2020-07-25 13-29-49 +0800.png]]
[[https://cdn.logseq.com/%2F8b9a461d-437e-4ca5-a2da-18b51077b5142020_07_25_Screenshot%202020-07-25%2013-29-49%20%2B0800.png?Expires=4749255017&Signature=Qbx6jkgAytqm6nLxVXQQW1igfcf~umV1OcG6jXUt09TOVhgXyA2Z5jHJ3AGJASNcphs31pZf4CjFQ5mRCyVKw6N8wb8Nn-MxuTJl0iI8o-jLIAIs9q1v-2cusCvuFfXH7bq6ir8Lpf0KYAprzuZ00FENin3dn6RBW35ENQwUioEr5Ghl7YOCr8bKew3jPV~OyL67MttT3wJig1j3IC8lxDDT8Ov5IMG2GWcHERSy00F3mp3tJtzGE17-OUILdeuTFz6d-NDFAmzB8BebiurYz0Bxa4tkcdLUpD5ToFHU08jKzZExoEUY8tvaZ1-t7djmo3d~BAXDtlEhC2L1YC2aVQ__&Key-Pair-Id=APKAJE5CCD6X7MP6PTEA][2020_07_25_Screenshot 2020-07-25 13-29-49 +0800.png]]
** Where are my notes saved?
Your notes will be stored in the local browser storage. We are using IndexedDB.

** How do I use it?
*** 1. Sync between multiple devices
Currently, we only support syncing through Github, more options (e.g.
Gitlab, Dropbox, Google Drive, WebDAV, etc.) will be added soon.

We are using an excellent web git client called [[https://isomorphic-git.org/][isomorphic-git]].

**** Step 1
Click the button /Login with Github/.

**** Step 2
Set your Github personal access token, the token will be encrypted and
stored in the browser local storage, our server will never store it.

If you know nothing about either Git or the personal access token, no worries,
just follow the steps here: https://logseq.com/blog/faq#How_to_create_a_Github_personal_access_token-3f-

**** Step 3
Start writing!

*** 2. Use it locally (no need to login)
Just remember to backup your notes periodically (we'll provide export and import soon)!

** Features
- Backlinks between ~[[Page]]~s
- Block embed
Expand All @@ -59,7 +52,6 @@
- Website: https://logseq.com/
- Github: https://github.com/logseq/logseq everyone is encouraged to report issues!
- Our blog: https://logseq.com/blog

** Credits to
- [[https://roamresearch.com/][Roam Research]]
- [[https://orgmode.org/][Org Mode]]
Expand Down
1 change: 1 addition & 0 deletions pages/description.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
type:: [[Property]]
url:: https://schema.org/description
rangeIncludes:: [[StringWithRefs]]
6 changes: 6 additions & 0 deletions pages/domainIncludes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type:: [[Property]]
url:: {{docs-base-url domainIncludes}}
description:: A more useful version of rdfs:domain as it can be one of multiple values
sameAs:: https://schema.org/domainIncludes
domainIncludes:: [[Property]]
rangeIncludes:: [[Class]]
3 changes: 3 additions & 0 deletions pages/initial-version.md
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
type:: [[Property]]
url:: {{docs-base-url initial-version}}
domainIncludes:: [[Feature]] [[Tool]]
rangeIncludes:: [[String]]
4 changes: 4 additions & 0 deletions pages/meta.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
type:: [[Property]]
url:: {{docs-base-url meta}}
description:: Meta description field which usually discusses organizing thing instead of thing itself
rangeIncludes:: [[String]]
4 changes: 4 additions & 0 deletions pages/name.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
type:: [[Property]]
url:: https://schema.org/name
rangeIncludes:: [[String]]
unique:: true
9 changes: 4 additions & 5 deletions pages/page_embed.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
---
title: Page embed
related: [[Block embed]]
tags: [[embed]]
description:: See [[Block embed]] for block version of this
---

- Also commonly known as transclusion, page embedding allows an entire page to be displayed within another.
- Create a page embed by:
- Typing `{{{embed [[page name]]}}}`
-
#+BEGIN_TIP
- Typing `{{{embed [[page name]]}}}`
- #+BEGIN_TIP
- Edits made to the embedded content are also made to the referenced content.
- Embedding does not contribute to a page's [[Linked References]]
#+END_TIP
#+END_TIP
2 changes: 2 additions & 0 deletions pages/parent.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
type:: [[Property]]
url:: https://www.w3.org/2000/01/rdf-schema#subClassOf
description:: Used to connect a class with its parent class
domainIncludes:: [[Class]]
rangeIncludes:: [[Class]]
3 changes: 3 additions & 0 deletions pages/platforms.md
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
type:: [[Property]]
url:: {{docs-base-url platforms}}
domainincludes:: [[Feature]] [[Tool]]
rangeIncludes:: [[Platform]]
6 changes: 6 additions & 0 deletions pages/rangeIncludes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type:: [[Property]]
url:: {{docs-base-url rangeIncludes}}
description:: List of values a property can have
sameAs:: https://schema.org/rangeIncludes
domainIncludes:: [[Property]]
rangeIncludes:: [[Class]]
1 change: 1 addition & 0 deletions pages/sameAs.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
type:: [[Property]]
url:: https://www.w3.org/2002/07/owl#sameAs
description:: Indicates that two URIs are equivalent
rangeIncludes:: [[Uri]]
4 changes: 4 additions & 0 deletions pages/supports.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
type:: [[Property]]
url:: {{docs-base-url supports}}
domainIncludes:: [[Whiteboard/Object]] [[Tool]]
rangeIncludes:: [[String]]
2 changes: 1 addition & 1 deletion pages/term.page title.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
title:: custom page title
sample:: click me
description:: click me

- description:
- the content displayed at the top of a page, used to uniquely identify the page
Expand Down
1 change: 1 addition & 0 deletions pages/type.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
type:: [[Property]]
url:: http://www.w3.org/1999/02/22-rdf-syntax-ns#type
rangeIncludes:: [[Class]]
4 changes: 4 additions & 0 deletions pages/unique.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
type:: [[Property]]
url:: {{docs-base-url unique}}
rangeIncludes:: [[Boolean]]
domainIncludes:: [[Property]]
2 changes: 2 additions & 0 deletions pages/url.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
type:: [[Property]]
url:: https://schema.org/url
rangeIncludes:: [[Uri]]
unique:: true

0 comments on commit cce557f

Please sign in to comment.