Class: RDF::Vocab::HYDRA

Inherits:
StrictVocabulary
  • Object
show all
Defined in:
lib/rdf/vocab/hydra.rb

Overview

Vocabulary for <www.w3.org/ns/hydra/core#>

The Hydra Core Vocabulary

A lightweight vocabulary for hypermedia-driven Web APIs

The Hydra Core Vocabulary is a lightweight vocabulary to create hypermedia-driven Web APIs. By specifying a number of concepts commonly used in Web APIs it enables the creation of generic API clients.

Instance Attribute Summary collapse

Instance Attribute Details

#ApiDocumentationRDF::Vocabulary::Term (readonly)

The Hydra API documentation class

Returns:

  • (RDF::Vocabulary::Term)


11
12
13
# File 'lib/rdf/vocab/hydra.rb', line 11

def ApiDocumentation
  @ApiDocumentation
end

#apiDocumentationRDF::Vocabulary::Term (readonly)

A link to the API documentation

Returns:

  • (RDF::Vocabulary::Term)


159
160
161
# File 'lib/rdf/vocab/hydra.rb', line 159

def apiDocumentation
  @apiDocumentation
end

#BasicRepresentationRDF::Vocabulary::Term (readonly)

A representation that serializes just the lexical form of a variable value, but omits language and type information.

Returns:

  • (RDF::Vocabulary::Term)


151
152
153
# File 'lib/rdf/vocab/hydra.rb', line 151

def BasicRepresentation
  @BasicRepresentation
end

#ClassRDF::Vocabulary::Term (readonly)

The class of Hydra classes. Hydra classes and their instances are dereferenceable resources.

Returns:

  • (RDF::Vocabulary::Term)


15
16
17
# File 'lib/rdf/vocab/hydra.rb', line 15

def Class
  @Class
end

#collectionRDF::Vocabulary::Term (readonly)

Collections somehow related to this resource.

Returns:

  • (RDF::Vocabulary::Term)


163
164
165
# File 'lib/rdf/vocab/hydra.rb', line 163

def collection
  @collection
end

#CollectionRDF::Vocabulary::Term (readonly)

A collection holding references to a number of related resources.

Returns:

  • (RDF::Vocabulary::Term)


19
20
21
# File 'lib/rdf/vocab/hydra.rb', line 19

def Collection
  @Collection
end

#descriptionRDF::Vocabulary::Term (readonly)

A description.

Returns:

  • (RDF::Vocabulary::Term)


67
68
69
# File 'lib/rdf/vocab/hydra.rb', line 67

def description
  @description
end

#entrypointRDF::Vocabulary::Term (readonly)

A link to main entry point of the Web API

Returns:

  • (RDF::Vocabulary::Term)


167
168
169
# File 'lib/rdf/vocab/hydra.rb', line 167

def entrypoint
  @entrypoint
end

#ErrorRDF::Vocabulary::Term (readonly)

A runtime error, used to report information beyond the returned status code.

Returns:

  • (RDF::Vocabulary::Term)


23
24
25
# File 'lib/rdf/vocab/hydra.rb', line 23

def Error
  @Error
end

#expectsRDF::Vocabulary::Term (readonly)

The information expected by the Web API.

Returns:

  • (RDF::Vocabulary::Term)


171
172
173
# File 'lib/rdf/vocab/hydra.rb', line 171

def expects
  @expects
end

#expectsHeaderRDF::Vocabulary::Term (readonly)

Specification of the header expected by the operation.

Returns:

  • (RDF::Vocabulary::Term)


71
72
73
# File 'lib/rdf/vocab/hydra.rb', line 71

def expectsHeader
  @expectsHeader
end

#ExplicitRepresentationRDF::Vocabulary::Term (readonly)

A representation that serializes a variable value including its language and type information and thus differentiating between IRIs and literals.

Returns:

  • (RDF::Vocabulary::Term)


155
156
157
# File 'lib/rdf/vocab/hydra.rb', line 155

def ExplicitRepresentation
  @ExplicitRepresentation
end

#firstRDF::Vocabulary::Term (readonly)

