Need Feedback for Poddy


#1

Please give a try to Poddy, (@Vincent’s notepod hack)
https://scenaristeur.github.io/compagent/shexy-component

!!! Be carefull about what you write, if the option to publish to Agora’s POD is checked !!!


#2

I like the UI but get a message ‘you must log in to be able to post’ when trying to post a note to Agora, and the picture post button is unresponsive.


#3

And what happens when your logged ?

Do you use the “Notepod” widget on the right of this screenshot ?


#4

Yes, I am logged in. Using Firefox on Windows 10. Same thing happens in Opera on Win 10.


#5

Well, it seem that there some issue when retrieving the note list.
Can you open the js console, filter with “notepod” and give me what stand on lines 119 & 130
it must be something like

I’ve seen that sometimes publicTypeIndexUrl is in “settings” folder & sometimes in “profile”.
In your publicTypeIndex.ttl you must find one thing like that

:1575647425474045788534298799366
    a ter:TypeRegistration;
    ter:forClass schem:TextDigitalDocument;
    ter:instance </public/notes.ttl>.

the app search for a subject with class “TextDigitalDocument”
Here is mine

@prefix : <#>.
@prefix terms: <http://purl.org/dc/terms/>.
@prefix ter: <http://www.w3.org/ns/solid/terms#>.
@prefix schem: <http://schema.org/>.
@prefix pub: <https://agora.solid.community/public/>.
@prefix bookm: <http://www.w3.org/2002/01/bookmark#>.

<> terms:references :Bookmark.

:1575647425474045788534298799366
   a ter:TypeRegistration;
   ter:forClass schem:TextDigitalDocument;
   ter:instance </public/notes.ttl>.
:15756474254800282765469533941
a ter:TypeRegistration; ter:forClass schem:TextDigitalDocument.
:157574933900430607629673020764
   a ter:TypeRegistration;
   ter:forClass pub:Annonce;
   ter:instance </public/annonces.ttl>.
:15760784483165948539300982241
   a ter:TypeRegistration;
   ter:forClass schem:MediaObject;
   ter:instance </public/Picpost/pics.ttl>.
:Bookmark a ter:TypeRegistration; ter:forClass bookm:Bookmark.

Do you have somthing like that

:1575647425474045788534298799366
   a ter:TypeRegistration;
   ter:forClass schem:TextDigitalDocument;
   ter:instance </public/notes.ttl>.

???


#6

I can’t see anything like that and can’t see output for lines 119 and 130. Perhaps looking at the wrong place - on line 135 I get this.

Error: Expected entity but got literal on line 1.
at f._error (n3@1.3.4.min.js:15)
at f._readEntity (n3@1.3.4.min.js:15)
at f._readSubject (n3@1.3.4.min.js:15)
at f._readInTopContext (n3@1.3.4.min.js:15)
at n3@1.3.4.min.js:15
at r.default._tokenizeToEnd (n3@1.3.4.min.js:15)
at n3@1.3.4.min.js:15
at n3@1.3.4.min.js:15
at _.run (n3@1.3.4.min.js:15)
at p (n3@1.3.4.min.js:15)


#7

well what is the content of your publictypeindex.ttl
at
https://“yourpod”.solid.community/profile/publicTypeIndex.ttl
or
https://“yourpod”.solid.community/settings/publicTypeIndex.ttl

?


#8

Yes this is working now. Must be a formatting problem with that particular profile I was using. I tried another one and can now publish a note and a picture.


#9

Yes !!
I see, my UI has been updated / synched :


#10

next you can use ‘Storage’ widget and navigate to your ‘/public/Picpost/’ folder to see it:slightly_smiling_face:


#11

Yes got it. Nice work!


#12

Yes, very nice. I just posted two notes from my phone. No problems :slight_smile:


#13

Posts are arriving :


#14

Hi @Smag0,

my Notes from Notepod are shown, thats cool. Could also successfully publish a “Picpost”. :tada:

I find the UI confusing and I do not get yet what the purpose of Poddy is. Why is there a Spoggy graph that does not relate to my data? And what about that shape generator at the bottom? :thinking:

About the Picpost I wonder why you chose schema:MediaObject instead of a more specific schema:ImageObject? Or perhaps ActivityStreams would fit even better, since it is a kind Post? That would also make it compatible to the pixolid data I guess.


#15

I added my own type registration for schema:MediaObject but Poddy just added another one at /public/Picpost/pics.ttl anyway. That’s kinda rude :wink:

And the posted picture files get the ending $.unknown somehow :thinking:
Propably because you are sending it with content-type: undefined


#16

Hi @aveltens, thanxs for your really pertinent analyse :+1:

The purpose of Poddy was to test litelement + evejs to interact with the user’s POD and to make a reference to the user’s post on a feed POD.
I’va used lit-element Components but it must be possible to combine other components like ReactComponents, AngularComponents, VuejsComponent
Now the test are concluant, I trying to make a “Starter Pack” for that components

About Spoggy Graph, I think it’s a kind of good visualization of Pod’s data. For the moment it only can visualize the content of a ttl file. To see it, use the browser and click on a ttl file, The Editor & the graph should be updated

There is a little issue here for the moment as the editor is updated two times, one when you click on the file, and one when the graph is updated, so the real content of the file in editor, is not really the content of the file. I’m working on it ;-).

Another aim of Spoggy is to facilitate navigation synchronized with the browser as in the first version https://scenaristeur.github.io/spoggy-simple/?source=https://agora.solid.community/public/
wher you could expand or edit a file

The second purpose of Spoggy is to help to create turtle data : In the graph click on “Nouveau”, then you can add 2 nodes & one edge (next other nodes & edges) so the editor is updated with the corresponding data. If you give a path & a filename near the “save” button you should be able to write that mindmap on your POD.

I’m a really bad designer, so it’s a pity for me to put all those tools in the same page… So if someone as some skills in design…

The shexy shape form generator at the bottom is another test of integration of another tool that aim to simplify apps forms generated from ttl data. Generation of forms are almost ok , but we need to explore the concept of Footprint (where & how to store data)

why schema:MediaObject ? because you can picpost camcorder or sound file if you use it with your smartphone, but perhaps it would be cool to precise the good type, when the extension of file is known. I could add ActivityStream, it must not be incompatible.

yes /public/Picpost/pics.tt is the default for the moment and it only takes one but we must think aboyut what happens when there are more than one registration.

I’ll take a look at the content-type :wink:

Thanks, i’ll consider you suggestions for the new version


#17

Ah sorry, I misconfigured my type index, it works as expected now.

And thanks @Smag0 for the detailed explanation. Interesting experiment :slight_smile:


#18

In the new version, https://scenaristeur.github.io/compagent-tuto/
User post can have at least three parts :

or/and

  • a image/video/sound as schema:MediaObject

and /or

  • a set of Triple… as a indépendant Doc but linked to the post.

(? What vocabulary for that ? schema.TextDigitalDocument? So that there would be two different instance in publicTypeIndex? )

  • I project to add Spoggy graph too in a post…

All that type of data compose a post and are linked.

There is a title too and a set of tags.

So how do you think I must organise those on a Pod ? Split? Links? Reference on Agora’s Pod
In the publicTypeindex


#19

I don’t know but maybe you could just have one schema:CreativeWork, which has a predicate hasPart, which can then point to other CreativeWorks. CreativeWork is a ancestor class of schema:TextDigitalDocument and schema:MediaObject.


#20

Ok for the types & parts, but what about the folders? One for notes, one for medias, and one for triples, or all in the same? What about the notes.ttl that refers those fragments of the same post? Must I put one ‘reference’ file by type of file ? Or all in the note.ttl?