Incorporating Exhibit/JSON within Tiddlywiki

533 views
Skip to first unread message

Vikas Singh

unread,
Apr 7, 2016, 1:31:41 PM4/7/16
to tiddl...@googlegroups.com
Hi everyone,

Is there a way to get Tiddlywiki to use a JSON file to show a list of
publications such as the one here
http://people.csail.mit.edu/karger/papers.html

within a publications tiddler? I am redoing my Tiddlywiki based
homepage first designed in the early/mid 2000s using the newer version
and would like to have the capability of dynamically loading content
from a JSON file.

thank you!

Alex Hough

unread,
Apr 7, 2016, 3:48:06 PM4/7/16
to TiddlyWiki
Hi Vikas,

You can export a tiddler or set of tiddlers to JSON.

The screenshot below show how you'd do it with a filter
Inline images 1
I have played around with Zotero, the reference manager. It exports a flavour of JSON designed for bibliographic data, CSL [1]


You can import JSON into TiddlyWiki [2] 

I don't know if this helps.

I am interested in TW as a research tool. To me it seems like a natural development from a note taking application, organised note taking is research right?

At the moment there seems to be no way to get bibliographic data into TW in an automated way from Google Schoolar or in a way similar to Zotero or Mendeley etc.

My hunch is that we are "nearly there": TiddlyClip seems to be attracting some serious attention. Search this group and you will find an attempt at clipping complex data and converting it into tiddlers with multiple fields.

 

best wishes

Alex



--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CAMBuDxgzTX0aEbfwabxZT1B%2BJ3NVxuQQwA3RMvSVx1O2ni%2B4wA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Mat

unread,
Apr 7, 2016, 3:49:52 PM4/7/16
to TiddlyWiki
I can't answer your question, but it sounds interesting so I just want to make sure I understand; Are you asking to use the JSON file as a database and have TW (i.e TW5) load and display this data? And without intermediary conversions? And to have the data be presented as actual wikitext, i.e with links to other tiddlers etc?

And, btw, is the JSON file and the TW file to be stored on the same server?

<:-)

Jeremy Ruston

unread,
Apr 8, 2016, 7:32:28 AM4/8/16
to tiddl...@googlegroups.com
Hi Vikas

Is there a way to get Tiddlywiki to use a JSON file to show a list of
publications such as the one here
http://people.csail.mit.edu/karger/papers.html