The first resource of an interlinked set of resources.

Returns:

  • (RDF::Vocabulary::Term)


175
176
177
# File 'lib/rdf/vocab/hydra.rb', line 175

def first
  @first
end

#freetextQueryRDF::Vocabulary::Term (readonly)

A property representing a freetext query.

Returns:

  • (RDF::Vocabulary::Term)


75
76
77
# File 'lib/rdf/vocab/hydra.rb', line 75

def freetextQuery
  @freetextQuery
end

#IriTemplateRDF::Vocabulary::Term (readonly)

The class of IRI templates.

Returns:

  • (RDF::Vocabulary::Term)


27
28
29
# File 'lib/rdf/vocab/hydra.rb', line 27

def IriTemplate
  @IriTemplate
end

#IriTemplateMappingRDF::Vocabulary::Term (readonly)

A mapping from an IRI template variable to a property.

Returns:

  • (RDF::Vocabulary::Term)


31
32
33
# File 'lib/rdf/vocab/hydra.rb', line 31

def IriTemplateMapping
  @IriTemplateMapping
end

#lastRDF::Vocabulary::Term (readonly)

The last resource of an interlinked set of resources.

Returns:

  • (RDF::Vocabulary::Term)


179
180
181
# File 'lib/rdf/vocab/hydra.rb', line 179

def last
  @last
end

#limitRDF::Vocabulary::Term (readonly)

Instructs to limit set only to N elements.

Returns:

  • (RDF::Vocabulary::Term)


79
80
81
# File 'lib/rdf/vocab/hydra.rb', line 79

def limit
  @limit
end

The class of properties representing links.

Returns:

  • (RDF::Vocabulary::Term)


35
36
37
# File 'lib/rdf/vocab/hydra.rb', line 35

def Link
  @Link
end

#managesRDF::Vocabulary::Term (readonly)

Semantics of each member provided by the collection.

Returns:

  • (RDF::Vocabulary::Term)


183
184
185
# File 'lib/rdf/vocab/hydra.rb', line 183

def manages
  @manages
end

#mappingRDF::Vocabulary::Term (readonly)

A variable-to-property mapping of the IRI template.

Returns:

  • (RDF::Vocabulary::Term)


83
84
85
# File 'lib/rdf/vocab/hydra.rb', line 83

def mapping
  @mapping
end

#memberRDF::Vocabulary::Term (readonly)

A member of the collection

Returns:

  • (RDF::Vocabulary::Term)


187
188
189
# File 'lib/rdf/vocab/hydra.rb', line 187

def member
  @member
end

#methodRDF::Vocabulary::Term (readonly)

The HTTP method.

Returns:

  • (RDF::Vocabulary::Term)


87
88
89
# File 'lib/rdf/vocab/hydra.rb', line 87

def method
  @method
end

#nextRDF::Vocabulary::Term (readonly)

The resource following the current instance in an interlinked set of resources.

Returns:

  • (RDF::Vocabulary::Term)


191
192
193
# File 'lib/rdf/vocab/hydra.rb', line 191

def next
  @next
end

#objectRDF::Vocabulary::Term (readonly)

The object.

Returns:

  • (RDF::Vocabulary::Term)


195
196
197
# File 'lib/rdf/vocab/hydra.rb', line 195

def object
  @object
end

#offsetRDF::Vocabulary::Term (readonly)

Instructs to skip N elements of the set.

Returns:

  • (RDF::Vocabulary::Term)


91
92
93
# File 'lib/rdf/vocab/hydra.rb', line 91

def offset
  @offset
end

#OperationRDF::Vocabulary::Term (readonly)

An operation.

Returns:

  • (RDF::Vocabulary::Term)


39
40
41
# File 'lib/rdf/vocab/hydra.rb', line 39

def Operation
  @Operation
end

#operationRDF::Vocabulary::Term (readonly)

An operation supported by the Hydra resource

Returns:

  • (RDF::Vocabulary::Term)


199
200
201
# File 'lib/rdf/vocab/hydra.rb', line 199

def operation
  @operation
end

