- From: Kristoffer Lie Braathen <lie.braathen@gmail.com>
- Date: Fri, 6 Feb 2015 14:32:08 +0100
- To: public-hydra@w3.org
Hi This is my first ever post here, so I hope this is not to much of a noob question. I am writing my master thesis and have Ruben and Kjetil as supervisors. After the advice of Ruben I decided to post my question here. So... Do you have any experience with the Hydra Console? I am playing around with it and my Hydra documented API - but it seems like it won’t accept my vocabulary. By this I mean that the console will only load (on the right side of the screen) what is defined in the Hydra spec. So, here’s an example: I have a collection of bands. The term collection is specified in Hydra and therefor it is shown on the right side of the screen. The collection of bands have members of the type vocab:Band, but since Band is not specified in the Hydra spec, of course, it won’t be shown as a class on the right side of the console. For me it seems like everything that is not specified in the Hydra spec won’t be accepted by the console. You can se my vocab at http://folk.uio.no/kristolb/vocab. This is one of several attempts. All of them looks quite the same, but I have tried to experiment with letting vocab:Band be of the type mo:MusicArtist that got the URI http://purl.org/ontology/mo/MusicArtist As you can see, I am now operating with the type hydra:Class, after testing to do it in a similar way as Markus Lanthaler in his api-demo. Below is the response you get if you follow /api/bands. I have tunneled my localhost to ngrok, so it can be accessed by the console. Do you see any huge mistakes? Is the console the ultimate test for checking that you have a fully working Hydra doc, or should I just carry on with my work convincing my self that things are right? Please let me know if anything are unclear and all response is much appreciated. Best regards Kristoffer { "@context": { "@base": "http://festival.ngrok.com", "hydra": "http://www.w3.org/ns/hydra/core#", "vocab": "http://folk.uio.no/kristolb/vocab3#", "Collection": "http://www.w3.org/ns/hydra/core#Collection", "members": "http://www.w3.org/ns/hydra/core#member" }, "@id": "http://festival.ngrok.com/api/bands/", "@type": "Collection", "members": [ { "@id": "/api/bands/led", "@type": "vocab:Band" }, { "@id": "/api/bands/pink", "@type": "vocab:Band" }, { "@id": "/api/bands/jimi", "@type": "vocab:Band" }, { "@id": "/api/bands/bach", "@type": "vocab:Band" }, { "@id": "/api/bands/strauss", "@type": "vocab:Band" }, { "@id": "/api/bands/beethoven", "@type": "vocab:Band" } ] }
Received on Monday, 9 February 2015 11:01:32 UTC