GithubHelp home page GithubHelp logo

Comments (3)

enridaga avatar enridaga commented on June 27, 2024 1

OK, I found this link documenting Logseq properties: https://docs.logseq.com/#/page/properties

from sparql.anything.

enridaga avatar enridaga commented on June 27, 2024

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.

kvistgaard avatar kvistgaard commented on June 27, 2024

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

  1. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.