#pageIndexRDF::Vocabulary::Term (readonly)

Instructs to provide a specific page of the collection at a given index.

Returns:

  • (RDF::Vocabulary::Term)


95
96
97
# File 'lib/rdf/vocab/hydra.rb', line 95

def pageIndex
  @pageIndex
end

#pageReferenceRDF::Vocabulary::Term (readonly)

Instructs to provide a specific page reference of the collection.

Returns:

  • (RDF::Vocabulary::Term)


99
100
101
# File 'lib/rdf/vocab/hydra.rb', line 99

def pageReference
  @pageReference
end

#PartialCollectionViewRDF::Vocabulary::Term (readonly)

A PartialCollectionView describes a partial view of a Collection. Multiple PartialCollectionViews can be connected with the the next/previous properties to allow a client to retrieve all members of the collection.

Returns:

  • (RDF::Vocabulary::Term)


43
44
45
# File 'lib/rdf/vocab/hydra.rb', line 43

def PartialCollectionView
  @PartialCollectionView
end

#possibleStatusRDF::Vocabulary::Term (readonly)

A status that might be returned by the Web API (other statuses should be expected and properly handled as well)

Returns:

  • (RDF::Vocabulary::Term)


203
204
205
# File 'lib/rdf/vocab/hydra.rb', line 203

def possibleStatus
  @possibleStatus
end

#previousRDF::Vocabulary::Term (readonly)

The resource preceding the current instance in an interlinked set of resources.

Returns:

  • (RDF::Vocabulary::Term)


207
208
209
# File 'lib/rdf/vocab/hydra.rb', line 207

def previous
  @previous
end

#propertyRDF::Vocabulary::Term (readonly)

A property

Returns:

  • (RDF::Vocabulary::Term)


103
104
105
# File 'lib/rdf/vocab/hydra.rb', line 103

def property
  @property
end

#readableRDF::Vocabulary::Term (readonly)

True if the client can retrieve the property’s value, false otherwise.

Returns:

  • (RDF::Vocabulary::Term)


107
108
109
# File 'lib/rdf/vocab/hydra.rb', line 107

def readable
  @readable
end

#requiredRDF::Vocabulary::Term (readonly)

True if the property is required, false otherwise.

Returns:

  • (RDF::Vocabulary::Term)


111
112
113
# File 'lib/rdf/vocab/hydra.rb', line 111

def required
  @required
end

#ResourceRDF::Vocabulary::Term (readonly)

The class of dereferenceable resources.

Returns:

  • (RDF::Vocabulary::Term)


47
48
49
# File 'lib/rdf/vocab/hydra.rb', line 47

def Resource
  @Resource
end

#returnsRDF::Vocabulary::Term (readonly)

The information returned by the Web API on success

Returns:

  • (RDF::Vocabulary::Term)


211
212
213
# File 'lib/rdf/vocab/hydra.rb', line 211

def returns
  @returns
end

#returnsHeaderRDF::Vocabulary::Term (readonly)

Name of the header returned by the operation.

Returns:

  • (RDF::Vocabulary::Term)


115
116
117
# File 'lib/rdf/vocab/hydra.rb', line 115

def returnsHeader
  @returnsHeader
end

#Rfc6570TemplateRDF::Vocabulary::Term (readonly)

An IRI template as defined by RFC6570.

Returns:

  • (RDF::Vocabulary::Term)


147
148
149
# File 'lib/rdf/vocab/hydra.rb', line 147

def Rfc6570Template
  @Rfc6570Template
end

#searchRDF::Vocabulary::Term (readonly)

A IRI template that can be used to query a collection.

Returns:

  • (RDF::Vocabulary::Term)


215
216
217
# File 'lib/rdf/vocab/hydra.rb', line 215

def search
  @search
end

#StatusRDF::Vocabulary::Term (readonly)

Additional information about a status code that might be returned.

Returns:

  • (RDF::Vocabulary::Term)


51
52
53
# File 'lib/rdf/vocab/hydra.rb', line 51

def Status
  @Status
end

#statusCodeRDF::Vocabulary::Term (readonly)

