Comments (3)
OK, I found this link documenting Logseq properties: https://docs.logseq.com/#/page/properties
from sparql.anything.
SA currently extends org.commonmark
library to identify the YAML frontmatter, so one can chain a SA clause to query those properties. One usage example is here
I haven't seen the key::value
method before, so I must investigate.
About the wikilinks, I am curious about what type of interpretation you would expect, it will probably need to be something like the way SA currently interprets regular links, as in:
[A document with a link](http://www.example.org)
@prefix fx: <http://sparql.xyz/facade-x/ns/> .
@prefix xyz: <http://sparql.xyz/facade-x/data/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
<http://www.example.org/document> a fx:root .
<http://www.example.org/document> a xyz:Document .
<http://www.example.org/document> rdf:_1 <http://www.example.org/document/paragraph/1> .
#
<http://www.example.org/document/paragraph/1> a xyz:Paragraph .
<http://www.example.org/document/paragraph/1> rdf:_1 <http://www.example.org/document/paragraph/1/link/1> .
#
<http://www.example.org/document/paragraph/1/link/1> a xyz:Link .
<http://www.example.org/document/paragraph/1/link/1> xyz:destination "http://www.example.org" .
<http://www.example.org/document/paragraph/1/link/1> rdf:_1 "A document with a link"
from sparql.anything.
I am curious about what type of interpretation you would expect
I would expect a specific SA property so that it's easy to distinguish and work with internal links (in most cases, they can be a resource of type Note, unless it has a specific type:
or type::
or is a::
declaration, but let's keep it simple for now).
So, if we have two MD files A.md and B.md, and A.md contains a paragraph saying:
Something about [[B]]
then
<http://www.example.org/document/paragraph/1> a xyz:Paragraph ;
xyz:mentions <URI of B> .
(I don't remember now in SA what will be the property linking the paragraph URI with the string Something about [[B]]
, that's why I didn't add it in the example,)
Now, the URI of B is often provided is some way by the tool but if there is a too bg diversity then the file path of B can be used.
Then in many cases the inverse relationship becomes interesting: find me all paragraphs (and in which documents they are) which mention B or C, for example.
Some of these tools, have not only page (note) references with [[wikilinks]] but also block references, which in Clojure/Datalog tools like Logseq1, Roam Research and Hulunote (there are two more are with (( )) and in Obsidian there is another mechanism) have dereferencible URIs, where one paragraph can mention another.
Footnotes
-
By the way, I have used Logseq to publish a SHACL wiki and a SPARQL wiki. The latter one needs update and one of the things to add is a page about SA. ↩
from sparql.anything.
Related Issues (20)
- Release v0.9.0 HOT 17
- Maven error with sub modules: parent pom not found HOT 6
- apf: functions not working in SERVICE blocks (Testing 0.9-DEV.2) HOT 10
- FolderTriplifierTest.matches fails in the case that the path to the project contains a "j" HOT 1
- Stability of the cosine distance HOT 6
- Jena optimiser not operating within service clauses HOT 1
- Create a workflow for maven build on Windows HOT 1
- Making fx and xyz namespace URL return something
- Query PPTX HOT 8
- Docs package has test resources in main folder
- Validating CSV column names HOT 1
- Extract sections from pptx HOT 1
- Extract hyperlinks from pptx HOT 5
- PNGs corrupted HOT 1
- Prepare v1.0-DEV
- Document how to extend SPARQL Anything by adding new Triplifiers HOT 1
- How to get comments from DOCX?
- Generate format page automatically HOT 5
- Rename bib module as bibliograpghy HOT 2
- Move Triplifier.getPropertyValues() to PropertyUtils class
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sparql.anything.