@@ -47,59 +47,8 @@ export type HydraTerm = 'apiDocumentation' |
4747 'object' ;
4848
4949export namespace Core {
50- export const Context = {
51- hydra : 'http://www.w3.org/ns/hydra/core#' ,
52- apiDocumentation : 'hydra:apiDocumentation' ,
53- ApiDocumentation : 'hydra:ApiDocumentation' ,
54- title : 'hydra:title' ,
55- description : 'hydra:description' ,
56- entrypoint : { '@id' : 'hydra:entrypoint' , '@type' : '@id' } ,
57- supportedClass : { '@id' : 'hydra:supportedClass' , '@type' : '@vocab' } ,
58- Class : 'hydra:Class' ,
59- supportedProperty : { '@id' : 'hydra:supportedProperty' , '@type' : '@id' } ,
60- SupportedProperty : 'hydra:SupportedProperty' ,
61- property : { '@id' : 'hydra:property' , '@type' : '@vocab' } ,
62- required : 'hydra:required' ,
63- readonly : 'hydra:readonly' ,
64- writeonly : 'hydra:writeonly' ,
65- supportedOperation : { '@id' : 'hydra:supportedOperation' , '@type' : '@id' } ,
66- Operation : 'hydra:SupportedOperation' ,
67- CreateResourceOperation : 'hydra:CreateResourceOperation' ,
68- ReplaceResourceOperation : 'hydra:ReplaceResourceOperation' ,
69- DeleteResourceOperation : 'hydra:DeleteResourceOperation' ,
70- method : 'hydra:method' ,
71- expects : { '@id' : 'hydra:expects' , '@type' : '@vocab' } ,
72- returns : { '@id' : 'hydra:returns' , '@type' : '@vocab' } ,
73- statusCodes : { '@id' : 'hydra:statusCodes' , '@type' : '@id' } ,
74- StatusCodeDescription : 'hydra:StatusCodeDescription' ,
75- statusCode : 'hydra:statusCode' ,
76- Error : 'hydra:Error' ,
77- Resource : 'hydra:Resource' ,
78- operation : 'hydra:operation' ,
79- Collection : 'hydra:Collection' ,
80- member : { '@id' : 'hydra:member' , '@type' : '@id' } ,
81- search : 'hydra:search' ,
82- freetextQuery : 'hydra:freetextQuery' ,
83- PagedCollection : 'hydra:PagedCollection' ,
84- totalItems : 'hydra:totalItems' ,
85- itemsPerPage : 'hydra:itemsPerPage' ,
86- firstPage : { '@id' : 'hydra:firstPage' , '@type' : '@id' } ,
87- lastPage : { '@id' : 'hydra:lastPage' , '@type' : '@id' } ,
88- nextPage : { '@id' : 'hydra:nextPage' , '@type' : '@id' } ,
89- previousPage : { '@id' : 'hydra:previousPage' , '@type' : '@id' } ,
90- Link : 'hydra:Link' ,
91- TemplatedLink : 'hydra:TemplatedLink' ,
92- IriTemplate : 'hydra:IriTemplate' ,
93- template : 'hydra:template' ,
94- mapping : 'hydra:mapping' ,
95- IriTemplateMapping : 'hydra:IriTemplateMapping' ,
96- variable : 'hydra:variable' ,
97- collection : 'hydra:collection' ,
98- manages : 'hydra:manages' ,
99- } ;
100-
10150 export function Vocab ( term : HydraTerm ) {
102- return Core . Context . hydra + term ;
51+ return 'http://www.w3.org/ns/ hydra/core#' + term ;
10352 }
10453}
10554
0 commit comments