I took a quick look. “View source” in the browser reveals the JSON data:

      <div id="data" style="display:none">
{
 "items":[
   {"id": "Mailing Lists: Why Are They Still Here, What's Wrong With Them, and How Can We Fix Them?",
   "label":"Mailing Lists: Why Are They Still Here, What's Wrong With Them, and How Can We Fix Them?",
   "type":"Publication",
   "uri":"http://service.simile-widgets.org/babel/urn:16afbc9d278191383c187a173be807a4",
   "modified":"no",
   "location":"Seoul, Republic of Korea",
   "numpages":"10",
   "author":["Zhang, Amy X.","Ackerman, Mark S.","Karger, David R."],
   "address":"New York, NY, USA",
   "url":"http://doi.acm.org/10.1145/2702123.2702194",
   "isbn":"978-1-4503-3145-6",
   "keywords":["discussion groups","email","mailing lists","online communities"],
   "series":"CHI '15",
   "pages":"4009--4018",
   "year":"2015",
   "acmid":"2702194",
   "booktitle":"Proceedings of the 33rd Annual ACM Conference on Human Factors in Computing Systems",
   "publisher":"ACM",
   "doi":"10.1145/2702123.2702194",
   "date":"2015",
   "key":"Karger:MailingLists",
   "pub-type":"inproceedings",
   "cat":["Ethnography","CHI"]
  },
  {"id":"Soylent: A Word Processor with a Crowd Inside",
   "label":"Soylent: A Word Processor with a Crowd Inside",
   "type":"Publication",
   "uri":"http://service.simile-widgets.org/babel/urn:7ed624644a475ec4d456bbc3ca133087",
   "modified":"no”,


It closely resemble the format required by TiddlyWiki for JSON files, so I was able to do some simple search and replace operations in a text editor to get a first pass up and running:

[
   {"pub-id": "Mailing Lists: Why Are They Still Here, What's Wrong With Them, and How Can We Fix Them?",
   "title":"Mailing Lists: Why Are They Still Here, What's Wrong With Them, and How Can We Fix Them?",
   "pub-type":"Publication",
   "pub-uri":"http://service.simile-widgets.org/babel/urn:16afbc9d278191383c187a173be807a4",
   "pub-modified":"no",
   "pub-location":"Seoul, Republic of Korea",
   "pub-numpages":"10",
   "pub-author":["Zhang, Amy X.","Ackerman, Mark S.","Karger, David R."],
   "pub-address":"New York, NY, USA",
   "pub-url":"http://doi.acm.org/10.1145/2702123.2702194",
   "pub-isbn":"978-1-4503-3145-6",
   "pub-keywords":["discussion groups","email","mailing lists","online communities"],
   "pub-series":"CHI '15",
   "pub-pages":"4009--4018",
   "pub-year":"2015",
   "pub-acmid":"2702194",
   "pub-booktitle":"Proceedings of the 33rd Annual ACM Conference on Human Factors in Computing Systems",
   "pub-publisher":"ACM",
   "pub-doi":"10.1145/2702123.2702194",
   "pub-date":"2015",
   "pub-key":"Karger:MailingLists",
   "pub-type":"inproceedings",
   "tags":["Ethnography","CHI"]
  },
  {"pub-id":"Soylent: A Word Processor with a Crowd Inside",
   "title":"Soylent: A Word Processor with a Crowd Inside",
   "pub-type":"Publication",
   "pub-uri":"http://service.simile-widgets.org/babel/urn:7ed624644a475ec4d456bbc3ca133087",
   "pub-modified":"no",


I’ve attached the resulting publications.json file. You can drag it into an empty TiddlyWiki in a browser window to see how the data is imported. It looks like there would be some manual tweaks required to fix issues like inline LaTeX fragments, but perhaps you can use it to get started.

Best wishes

Jeremy,

publications.json

csv...@gmail.com

unread,
Apr 8, 2016, 12:48:37 PM4/8/16
to TiddlyWiki


I’ve attached the resulting publications.json file. You can drag it into an empty TiddlyWiki in a browser window to see how the data is imported. It looks like there would be some manual tweaks required to fix issues like inline LaTeX fragments, but perhaps you can use it to get started.

Best wishes

Jeremy,


Thanks Alex, Mat and Jeremy.


Yes, this is approximately what I am looking for. Ideally, I'd like to have the ability to simply update the JSON file with more publications (without touching the TW file at all) --- and the Tiddlywiki dynamically picks up whatever content is in the JSON and display it. If that seems too difficult, I'll work with the drag-and-drop suggestion.

Background: I am updating my super super old Tiddlywiki based academic homepage from ~12 years back to the new TW version and am exploring whether I can avoid maintaining a standalone page for my publication. Having it all unified within TW will be fantastic.

My current JSON file generated via simile is at
http://pages.cs.wisc.edu/~vsingh/vikasdata.json
and the corresponding exhibit version is at
www.biostat.wisc.edu/~vsingh/researchexhibit.html

thanks!

--Vikas













 

csv...@gmail.com

unread,
Apr 8, 2016, 12:54:28 PM4/8/16
to TiddlyWiki

Yes, Mat. This is all part of my wish list...I'll put in some time to see how far I can get based on Jeremy's idea. I typically create my reference bib file by hand in emacs. I then use simile to convert all of the BIB data into a JSON file that is then picked up and displayed. I wanted to do this within TW5 to avoid maintaining a separate publications page as here:
 www.biostat.wisc.edu/~vsingh/researchexhibit.html

--Vikas


 

csv...@gmail.com

unread,
Apr 15, 2016, 3:24:57 PM4/15/16
to TiddlyWiki


I’ve attached the resulting publications.json file. You can drag it into an empty TiddlyWiki in a browser window to see how the data is imported. It looks like there would be some manual tweaks required to fix issues like inline LaTeX fragments, but perhaps you can use it to get started.

Best wishes

Jeremy,


Hi Jeremy,

I can now import the publications.json file you provided easily into an empty TW file. It seems to import all of the content into individuals tiddlers nicely. I can check the content/text by "editing" the tiddler but the information within the tiddler (publication info) is not displayed by default. Is there a simple CSS stylesheet that may be needed to associate to all these individual tiddlers so when each publication tiddler is clicked, all of its relevant information is displayed? That will make it very convenient.

Thanks and I apologize in advance if this question has been answered elsewhere.

--Vikas

Jeremy Ruston

unread,
Apr 17, 2016, 4:14:15 PM4/17/16
to tiddl...@googlegroups.com
Hi Vikas

I can now import the publications.json file you provided easily into an empty TW file. It seems to import all of the content into individuals tiddlers nicely. I can check the content/text by "editing" the tiddler but the information within the tiddler (publication info) is not displayed by default. Is there a simple CSS stylesheet that may be needed to associate to all these individual tiddlers so when each publication tiddler is clicked, all of its relevant information is displayed? That will make it very convenient.

One approach would be to create a new segment for the view template, and within it display the relevant fields.

1. Create a new tiddler and title it $:/_MyPublicationFields
2. Add the tag $:/tags/ViewTemplate
3. Copy the following to the text field of the new tiddler:

<$list filter="[all[current]fields[]prefix[pub]sort[title]]" variable="field">

: <$text text=<<field>>/>
; <$view tiddler=<<currentTiddler>> field=<<field>>/>

</$list>

4. Confirm the changes to the tiddler with the “tick” button

Now you should see your `pub-` fields listed at the bottom of each tiddler.

Best wishes

Jeremy.




Thanks and I apologize in advance if this question has been answered elsewhere.

--Vikas

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
Reply all
Reply to author
Forward
0 new messages