W3C home > Mailing lists > Public > public-hydra@w3.org > July 2014

Questions

From: Bieg Mauro <mauro.bieg@inf.ethz.ch>
Date: Fri, 4 Jul 2014 11:59:21 +0000
To: "public-hydra@w3.org" <public-hydra@w3.org>
Message-ID: <999CFEF3-FC47-4DB3-B10A-3D121195AEC9@ethz.ch>
Hello!

Thanks to Markus for answering my first question on GitHub even though that seems not to be the place to ask questions. So here I am: on the mailing list (without markdown-support...) with three more:

1. Is the intended usage of Hydra that I might have a `vocab:User` be both a `hydra:Class` and a `schema:Person` ? Or would you recommend setting up a mapping from the user herself to her representation as a `hydra:Class`? (example from http://www.markus-lanthaler.com/hydra/api-demo/contexts/vocab#User)

2. `http://www.markus-lanthaler.com/hydra/api-demo/contexts/Collection.jsonld` defines `members` as `http://www.w3.org/ns/hydra/core#members` but it should be `http://www.w3.org/ns/hydra/core#members`, i.e. "member" and not "members", or am I missing something?

3. I wrote up this small [JSON-LD tutorial](http://mb21.github.io/blog/tech/2014/07/03/JSON-LD-intro.html) to spell some things out for me, might help other people as well... Corrections? For example, there is really no way to specify the `rdf:type` of a property (like "issues") in one single context, right? If I want to have it all in one file, I'll have to do something like:

    [ {
        "@context": {
            "hydra": "http://www.w3.org/ns/hydra/core#",
            "vocab": "http://www.markus-lanthaler.com/hydra/api-demo/vocab#",
            "issues": "vocab:EntryPoint/issues"
        },
        "@id": "http://www.markus-lanthaler.com/hydra/api-demo/",
        "@type": "vocab:EntryPoint",
        "issues": {
            "@id": "http://www.markus-lanthaler.com/hydra/api-demo/issues/",
            "@type": "hydra:Collection"
        }
    },
    {
        "@context": {
            "hydra": "http://www.w3.org/ns/hydra/core#",
            "vocab": "http://www.markus-lanthaler.com/hydra/api-demo/vocab#"
        },
        "@id": "vocab:EntryPoint/issues",
        "@type": "hydra:Link",
        "description": "The collection of all issues"
    } ]

Thanks a lot for taking a look!
Received on Sunday, 6 July 2014 18:54:37 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:29:42 UTC