- From: Markus Lanthaler <markus.lanthaler@gmx.net>
- Date: Wed, 23 Apr 2014 17:46:24 +0200
- To: 'Josue Alexander Baquiax Batén' <alexander_ges@galileo.edu>
- Cc: <public-hydra@w3.org>
On Monday, April 21, 2014 8:00 PM, Josue Alexander Baquiax Batén wrote: > :) I have a last question. e.g the User property > ... > { > "property":{ > "@id":"vocab:User/maps", > "@type":"hydra:Link", > "domain":"vocab:User", > "range":"http://purl.org/hydra/core#Collection", Please replace this with Hydra's new namespace, i.e., http://www.w3.org/ns/hydra/core#Collection (we changed it a couple of months ago). > "label":"user_maps", > "description":"Maps of user", > "supportedOperation":[ > { > "@id":"_:retrieveMaps", > "@type": "mm:RetrieveMapsOperation", > "method":"GET", > "expects":null, > "returns":"http://purl.org/hydra/core#Collection", > "rangeIncludes": { > "subClassOf": "mm:RetrieveMapsOperation" > } > }, > ... > }, > "readonly":true, > "writeonly":false > }, > ... > The property in the example has the property "supportedOpperation", > but if I want use the form > > "@id":"vocab:User", > "supportedProperty": [ > { "property": "mm:maps" , "readonly": true, "writeonly":false} > ... > ] > //mm:maps is defined in the general vocabulary. It doesn't matter where it is defined as long as you use the same URLs and the URLs are dereferenceable. > It is posible extend mm:maps property and add the "supportedOperation" > property?. Yes, it is. If that opperation applies to everyone using that vocabulary (the mm vocabulary) then you can put it directly there. Otherwise, put it in the ApiDocumentation. Cheers, Markus -- Markus Lanthaler @markuslanthaler
Received on Wednesday, 23 April 2014 15:46:52 UTC