Before using Logseq DB I did some research how to structure data. The website schema.org provides a great example for structured data. When applying parts of this schema I noticed different behavior of Logseq DB. Unfortunately there isn’t information if one of these behaviors is incorrect and might lead to conflicts in the future. This is currently holding me back of further exploring Logseq DB. Therefore I’m looking forward to your opinion of the following. What do you think, is one of these scenarios incorrect?
The below the structure/hierarchy (partially from schema.org) is the goal:
Root tag
Thing
– Intangible (extends Thing)
— PostalAddress (extends Thing/Intangible)
– Place (extends Thing)
— LocalBusiness (extends Thing/Place and Thing/Intangible/PostalAddress)
– Person (extends Thing and Thing/Intangible/PostalAddress)
1st scenario - The tag #Person won’t extend Thing and Thing/Intangible/PostalAddress
- Start with a new graph
- Create tag #Thing
- Create tag #Intangible
- Set extends field (parent tag) of #Intangible to ‘Thing’
- Create tag #PostalAddress
- Set extends field (parent tag) of #PostalAddress to ‘Thing/Intangible’
- Create tag #Place
- Set extends field (parent tag) of #Place to ‘Thing’
- Create tag #LocalBusiness
- Set extends field (parent tag) of #LocalBusiness to ‘Thing/Place’ and ‘Intangible/PostalAddress’
- Create tag #Person
- Set extends field (parent tag) of #Person to ‘Thing’ and ‘Intangible/PostalAddress’
Notice that the last step is not possible. The system will remove the previous extends field when you select the second one.
2nd scenario - The tag #Person accepts the extend Thing and Thing/Intangible/PostalAddress
- Start with a new graph
- Create tag #Thing
- Create tag #Intangible
- Create tag #PostalAddress
- Set extends field (parent tag) of #PostalAddress to ‘Intangible’
- Create tag #Place
- Set extends field (parent tag) of #Place to ‘Thing’
- Create tag #LocalBusiness
- Set extends field (parent tag) of #LocalBusiness to ‘Thing/Place’ and ‘Intangible/PostalAddress’
- Create tag #Person
- Set extends field (parent tag) of #Person to ‘Thing’ and ‘Intangible/PostalAddress’
- Set extends field (parent tag) of #Intangible to ‘Thing’
The hierarchy from the tag #Thing is now as the screenshot below. Notice that the tags #LocalBusiness and #Person are mentioned twice in the hierarchy (the desired result).