The HTTP status code

Returns:

  • (RDF::Vocabulary::Term)


119
120
121
# File 'lib/rdf/vocab/hydra.rb', line 119

def statusCode
  @statusCode
end

#subjectRDF::Vocabulary::Term (readonly)

The subject.

Returns:

  • (RDF::Vocabulary::Term)


219
220
221
# File 'lib/rdf/vocab/hydra.rb', line 219

def subject
  @subject
end

#supportedClassRDF::Vocabulary::Term (readonly)

A class known to be supported by the Web API

Returns:

  • (RDF::Vocabulary::Term)


223
224
225
# File 'lib/rdf/vocab/hydra.rb', line 223

def supportedClass
  @supportedClass
end

#supportedOperationRDF::Vocabulary::Term (readonly)

An operation supported by instances of the specific Hydra class or the target of the Hydra link

Returns:

  • (RDF::Vocabulary::Term)


227
228
229
# File 'lib/rdf/vocab/hydra.rb', line 227

def supportedOperation
  @supportedOperation
end

#SupportedPropertyRDF::Vocabulary::Term (readonly)

A property known to be supported by a Hydra class.

Returns:

  • (RDF::Vocabulary::Term)


55
56
57
# File 'lib/rdf/vocab/hydra.rb', line 55

def SupportedProperty
  @SupportedProperty
end

#supportedPropertyRDF::Vocabulary::Term (readonly)

The properties known to be supported by a Hydra class

Returns:

  • (RDF::Vocabulary::Term)


231
232
233
# File 'lib/rdf/vocab/hydra.rb', line 231

def supportedProperty
  @supportedProperty
end

#templateRDF::Vocabulary::Term (readonly)

A templated string with placeholders. The literal’s datatype indicates the template syntax; if not specified, hydra:Rfc6570Template is assumed.

Returns:

  • (RDF::Vocabulary::Term)


123
124
125
# File 'lib/rdf/vocab/hydra.rb', line 123

def template
  @template
end

A templated link.

Returns:

  • (RDF::Vocabulary::Term)


59
60
61
# File 'lib/rdf/vocab/hydra.rb', line 59

def TemplatedLink
  @TemplatedLink
end

#titleRDF::Vocabulary::Term (readonly)

A title, often used along with a description.

Returns:

  • (RDF::Vocabulary::Term)


127
128
129
# File 'lib/rdf/vocab/hydra.rb', line 127

def title
  @title
end

#totalItemsRDF::Vocabulary::Term (readonly)

The total number of items referenced by a collection.

Returns:

  • (RDF::Vocabulary::Term)


131
132
133
# File 'lib/rdf/vocab/hydra.rb', line 131

def totalItems
  @totalItems
end

#variableRDF::Vocabulary::Term (readonly)

An IRI template variable

Returns:

  • (RDF::Vocabulary::Term)


135
136
137
# File 'lib/rdf/vocab/hydra.rb', line 135

def variable
  @variable
end

#variableRepresentationRDF::Vocabulary::Term (readonly)

The representation format to use when expanding the IRI template.

Returns:

  • (RDF::Vocabulary::Term)


139
140
141
# File 'lib/rdf/vocab/hydra.rb', line 139

def variableRepresentation
  @variableRepresentation
end

#VariableRepresentationRDF::Vocabulary::Term (readonly)

A representation specifies how to serialize variable values into strings.

Returns:

  • (RDF::Vocabulary::Term)


63
64
65
# File 'lib/rdf/vocab/hydra.rb', line 63

def VariableRepresentation
  @VariableRepresentation
end

#viewRDF::Vocabulary::Term (readonly)

A specific view of a resource.

Returns:

  • (RDF::Vocabulary::Term)


235
236
237
# File 'lib/rdf/vocab/hydra.rb', line 235

def view
  @view
end

#writeableRDF::Vocabulary::Term (readonly)

True if the client can change the property’s value, false otherwise.

Returns:

  • (RDF::Vocabulary::Term)


143
144
145
# File 'lib/rdf/vocab/hydra.rb', line 143

def writeable
  @writeable
end