@@ -182,6 +182,7 @@ export default function parseHydraDocumentation(entrypointUrl, options = {}) {
182182 required : get ( supportedProperties , '["http://www.w3.org/ns/hydra/core#required"][0]["@value"]' , false ) ,
183183 description : get ( supportedProperties , '["http://www.w3.org/ns/hydra/core#description"][0]["@value"]' , '' ) ,
184184 maxCardinality : get ( supportedProperty , '["http://www.w3.org/2002/07/owl#maxCardinality"][0]["@value"]' , null ) ,
185+ deprecated : get ( supportedProperties , '["http://www.w3.org/2002/07/owl#deprecated"][0]["@value"]' , false ) ,
185186 } ,
186187 ) ;
187188
@@ -212,6 +213,7 @@ export default function parseHydraDocumentation(entrypointUrl, options = {}) {
212213 expects : entrypointOperation [ 'http://www.w3.org/ns/hydra/core#expects' ] && entrypointOperation [ 'http://www.w3.org/ns/hydra/core#expects' ] [ 0 ] [ '@id' ] ,
213214 returns : range ,
214215 types : entrypointOperation [ '@type' ] ,
216+ deprecated : get ( entrypointOperation , '["http://www.w3.org/2002/07/owl#deprecated"][0]["@value"]' , false ) ,
215217 } ,
216218 ) ;
217219
@@ -234,6 +236,7 @@ export default function parseHydraDocumentation(entrypointUrl, options = {}) {
234236 expects : supportedOperation [ 'http://www.w3.org/ns/hydra/core#expects' ] && supportedOperation [ 'http://www.w3.org/ns/hydra/core#expects' ] [ 0 ] [ '@id' ] ,
235237 returns : range ,
236238 types : supportedOperation [ '@type' ] ,
239+ deprecated : get ( supportedOperation , '["http://www.w3.org/2002/07/owl#deprecated"][0]["@value"]' , false ) ,
237240 } ,
238241 ) ;
239242
@@ -255,7 +258,8 @@ export default function parseHydraDocumentation(entrypointUrl, options = {}) {
255258 fields : resourceFields ,
256259 readableFields,
257260 writableFields,
258- operations : resourceOperations
261+ operations : resourceOperations ,
262+ deprecated : get ( relatedClass , '["http://www.w3.org/2002/07/owl#deprecated"][0]["@value"]' , false ) ,
259263 }
260264 ) ) ;
261265 }
0 commit comments