To what extent is JSON content sandboxed?
I.e can harmful tiddlers that are packaged up as JSON still be harmful when in the JSON format?
--
You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikide...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/c8c24a82-a99e-402b-8b79-e6ff02ff8184%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddly...@googlegroups.com.
I appreciate the continued focus on leveraging tiddlers as the basic store but we need to extend their handling in some ways if we want them to also represent records in the equivalent of database tables. Here I am thinking of hiding the "data record" tiddlers from standard searches without prefixing them with $:/
and somehow enabling the same key (tiddlername) to be used to address different records in different logical tables/or namespaces (see below).
To me however allowing the designer to to make use of fully featured "data tiddlers" adds great strength to tiddlywikis ability to respond to all possible data structures someone may wish to represent in tiddlywiki. Enabling JSON to the fullest extent also increases TiddlyWikis ability to interact with external data sources as many sources such as xml can be converted to JSON if not yet available. We do not need to code for all possible data sources if we comprehensively adopt a robust standard like JSON because we can leverage external tools written for the conversion of data between standards and maintained by others.
Joshua's tools are extensive and I hope they may improve such handling in the future.Given the maxim that if you place a problem on the table you should place a possible solution there as well;
- If we could introduce additional name spaces which are not in the tiddler name, such that when one of these is set the <<currentNamespace>> can refer to the tiddlers there in with <<currentTiddler>> then a database table could be created in its own namespace, with identical tiddler names to those in other namespaces. A names space can be used as a table name.
- Of course this would be a challenging thing to implement but its benefits would be extensive and would allow further use of tiddlers as the atom of data. Careful design would make the use of additional namespaces invisible until a user/designer starts to use additional ones.
- To be able to filter tiddlers in one namespace and use this as a key to tiddlers in another namespace would be needed.
- This can be done with prefixes, remove prefix and lookup operator but the logic is far more complex and harder to follow or design.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikide...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/f54ebf05-1eb0-4b9b-ac46-9e8230c196c1%40googlegroups.com.
Hi Tony
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/f54ebf05-1eb0-4b9b-ac46-9e8230c196c1%40googlegroups.com.
The title is a unique key. If you want to address tiddlers by a non-unique key then you’d use a field.
Are you saying that you’d like TW5 to have better interop with existing JSON files and APIs? I think Joshua is exploring the approach of extending the existing data tiddler mechanism. In some of my own work I have explored a different approach, “exploding” JSON documents into multiple tiddlers, where each tiddler represents a node of the document. It’s one of many incomplete plugins that I must get around to releasing.
I’m not sure I’m following your exact meaning, but it sounds like you want TW5 to behave more like a database.
I’m not sure what you mean by namespaces, but some of what you’re describing sounds like the plugin mechanism.
Maybe you’re talking about something like TiddlyWeb’s “bag” model of storage? We have considered implementing that model within TW5 itself, whereby the store would be a list of independent bags.