- From: Josue Alexander Baquiax Batén <alexander_ges@galileo.edu>
- Date: Mon, 31 Mar 2014 14:11:02 -0600
- To: public-hydra@w3.org
- Message-ID: <CALqFp4fopOL-H7YTsQAtNhwM=Ado6=8gMiwQpqqO6McrOPDP=w@mail.gmail.com>
I'm working with Hydra Core and I have a question. In RDF:subClassOf the class A that inherit from B, inherit all properties of B. It work of the same way with hydra:subClass? I trying do some same as: { ... { "@id":"mm:User", "@type":"hydra:Class", "comment":"User representation", "label":"user", "status":"testing" }, { "@id":"mm:userId", "@type":"rdf:Property", "label":"user-id", "comment":"User identifier", "domain":{ "@id":"mmUser" }, "range":{ "@id":"xsd:integer" } }, { "@id":"mm:userEmail", "@type":"rdf:Property", "label":"user-email", "comment":"User email", "domain":{ "@id":"mm:User" }, "range":{ "@id":"xsd:string" } }, ... } .... { "@id":"vocab:User", "@type":"hydra:Class", "rdfs:subClassOf":{ "@id":"mm:User" }, "label":"User", "description":"A Mindmeister user.", "supportedOperations":[ { "@id":"_:retrievesUser", "method":"GET", "label":"Retrieve a User entity", "description":"", "expects":null, "returns":"vocab:User", "statusCodes":[ { "code":404, "description":"The user not exists." } ] } ], ... Is posible do it? Basically I need define a class with its properties, and make a subclass of this, that inherit its (first Class mentioned) properties; so that in this example "supportedProperties" will be emtpy. I'm not expert in this topic. therefore I need your comments. Best Regards -- *Josué Alexander Baquiax Batén.* Área de Desarrollo. Departamento de Investigación y Desarrollo GES (Galileo Educational System) *Universidad Galileo* Torre Galileo, oficina 413 Tel. (502) 2423-8000 ext. 2412 Guatemala.
Received on Tuesday, 1 April 2014 07:18:33 UTC