lib/openactive/models/concept.rb in openactive-0.1.2 vs lib/openactive/models/concept.rb in openactive-0.2.0
- old
+ new
@@ -1,8 +1,8 @@
module OpenActive
module Models
- # This type is derived from [Concept](http://www.w3.org/2004/02/skos/core#Concept), which means that any of this type's properties within schema.org may also be used. Note however the properties on this page must be used in preference if a relevant property is available.
+ # This type is derived from http://www.w3.org/2004/02/skos/core#Concept.
class Concept < ::OpenActive::JsonLdModel
# @!attribute type
# @return [String]
def type
"Concept"
@@ -16,10 +16,20 @@
# @return [Array<URI>]
define_property :broader, as: "broader", types: [
"URI[]",
]
+ # @return [String]
+ define_property :definition, as: "definition", types: [
+ "string",
+ ]
+
+ # @return [Array<String>]
+ define_property :hidden_label, as: "hiddenLabel", types: [
+ "string[]",
+ ]
+
# @return [URI]
define_property :in_scheme, as: "inScheme", types: [
"URI",
]
@@ -34,9 +44,19 @@
]
# @return [String]
define_property :pref_label, as: "prefLabel", types: [
"string",
+ ]
+
+ # @return [Array<URI>]
+ define_property :related, as: "related", types: [
+ "URI[]",
+ ]
+
+ # @return [URI]
+ define_property :top_concept_of, as: "topConceptOf", types: [
+ "URI",
]
end
end
end