dokieli
dokieli copied to clipboard
Nanopublication UI
Create a UI to read/write nanopublications.
The out of the box UI for this is through the 'embed data' feature where the user can enter the data as application/trig. The new UI should be an improvement on this.
@tkuhn If you have some ideas for this that you'd like to share, happy to integrate.
YES! :)
I have to think a bit more about it, but I am very happy to help to integrate nanopubs into dokieli. In general, I see two approaches (both worth following, or anything in between):
- Allow for general nanopubs. This requires that the user knows about RDF notations and the concept of nanopublications. Users could then integrate arbitrary nanopubs via a technical interface.
- Allow for very specific nanopubs. For example, "GeneX has an effect on DiseaseY", where users could just select from a dropdown list or so values for GeneX and DiseaseY. Much more restricted and domain-specific than the above, but quite easy to come up with an interface that doesn't require any technical knowledge about RDF etc.
The first approach which you describe is already implemented :) Check it out at https://dokie.li/ : go to the ☰ menu, then under Data there is the Embed button. That opens up the menu in which you can enter Turtle/N-Triples, JSON-LD, and Nanopublications. Whatever is entered in those forms will be embedded inside respective script
s in head
in HTML. If you export the document or save it to a location in which you have access to, you can see your entry preserved. I suggest that this is kept around as base functionality, and build towards your second approach, which sounds good.
We'd have to provide the means for the user to enter the URLs of the domain-specific vocabularies if the idea is to bring an autocomplete feature in which they would type part of the text and select. There is a similar UI/UX for the RDFa marking in the works - I suppose they can share that.
Can we take this a little further? For example, there are three distinct parts for a Nanopublication, would it make sense to perhaps capture each in sub-forms?
Are there existing interfaces / implementations that you'd suggest that we can compare or learn from?
Nice! :)
You don't do any RDF validation, or do you? (Is there even an RDF library in Javascript?)
I couldn't figure out yet how to login in dokieli and how to save documents, so my playing around is still limited. (Maybe that would be helpful for others too: simple instructions for first-time users about which services to use for WebID, Solid, etc. or how to set them up easiest, but that's a different issue.)
Wrt form-based interfaces, there is unfortunately nothing at the moment for nanopublications. But desperately needed, I agree. I implemented the nanopub validator interface (http://nanopub.inn.ac/), which is a first step in this direction, but targeted towards technical users.
The publication information part of the nanopub could actually be filled in automatically with creator ID, timestamp, and saying that it was generated via dokieli. Also, the provenance part could automatically link to the article URI. In the simplest case, one would have to fill in only the assertion graph, so that could be just one text field (with Turtle instead of TriG, because it's just one graph).
Really exciting development! I'll give my best to find time to help you with that.
No RDF validation yet, but an JS RDF library is available.
Editing can be online or offline via http:
or file:
. New/Save/Save As to HTTP URL requires a server that's running LDP or (Solid platform)[https://github.com/solid/solid-platform] in which you have personal storage (e.g., databox, rww that you (and others with ACL) control using your WebID. If you want to test that quickly, create a WebID/personal storage at databox.me (takes 20 seconds!). In any case, you can always Export to HTML. We'll have further documentation on this. See also: https://github.com/linkeddata/dokieli/issues/43
Good point on auto-filling some of the statements! Right, what I was getting at with having individual forms was where the entry part need only be the SPOs or the Turtle for the respective Graph. I think a slight improvement on the current single form will be that.
http://nanopub.inn.ac/ looks good! I will review to see what dokieli can borrow.
databox.me works, nice!
What's the JS RDF library you are referring to? Would be very nice to have a nanopub library based on it...