There are a number of great libraries available for building Solid apps, such as LDflex for Solid and rdflib*. They’re very useful, but also primarily aimed at making life easy for developers already familiar with the concepts of Linked Data, RDF, etc.
Some of you will have seen glimpses of it already, but since it might be useful to others as well, here’s an explicit forum post to share Tripledoc.
Tripledoc was created while writing documentation for developers new to Solid. It that process, it turned out there was quite a distance between how the explanation of Solid’s concepts, and the code you would write. Thus, the main motivation for Tripledoc is to provide something that is:
Well documented.
Makes it as easy as possible to understand for developers with limited familiarity with Linked Data.
So where LDflex contains many clever shortcuts to make it easier to write Linked Data applications, Tripledoc will often be wordier - but hopefully with fewer surprises.
* I should also give a shout-out to @jeffzsolid-file-client, which makes it easy to store arbitrary files on a Solid Pod. I’m mainly focusing on storing structured data here, though
This sounds great. I like the idea very much. I tried the quick start link but am not seeing anything but Tim’s name underneath: The following name is fetched from https://www.w3.org/People/Berners-Lee/card:
Using Firefox on Android tablet. Same with Chrome on Android tablet.
Ah, thanks for the heads-up. It should show the source code next to it, but it probably doesn’t do that on a tablet screen size by default. You can click the little bar on the left-hand side to reveal and edit the code - though editing is probably easier on a full computer.
It’s just example code that fetches Tim’s name from his Pod to give a feel for how Tripledoc works, so yes, Tim’s name is the only output. Consider the area below it to be a blank canvas that you can fill with your own code
hi @Vincent looks really great! I really like your “Writing a Solid app” docs; I might give it a try and see if I can replicate a basic “notes” type app.
Hi @Vincent I’ve use Tripledoc 2.4 to integrate Notepod in a dashboard https://scenaristeur.github.io/compagent/notepod-i18n/ but I encountered an issue when I wanted to use websocket to refresh data.
I thought it was due to the cache of Tripledoc that didn’t parse a doc it has already parser. So looking to tripledoc doc I’ve seen that you have disabled caching . So I 've tried to use Tripledoc 3 but some change make my app going wrong :
Tripledoc now uses n3.js, and as I said in another topic, I want to use bundled librairies so that the app can be hosted on github-pages or on a Pod. But I was not able to create a bundle n3.js with browserify as @RubenVerborgh said.
Can someone help? Thxs
(Note that you can publish the output of a bundler like Webpack or Browserify to GitHub Pages or a Pod just fine, so I’d still recommend people reading along to use a bundler if they can, which should result in better performance by only shipping relevant code.)
@Vincent thxs it seems to work.
I know it’s a better to bundle all, but
I don’t want my app to be bundled so it could be editable on the POD, but i need dependencies to be bundled