dfc-linkml-connector 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +78 -0
- data/contexts/context_2.0.0.json +544 -0
- data/lib/core/connector.rb +670 -0
- data/lib/core/json_ld_serializer.rb +92 -0
- data/lib/core/semantic_object.rb +103 -0
- data/lib/core/vocabulary_loader.rb +125 -0
- data/lib/dfc_linkml_connector.rb +102 -0
- data/lib/models/address.rb +68 -0
- data/lib/models/agent.rb +83 -0
- data/lib/models/allergen_characteristic.rb +57 -0
- data/lib/models/as_planned_consumption_flow.rb +25 -0
- data/lib/models/as_planned_local_consumption_flow.rb +25 -0
- data/lib/models/as_planned_local_production_flow.rb +25 -0
- data/lib/models/as_planned_local_transformation.rb +53 -0
- data/lib/models/as_planned_production_flow.rb +25 -0
- data/lib/models/as_planned_transformation.rb +38 -0
- data/lib/models/as_realized_consumption_flow.rb +25 -0
- data/lib/models/as_realized_production_flow.rb +25 -0
- data/lib/models/as_realized_transformation.rb +48 -0
- data/lib/models/brand.rb +33 -0
- data/lib/models/catalog.rb +43 -0
- data/lib/models/catalog_item.rb +93 -0
- data/lib/models/certfication.rb +43 -0
- data/lib/models/collection.rb +47 -0
- data/lib/models/concept.rb +82 -0
- data/lib/models/concept_scheme.rb +47 -0
- data/lib/models/consumption_flow.rb +67 -0
- data/lib/models/coordination.rb +62 -0
- data/lib/models/customer_category.rb +38 -0
- data/lib/models/defined_product.rb +178 -0
- data/lib/models/delivery_option.rb +48 -0
- data/lib/models/delivery_step.rb +25 -0
- data/lib/models/ditributed_representation.rb +47 -0
- data/lib/models/enterprise.rb +29 -0
- data/lib/models/feature.rb +57 -0
- data/lib/models/functional_product.rb +33 -0
- data/lib/models/geometry.rb +52 -0
- data/lib/models/how_subject.rb +47 -0
- data/lib/models/individual.rb +47 -0
- data/lib/models/ingredient.rb +38 -0
- data/lib/models/labelling_characteristic.rb +57 -0
- data/lib/models/length.rb +25 -0
- data/lib/models/localized_product.rb +68 -0
- data/lib/models/nutrient_characteristic.rb +57 -0
- data/lib/models/offer.rb +82 -0
- data/lib/models/opening_hours_specification.rb +62 -0
- data/lib/models/order.rb +115 -0
- data/lib/models/order_line.rb +86 -0
- data/lib/models/organization.rb +92 -0
- data/lib/models/payment_method.rb +43 -0
- data/lib/models/person.rb +38 -0
- data/lib/models/phone_number.rb +38 -0
- data/lib/models/physical_characteristic.rb +57 -0
- data/lib/models/physical_place.rb +58 -0
- data/lib/models/physical_product.rb +78 -0
- data/lib/models/pick_up_step.rb +25 -0
- data/lib/models/pickup_option.rb +33 -0
- data/lib/models/place.rb +28 -0
- data/lib/models/platform.rb +25 -0
- data/lib/models/point.rb +25 -0
- data/lib/models/polygon.rb +25 -0
- data/lib/models/price.rb +37 -0
- data/lib/models/product_batch.rb +53 -0
- data/lib/models/product_option.rb +28 -0
- data/lib/models/product_option_value.rb +25 -0
- data/lib/models/production_flow.rb +67 -0
- data/lib/models/properties.rb +47 -0
- data/lib/models/quantitative_value.rb +33 -0
- data/lib/models/real_stock.rb +38 -0
- data/lib/models/representation_pivot.rb +25 -0
- data/lib/models/represented_thing.rb +25 -0
- data/lib/models/route.rb +38 -0
- data/lib/models/sale_session.rb +92 -0
- data/lib/models/shipment.rb +77 -0
- data/lib/models/shipping_option.rb +58 -0
- data/lib/models/social_media.rb +33 -0
- data/lib/models/step.rb +48 -0
- data/lib/models/stock.rb +67 -0
- data/lib/models/supplied_product.rb +73 -0
- data/lib/models/technical_product.rb +38 -0
- data/lib/models/temperature.rb +28 -0
- data/lib/models/template_sale_session.rb +57 -0
- data/lib/models/theoritical_stock.rb +33 -0
- data/lib/models/transaction.rb +62 -0
- data/lib/models/transformation.rb +25 -0
- data/lib/models/value_r_e_c_u_r.rb +67 -0
- data/lib/models/variant.rb +33 -0
- data/lib/models/variant_caracteristic.rb +33 -0
- data/lib/models/vehicle.rb +58 -0
- data/lib/models/vevent.rb +62 -0
- data/lib/models/virtual_place.rb +33 -0
- data/lib/models/volume.rb +25 -0
- data/lib/models/weight.rb +25 -0
- data/lib/models/what_subject.rb +47 -0
- data/lib/models/where_subject.rb +47 -0
- data/lib/models/who_subject.rb +47 -0
- data/vocabularies/facet.jsonld +4130 -0
- data/vocabularies/measure.jsonld +2586 -0
- data/vocabularies/product_type.jsonld +10116 -0
- data/vocabularies/scope.jsonld +190 -0
- data/vocabularies/vocabulary_term.jsonld +502 -0
- metadata +199 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Class from DFC Business Ontology: #ConsumptionFlow
|
|
4
|
+
require_relative '../core/semantic_object'
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module DfcLinkmlConnector
|
|
8
|
+
module Models
|
|
9
|
+
class ConsumptionFlow < Core::SemanticObject
|
|
10
|
+
SEMANTIC_TYPE = "dfc-b:ConsumptionFlow".freeze
|
|
11
|
+
|
|
12
|
+
# @return [Float]
|
|
13
|
+
attr_accessor :quantity
|
|
14
|
+
|
|
15
|
+
# @return [String]
|
|
16
|
+
attr_accessor :consumes
|
|
17
|
+
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_accessor :input_of
|
|
20
|
+
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :date
|
|
23
|
+
|
|
24
|
+
# @return [String]
|
|
25
|
+
attr_accessor :description
|
|
26
|
+
|
|
27
|
+
# @return [String]
|
|
28
|
+
attr_accessor :name
|
|
29
|
+
|
|
30
|
+
# @return [String]
|
|
31
|
+
attr_accessor :characteristic_of
|
|
32
|
+
|
|
33
|
+
# @return [String]
|
|
34
|
+
attr_accessor :dimension
|
|
35
|
+
|
|
36
|
+
# @return [QuantitativeValue, String]
|
|
37
|
+
attr_accessor :has_quantity
|
|
38
|
+
|
|
39
|
+
# @param semanticId [String]
|
|
40
|
+
# @param quantity: nil, consumes: nil, inputOf: nil, date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, hasQuantity: nil
|
|
41
|
+
def initialize(semanticId, quantity: nil, consumes: nil, inputOf: nil, date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, hasQuantity: nil)
|
|
42
|
+
super(semanticId)
|
|
43
|
+
@quantity = quantity
|
|
44
|
+
@consumes = consumes
|
|
45
|
+
@input_of = inputOf
|
|
46
|
+
@date = date
|
|
47
|
+
@description = description
|
|
48
|
+
@name = name
|
|
49
|
+
@characteristic_of = characteristicOf
|
|
50
|
+
@dimension = dimension
|
|
51
|
+
@has_quantity = hasQuantity
|
|
52
|
+
self.semanticType = "dfc-b:ConsumptionFlow"
|
|
53
|
+
registerSemanticProperty("dfc-b:quantity", &method("quantity")).valueSetter = method("quantity=")
|
|
54
|
+
registerSemanticProperty("dfc-b:consumes", &method("consumes")).valueSetter = method("consumes=")
|
|
55
|
+
registerSemanticProperty("dfc-b:inputOf", &method("input_of")).valueSetter = method("input_of=")
|
|
56
|
+
registerSemanticProperty("dfc-b:date", &method("date")).valueSetter = method("date=")
|
|
57
|
+
registerSemanticProperty("dfc-b:description", &method("description")).valueSetter = method("description=")
|
|
58
|
+
registerSemanticProperty("dfc-b:name", &method("name")).valueSetter = method("name=")
|
|
59
|
+
registerSemanticProperty("dfc-b:characteristicOf", &method("characteristic_of")).valueSetter = method("characteristic_of=")
|
|
60
|
+
registerSemanticProperty("dfc-b:hasDimension", &method("dimension")).valueSetter = method("dimension=")
|
|
61
|
+
registerSemanticProperty("dfc-b:hasQuantity", &method("has_quantity")).valueSetter = method("has_quantity=")
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
Core::SemanticObject.type_registry[SEMANTIC_TYPE] = self
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Class from DFC Business Ontology: #Coordination
|
|
4
|
+
require_relative '../core/semantic_object'
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module DfcLinkmlConnector
|
|
8
|
+
module Models
|
|
9
|
+
class Coordination < Core::SemanticObject
|
|
10
|
+
SEMANTIC_TYPE = "dfc-b:Coordination".freeze
|
|
11
|
+
|
|
12
|
+
# @return [Float]
|
|
13
|
+
attr_accessor :margin_percent
|
|
14
|
+
|
|
15
|
+
# @return [String]
|
|
16
|
+
attr_accessor :date
|
|
17
|
+
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_accessor :description
|
|
20
|
+
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :name
|
|
23
|
+
|
|
24
|
+
# @return [String]
|
|
25
|
+
attr_accessor :characteristic_of
|
|
26
|
+
|
|
27
|
+
# @return [String]
|
|
28
|
+
attr_accessor :dimension
|
|
29
|
+
|
|
30
|
+
# @return [Organization, String]
|
|
31
|
+
attr_accessor :coordinated_by
|
|
32
|
+
|
|
33
|
+
# @return [SaleSession, String]
|
|
34
|
+
attr_accessor :object
|
|
35
|
+
|
|
36
|
+
# @param semanticId [String]
|
|
37
|
+
# @param marginPercent: nil, date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, coordinatedBy: nil, object: nil
|
|
38
|
+
def initialize(semanticId, marginPercent: nil, date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, coordinatedBy: nil, object: nil)
|
|
39
|
+
super(semanticId)
|
|
40
|
+
@margin_percent = marginPercent
|
|
41
|
+
@date = date
|
|
42
|
+
@description = description
|
|
43
|
+
@name = name
|
|
44
|
+
@characteristic_of = characteristicOf
|
|
45
|
+
@dimension = dimension
|
|
46
|
+
@coordinated_by = coordinatedBy
|
|
47
|
+
@object = object
|
|
48
|
+
self.semanticType = "dfc-b:Coordination"
|
|
49
|
+
registerSemanticProperty("dfc-b:marginPercent", &method("margin_percent")).valueSetter = method("margin_percent=")
|
|
50
|
+
registerSemanticProperty("dfc-b:date", &method("date")).valueSetter = method("date=")
|
|
51
|
+
registerSemanticProperty("dfc-b:description", &method("description")).valueSetter = method("description=")
|
|
52
|
+
registerSemanticProperty("dfc-b:name", &method("name")).valueSetter = method("name=")
|
|
53
|
+
registerSemanticProperty("dfc-b:characteristicOf", &method("characteristic_of")).valueSetter = method("characteristic_of=")
|
|
54
|
+
registerSemanticProperty("dfc-b:hasDimension", &method("dimension")).valueSetter = method("dimension=")
|
|
55
|
+
registerSemanticProperty("dfc-b:coordinatedBy", &method("coordinated_by")).valueSetter = method("coordinated_by=")
|
|
56
|
+
registerSemanticProperty("dfc-b:hasObject", &method("object")).valueSetter = method("object=")
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
Core::SemanticObject.type_registry[SEMANTIC_TYPE] = self
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Class from DFC Business Ontology: #CustomerCategory
|
|
4
|
+
require_relative '../core/semantic_object'
|
|
5
|
+
require_relative 'who_subject'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
module DfcLinkmlConnector
|
|
9
|
+
module Models
|
|
10
|
+
class CustomerCategory < WhoSubject
|
|
11
|
+
SEMANTIC_TYPE = "dfc-b:CustomerCategory".freeze
|
|
12
|
+
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :member
|
|
15
|
+
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :offer
|
|
18
|
+
|
|
19
|
+
# @return [Organization, String]
|
|
20
|
+
attr_accessor :defined_by
|
|
21
|
+
|
|
22
|
+
# @param semanticId [String]
|
|
23
|
+
# @param date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, member: nil, offer: nil, definedBy: nil
|
|
24
|
+
def initialize(semanticId, date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, member: nil, offer: nil, definedBy: nil)
|
|
25
|
+
super(semanticId, date: date, description: description, name: name, characteristicOf: characteristicOf, dimension: dimension)
|
|
26
|
+
@member = member
|
|
27
|
+
@offer = offer
|
|
28
|
+
@defined_by = definedBy
|
|
29
|
+
self.semanticType = "dfc-b:CustomerCategory"
|
|
30
|
+
registerSemanticProperty("dfc-b:hasMember", &method("member")).valueSetter = method("member=")
|
|
31
|
+
registerSemanticProperty("dfc-b:hasOffer", &method("offer")).valueSetter = method("offer=")
|
|
32
|
+
registerSemanticProperty("dfc-b:definedBy", &method("defined_by")).valueSetter = method("defined_by=")
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
Core::SemanticObject.type_registry[SEMANTIC_TYPE] = self
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Class from DFC Business Ontology: #DefinedProduct
|
|
4
|
+
require_relative '../core/semantic_object'
|
|
5
|
+
require_relative 'what_subject'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
module DfcLinkmlConnector
|
|
9
|
+
module Models
|
|
10
|
+
class DefinedProduct < WhatSubject
|
|
11
|
+
SEMANTIC_TYPE = "dfc-b:DefinedProduct".freeze
|
|
12
|
+
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :image
|
|
15
|
+
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :url
|
|
18
|
+
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :brand
|
|
21
|
+
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :claim
|
|
24
|
+
|
|
25
|
+
# @return [Float]
|
|
26
|
+
attr_accessor :percentage_of_alcohol_by_volume
|
|
27
|
+
|
|
28
|
+
# @return [Float]
|
|
29
|
+
attr_accessor :lifetime
|
|
30
|
+
|
|
31
|
+
# @return [String]
|
|
32
|
+
attr_accessor :physical_characteristics
|
|
33
|
+
|
|
34
|
+
# @return [Float]
|
|
35
|
+
attr_accessor :quantity
|
|
36
|
+
|
|
37
|
+
# @return [String]
|
|
38
|
+
attr_accessor :specific_condition
|
|
39
|
+
|
|
40
|
+
# @return [String]
|
|
41
|
+
attr_accessor :composes
|
|
42
|
+
|
|
43
|
+
# @return [String]
|
|
44
|
+
attr_accessor :consumed_by
|
|
45
|
+
|
|
46
|
+
# @return [String]
|
|
47
|
+
attr_accessor :allergen_characteristic
|
|
48
|
+
|
|
49
|
+
# @return [String]
|
|
50
|
+
attr_accessor :has_brand
|
|
51
|
+
|
|
52
|
+
# @return [String]
|
|
53
|
+
attr_accessor :certification
|
|
54
|
+
|
|
55
|
+
# @return [String]
|
|
56
|
+
attr_accessor :characteristic
|
|
57
|
+
|
|
58
|
+
# @return [String]
|
|
59
|
+
attr_accessor :has_claim
|
|
60
|
+
|
|
61
|
+
# @return [String]
|
|
62
|
+
attr_accessor :container_information
|
|
63
|
+
|
|
64
|
+
# @return [String]
|
|
65
|
+
attr_accessor :geographical_origin
|
|
66
|
+
|
|
67
|
+
# @return [String]
|
|
68
|
+
attr_accessor :ingredient
|
|
69
|
+
|
|
70
|
+
# @return [String]
|
|
71
|
+
attr_accessor :labelling_characteristic
|
|
72
|
+
|
|
73
|
+
# @return [String]
|
|
74
|
+
attr_accessor :nature_origin
|
|
75
|
+
|
|
76
|
+
# @return [String]
|
|
77
|
+
attr_accessor :nutrient_characteristic
|
|
78
|
+
|
|
79
|
+
# @return [String]
|
|
80
|
+
attr_accessor :part_origin
|
|
81
|
+
|
|
82
|
+
# @return [String]
|
|
83
|
+
attr_accessor :physical_characteristic
|
|
84
|
+
|
|
85
|
+
# @return [String]
|
|
86
|
+
attr_accessor :type
|
|
87
|
+
|
|
88
|
+
# @return [String]
|
|
89
|
+
attr_accessor :unit
|
|
90
|
+
|
|
91
|
+
# @return [String]
|
|
92
|
+
attr_accessor :variant
|
|
93
|
+
|
|
94
|
+
# @return [String]
|
|
95
|
+
attr_accessor :process_of
|
|
96
|
+
|
|
97
|
+
# @return [QuantitativeValue, String]
|
|
98
|
+
attr_accessor :has_quantity
|
|
99
|
+
|
|
100
|
+
# @return [Array<ProductOption, String>]
|
|
101
|
+
attr_accessor :reference_product_option
|
|
102
|
+
|
|
103
|
+
# @return [Array<CatalogItem, String>]
|
|
104
|
+
attr_accessor :referenced_by
|
|
105
|
+
|
|
106
|
+
# @param semanticId [String]
|
|
107
|
+
# @param date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, image: nil, url: nil, brand: nil, claim: nil, percentageOfAlcoholByVolume: nil, lifetime: nil, physicalCharacteristics: nil, quantity: nil, specificCondition: nil, composes: nil, consumedBy: nil, allergenCharacteristic: nil, hasBrand: nil, certification: nil, characteristic: nil, hasClaim: nil, containerInformation: nil, geographicalOrigin: nil, ingredient: nil, labellingCharacteristic: nil, natureOrigin: nil, nutrientCharacteristic: nil, partOrigin: nil, physicalCharacteristic: nil, type: nil, unit: nil, variant: nil, processOf: nil, hasQuantity: nil, referenceProductOption: [], referencedBy: []
|
|
108
|
+
def initialize(semanticId, date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, image: nil, url: nil, brand: nil, claim: nil, percentageOfAlcoholByVolume: nil, lifetime: nil, physicalCharacteristics: nil, quantity: nil, specificCondition: nil, composes: nil, consumedBy: nil, allergenCharacteristic: nil, hasBrand: nil, certification: nil, characteristic: nil, hasClaim: nil, containerInformation: nil, geographicalOrigin: nil, ingredient: nil, labellingCharacteristic: nil, natureOrigin: nil, nutrientCharacteristic: nil, partOrigin: nil, physicalCharacteristic: nil, type: nil, unit: nil, variant: nil, processOf: nil, hasQuantity: nil, referenceProductOption: [], referencedBy: [])
|
|
109
|
+
super(semanticId, date: date, description: description, name: name, characteristicOf: characteristicOf, dimension: dimension)
|
|
110
|
+
@image = image
|
|
111
|
+
@url = url
|
|
112
|
+
@brand = brand
|
|
113
|
+
@claim = claim
|
|
114
|
+
@percentage_of_alcohol_by_volume = percentageOfAlcoholByVolume
|
|
115
|
+
@lifetime = lifetime
|
|
116
|
+
@physical_characteristics = physicalCharacteristics
|
|
117
|
+
@quantity = quantity
|
|
118
|
+
@specific_condition = specificCondition
|
|
119
|
+
@composes = composes
|
|
120
|
+
@consumed_by = consumedBy
|
|
121
|
+
@allergen_characteristic = allergenCharacteristic
|
|
122
|
+
@has_brand = hasBrand
|
|
123
|
+
@certification = certification
|
|
124
|
+
@characteristic = characteristic
|
|
125
|
+
@has_claim = hasClaim
|
|
126
|
+
@container_information = containerInformation
|
|
127
|
+
@geographical_origin = geographicalOrigin
|
|
128
|
+
@ingredient = ingredient
|
|
129
|
+
@labelling_characteristic = labellingCharacteristic
|
|
130
|
+
@nature_origin = natureOrigin
|
|
131
|
+
@nutrient_characteristic = nutrientCharacteristic
|
|
132
|
+
@part_origin = partOrigin
|
|
133
|
+
@physical_characteristic = physicalCharacteristic
|
|
134
|
+
@type = type
|
|
135
|
+
@unit = unit
|
|
136
|
+
@variant = variant
|
|
137
|
+
@process_of = processOf
|
|
138
|
+
@has_quantity = hasQuantity
|
|
139
|
+
@reference_product_option = referenceProductOption
|
|
140
|
+
@referenced_by = referencedBy
|
|
141
|
+
self.semanticType = "dfc-b:DefinedProduct"
|
|
142
|
+
registerSemanticProperty("dfc-b:Image", &method("image")).valueSetter = method("image=")
|
|
143
|
+
registerSemanticProperty("dfc-b:URL", &method("url")).valueSetter = method("url=")
|
|
144
|
+
registerSemanticProperty("dfc-b:brand", &method("brand")).valueSetter = method("brand=")
|
|
145
|
+
registerSemanticProperty("dfc-b:claim", &method("claim")).valueSetter = method("claim=")
|
|
146
|
+
registerSemanticProperty("dfc-b:hasPercentageOfAlcoholByVolume", &method("percentage_of_alcohol_by_volume")).valueSetter = method("percentage_of_alcohol_by_volume=")
|
|
147
|
+
registerSemanticProperty("dfc-b:lifetime", &method("lifetime")).valueSetter = method("lifetime=")
|
|
148
|
+
registerSemanticProperty("dfc-b:physicalCharacteristics", &method("physical_characteristics")).valueSetter = method("physical_characteristics=")
|
|
149
|
+
registerSemanticProperty("dfc-b:quantity", &method("quantity")).valueSetter = method("quantity=")
|
|
150
|
+
registerSemanticProperty("dfc-b:specificCondition", &method("specific_condition")).valueSetter = method("specific_condition=")
|
|
151
|
+
registerSemanticProperty("dfc-b:composes", &method("composes")).valueSetter = method("composes=")
|
|
152
|
+
registerSemanticProperty("dfc-b:consumedBy", &method("consumed_by")).valueSetter = method("consumed_by=")
|
|
153
|
+
registerSemanticProperty("dfc-b:hasAllergenCharacteristic", &method("allergen_characteristic")).valueSetter = method("allergen_characteristic=")
|
|
154
|
+
registerSemanticProperty("dfc-b:hasBrand", &method("has_brand")).valueSetter = method("has_brand=")
|
|
155
|
+
registerSemanticProperty("dfc-b:hasCertification", &method("certification")).valueSetter = method("certification=")
|
|
156
|
+
registerSemanticProperty("dfc-b:hasCharacteristic", &method("characteristic")).valueSetter = method("characteristic=")
|
|
157
|
+
registerSemanticProperty("dfc-b:hasClaim", &method("has_claim")).valueSetter = method("has_claim=")
|
|
158
|
+
registerSemanticProperty("dfc-b:hasContainerInformation", &method("container_information")).valueSetter = method("container_information=")
|
|
159
|
+
registerSemanticProperty("dfc-b:hasGeographicalOrigin", &method("geographical_origin")).valueSetter = method("geographical_origin=")
|
|
160
|
+
registerSemanticProperty("dfc-b:hasIngredient", &method("ingredient")).valueSetter = method("ingredient=")
|
|
161
|
+
registerSemanticProperty("dfc-b:hasLabellingCharacteristic", &method("labelling_characteristic")).valueSetter = method("labelling_characteristic=")
|
|
162
|
+
registerSemanticProperty("dfc-b:hasNatureOrigin", &method("nature_origin")).valueSetter = method("nature_origin=")
|
|
163
|
+
registerSemanticProperty("dfc-b:hasNutrientCharacteristic", &method("nutrient_characteristic")).valueSetter = method("nutrient_characteristic=")
|
|
164
|
+
registerSemanticProperty("dfc-b:hasPartOrigin", &method("part_origin")).valueSetter = method("part_origin=")
|
|
165
|
+
registerSemanticProperty("dfc-b:hasPhysicalCharacteristic", &method("physical_characteristic")).valueSetter = method("physical_characteristic=")
|
|
166
|
+
registerSemanticProperty("dfc-b:hasType", &method("type")).valueSetter = method("type=")
|
|
167
|
+
registerSemanticProperty("dfc-b:hasUnit", &method("unit")).valueSetter = method("unit=")
|
|
168
|
+
registerSemanticProperty("dfc-b:hasVariant", &method("variant")).valueSetter = method("variant=")
|
|
169
|
+
registerSemanticProperty("dfc-b:processOf", &method("process_of")).valueSetter = method("process_of=")
|
|
170
|
+
registerSemanticProperty("dfc-b:hasQuantity", &method("has_quantity")).valueSetter = method("has_quantity=")
|
|
171
|
+
registerSemanticProperty("dfc-b:hasReferenceProductOption", &method("reference_product_option")).valueSetter = method("reference_product_option=")
|
|
172
|
+
registerSemanticProperty("dfc-b:referencedBy", &method("referenced_by")).valueSetter = method("referenced_by=")
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
Core::SemanticObject.type_registry[SEMANTIC_TYPE] = self
|
|
176
|
+
end
|
|
177
|
+
end
|
|
178
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Class from DFC Business Ontology: #DeliveryOption
|
|
4
|
+
require_relative '../core/semantic_object'
|
|
5
|
+
require_relative 'shipping_option'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
module DfcLinkmlConnector
|
|
9
|
+
module Models
|
|
10
|
+
class DeliveryOption < ShippingOption
|
|
11
|
+
SEMANTIC_TYPE = "dfc-b:DeliveryOption".freeze
|
|
12
|
+
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :accessibility_info
|
|
15
|
+
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :delivery_constraint
|
|
18
|
+
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :delivered_at
|
|
21
|
+
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :uses
|
|
24
|
+
|
|
25
|
+
# @return [Address, String]
|
|
26
|
+
attr_accessor :refers_to
|
|
27
|
+
|
|
28
|
+
# @param semanticId [String]
|
|
29
|
+
# @param date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, endDate: nil, fee: nil, quantity: nil, startDate: nil, selectedBy: nil, hasQuantity: nil, optionOf: nil, accessibilityInfo: nil, deliveryConstraint: nil, deliveredAt: nil, uses: nil, refersTo: nil
|
|
30
|
+
def initialize(semanticId, date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, endDate: nil, fee: nil, quantity: nil, startDate: nil, selectedBy: nil, hasQuantity: nil, optionOf: nil, accessibilityInfo: nil, deliveryConstraint: nil, deliveredAt: nil, uses: nil, refersTo: nil)
|
|
31
|
+
super(semanticId, date: date, description: description, name: name, characteristicOf: characteristicOf, dimension: dimension, endDate: endDate, fee: fee, quantity: quantity, startDate: startDate, selectedBy: selectedBy, hasQuantity: hasQuantity, optionOf: optionOf)
|
|
32
|
+
@accessibility_info = accessibilityInfo
|
|
33
|
+
@delivery_constraint = deliveryConstraint
|
|
34
|
+
@delivered_at = deliveredAt
|
|
35
|
+
@uses = uses
|
|
36
|
+
@refers_to = refersTo
|
|
37
|
+
self.semanticType = "dfc-b:DeliveryOption"
|
|
38
|
+
registerSemanticProperty("dfc-b:accessibilityInfo", &method("accessibility_info")).valueSetter = method("accessibility_info=")
|
|
39
|
+
registerSemanticProperty("dfc-b:deliveryConstraint", &method("delivery_constraint")).valueSetter = method("delivery_constraint=")
|
|
40
|
+
registerSemanticProperty("dfc-b:deliveredAt", &method("delivered_at")).valueSetter = method("delivered_at=")
|
|
41
|
+
registerSemanticProperty("dfc-b:uses", &method("uses")).valueSetter = method("uses=")
|
|
42
|
+
registerSemanticProperty("dfc-b:refersTo", &method("refers_to")).valueSetter = method("refers_to=")
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
Core::SemanticObject.type_registry[SEMANTIC_TYPE] = self
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Class from DFC Business Ontology: #DeliveryStep
|
|
4
|
+
require_relative '../core/semantic_object'
|
|
5
|
+
require_relative 'step'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
module DfcLinkmlConnector
|
|
9
|
+
module Models
|
|
10
|
+
class DeliveryStep < Step
|
|
11
|
+
SEMANTIC_TYPE = "dfc-b:DeliveryStep".freeze
|
|
12
|
+
|
|
13
|
+
# @param semanticId [String]
|
|
14
|
+
# @param date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, arrivalDate: nil, duration: nil, isStepOf: nil, delivery: [], pickUp: []
|
|
15
|
+
def initialize(semanticId, date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, arrivalDate: nil, duration: nil, isStepOf: nil, delivery: [], pickUp: [])
|
|
16
|
+
super(semanticId, date: date, description: description, name: name, characteristicOf: characteristicOf, dimension: dimension, arrivalDate: arrivalDate, duration: duration, isStepOf: isStepOf, delivery: delivery, pickUp: pickUp)
|
|
17
|
+
|
|
18
|
+
self.semanticType = "dfc-b:DeliveryStep"
|
|
19
|
+
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
Core::SemanticObject.type_registry[SEMANTIC_TYPE] = self
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Class from DFC Business Ontology: #DFC_DitributedRepresentation
|
|
4
|
+
require_relative '../core/semantic_object'
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module DfcLinkmlConnector
|
|
8
|
+
module Models
|
|
9
|
+
class DitributedRepresentation < Core::SemanticObject
|
|
10
|
+
SEMANTIC_TYPE = "dfc-b:DFC_DitributedRepresentation".freeze
|
|
11
|
+
|
|
12
|
+
# @return [String]
|
|
13
|
+
attr_accessor :date
|
|
14
|
+
|
|
15
|
+
# @return [String]
|
|
16
|
+
attr_accessor :description
|
|
17
|
+
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_accessor :name
|
|
20
|
+
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :characteristic_of
|
|
23
|
+
|
|
24
|
+
# @return [String]
|
|
25
|
+
attr_accessor :dimension
|
|
26
|
+
|
|
27
|
+
# @param semanticId [String]
|
|
28
|
+
# @param date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil
|
|
29
|
+
def initialize(semanticId, date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil)
|
|
30
|
+
super(semanticId)
|
|
31
|
+
@date = date
|
|
32
|
+
@description = description
|
|
33
|
+
@name = name
|
|
34
|
+
@characteristic_of = characteristicOf
|
|
35
|
+
@dimension = dimension
|
|
36
|
+
self.semanticType = "dfc-b:DFC_DitributedRepresentation"
|
|
37
|
+
registerSemanticProperty("dfc-b:date", &method("date")).valueSetter = method("date=")
|
|
38
|
+
registerSemanticProperty("dfc-b:description", &method("description")).valueSetter = method("description=")
|
|
39
|
+
registerSemanticProperty("dfc-b:name", &method("name")).valueSetter = method("name=")
|
|
40
|
+
registerSemanticProperty("dfc-b:characteristicOf", &method("characteristic_of")).valueSetter = method("characteristic_of=")
|
|
41
|
+
registerSemanticProperty("dfc-b:hasDimension", &method("dimension")).valueSetter = method("dimension=")
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
Core::SemanticObject.type_registry[SEMANTIC_TYPE] = self
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Class from DFC Business Ontology: #Enterprise
|
|
4
|
+
require_relative '../core/semantic_object'
|
|
5
|
+
require_relative 'organization'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
module DfcLinkmlConnector
|
|
9
|
+
module Models
|
|
10
|
+
class Enterprise < Organization
|
|
11
|
+
SEMANTIC_TYPE = "dfc-b:Enterprise".freeze
|
|
12
|
+
|
|
13
|
+
# @param semanticId [String]
|
|
14
|
+
# @param date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, email: nil, logo: nil, websitePage: nil, hasPhoneNumber: nil, socialMedia: nil, owns: nil, sells: nil, vatNumber: nil, vatStatus: nil, enterpriseId: nil, templateSaleSession: nil, isCertifiedBy: nil, affiliatedTo: nil, address: [], isMemberOf: [], orders: [], requests: [], affiliates: [], defines: [], mainContact: nil, maintains: [], manages: [], proposes: [], supplies: [], transforms: []
|
|
15
|
+
def initialize(semanticId, date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, email: nil, logo: nil, websitePage: nil, hasPhoneNumber: nil, socialMedia: nil, owns: nil, sells: nil, vatNumber: nil, vatStatus: nil, enterpriseId: nil, templateSaleSession: nil, isCertifiedBy: nil, affiliatedTo: nil, address: [], isMemberOf: [], orders: [], requests: [], affiliates: [], defines: [], mainContact: nil, maintains: [], manages: [], proposes: [], supplies: [], transforms: [])
|
|
16
|
+
super(semanticId, date: date, description: description, name: name, characteristicOf: characteristicOf, dimension: dimension, email: email, logo: logo, websitePage: websitePage, hasPhoneNumber: hasPhoneNumber, socialMedia: socialMedia, owns: owns, sells: sells, vatNumber: vatNumber, vatStatus: vatStatus, enterpriseId: enterpriseId, templateSaleSession: templateSaleSession, isCertifiedBy: isCertifiedBy, affiliatedTo: affiliatedTo, address: address, isMemberOf: isMemberOf, orders: orders, requests: requests, affiliates: affiliates, defines: defines, mainContact: mainContact, maintains: maintains, manages: manages, proposes: proposes, supplies: supplies, transforms: transforms)
|
|
17
|
+
|
|
18
|
+
self.semanticType = "dfc-b:Enterprise"
|
|
19
|
+
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# Original DFC v2 API aliases (see config/dfc-original-api.yaml).
|
|
23
|
+
alias_method :vatNumber, :vat_number
|
|
24
|
+
alias_method :vatNumber=, :vat_number=
|
|
25
|
+
|
|
26
|
+
Core::SemanticObject.type_registry[SEMANTIC_TYPE] = self
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Class from DFC Business Ontology: #Feature
|
|
4
|
+
require_relative '../core/semantic_object'
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module DfcLinkmlConnector
|
|
8
|
+
module Models
|
|
9
|
+
class Feature < Core::SemanticObject
|
|
10
|
+
SEMANTIC_TYPE = "dfc-b:Feature".freeze
|
|
11
|
+
|
|
12
|
+
# @return [String]
|
|
13
|
+
attr_accessor :date
|
|
14
|
+
|
|
15
|
+
# @return [String]
|
|
16
|
+
attr_accessor :description
|
|
17
|
+
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_accessor :name
|
|
20
|
+
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :characteristic_of
|
|
23
|
+
|
|
24
|
+
# @return [String]
|
|
25
|
+
attr_accessor :dimension
|
|
26
|
+
|
|
27
|
+
# @return [Geometry, String]
|
|
28
|
+
attr_accessor :geometry
|
|
29
|
+
|
|
30
|
+
# @return [Array<Properties, String>]
|
|
31
|
+
attr_accessor :properties
|
|
32
|
+
|
|
33
|
+
# @param semanticId [String]
|
|
34
|
+
# @param date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, geometry: nil, properties: []
|
|
35
|
+
def initialize(semanticId, date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, geometry: nil, properties: [])
|
|
36
|
+
super(semanticId)
|
|
37
|
+
@date = date
|
|
38
|
+
@description = description
|
|
39
|
+
@name = name
|
|
40
|
+
@characteristic_of = characteristicOf
|
|
41
|
+
@dimension = dimension
|
|
42
|
+
@geometry = geometry
|
|
43
|
+
@properties = properties
|
|
44
|
+
self.semanticType = "dfc-b:Feature"
|
|
45
|
+
registerSemanticProperty("dfc-b:date", &method("date")).valueSetter = method("date=")
|
|
46
|
+
registerSemanticProperty("dfc-b:description", &method("description")).valueSetter = method("description=")
|
|
47
|
+
registerSemanticProperty("dfc-b:name", &method("name")).valueSetter = method("name=")
|
|
48
|
+
registerSemanticProperty("dfc-b:characteristicOf", &method("characteristic_of")).valueSetter = method("characteristic_of=")
|
|
49
|
+
registerSemanticProperty("dfc-b:hasDimension", &method("dimension")).valueSetter = method("dimension=")
|
|
50
|
+
registerSemanticProperty("https://purl.org/geojson/vocab#geometry", &method("geometry")).valueSetter = method("geometry=")
|
|
51
|
+
registerSemanticProperty("https://purl.org/geojson/vocab#properties", &method("properties")).valueSetter = method("properties=")
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
Core::SemanticObject.type_registry[SEMANTIC_TYPE] = self
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Class from DFC Business Ontology: #FunctionalProduct
|
|
4
|
+
require_relative '../core/semantic_object'
|
|
5
|
+
require_relative 'defined_product'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
module DfcLinkmlConnector
|
|
9
|
+
module Models
|
|
10
|
+
class FunctionalProduct < DefinedProduct
|
|
11
|
+
SEMANTIC_TYPE = "dfc-b:FunctionalProduct".freeze
|
|
12
|
+
|
|
13
|
+
# @return [Agent, String]
|
|
14
|
+
attr_accessor :requested_by
|
|
15
|
+
|
|
16
|
+
# @return [TechnicalProduct, String]
|
|
17
|
+
attr_accessor :satisfied_by
|
|
18
|
+
|
|
19
|
+
# @param semanticId [String]
|
|
20
|
+
# @param date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, image: nil, url: nil, brand: nil, claim: nil, percentageOfAlcoholByVolume: nil, lifetime: nil, physicalCharacteristics: nil, quantity: nil, specificCondition: nil, composes: nil, consumedBy: nil, allergenCharacteristic: nil, hasBrand: nil, certification: nil, characteristic: nil, hasClaim: nil, containerInformation: nil, geographicalOrigin: nil, ingredient: nil, labellingCharacteristic: nil, natureOrigin: nil, nutrientCharacteristic: nil, partOrigin: nil, physicalCharacteristic: nil, type: nil, unit: nil, variant: nil, processOf: nil, hasQuantity: nil, referenceProductOption: [], referencedBy: [], requestedBy: nil, satisfiedBy: nil
|
|
21
|
+
def initialize(semanticId, date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, image: nil, url: nil, brand: nil, claim: nil, percentageOfAlcoholByVolume: nil, lifetime: nil, physicalCharacteristics: nil, quantity: nil, specificCondition: nil, composes: nil, consumedBy: nil, allergenCharacteristic: nil, hasBrand: nil, certification: nil, characteristic: nil, hasClaim: nil, containerInformation: nil, geographicalOrigin: nil, ingredient: nil, labellingCharacteristic: nil, natureOrigin: nil, nutrientCharacteristic: nil, partOrigin: nil, physicalCharacteristic: nil, type: nil, unit: nil, variant: nil, processOf: nil, hasQuantity: nil, referenceProductOption: [], referencedBy: [], requestedBy: nil, satisfiedBy: nil)
|
|
22
|
+
super(semanticId, date: date, description: description, name: name, characteristicOf: characteristicOf, dimension: dimension, image: image, url: url, brand: brand, claim: claim, percentageOfAlcoholByVolume: percentageOfAlcoholByVolume, lifetime: lifetime, physicalCharacteristics: physicalCharacteristics, quantity: quantity, specificCondition: specificCondition, composes: composes, consumedBy: consumedBy, allergenCharacteristic: allergenCharacteristic, hasBrand: hasBrand, certification: certification, characteristic: characteristic, hasClaim: hasClaim, containerInformation: containerInformation, geographicalOrigin: geographicalOrigin, ingredient: ingredient, labellingCharacteristic: labellingCharacteristic, natureOrigin: natureOrigin, nutrientCharacteristic: nutrientCharacteristic, partOrigin: partOrigin, physicalCharacteristic: physicalCharacteristic, type: type, unit: unit, variant: variant, processOf: processOf, hasQuantity: hasQuantity, referenceProductOption: referenceProductOption, referencedBy: referencedBy)
|
|
23
|
+
@requested_by = requestedBy
|
|
24
|
+
@satisfied_by = satisfiedBy
|
|
25
|
+
self.semanticType = "dfc-b:FunctionalProduct"
|
|
26
|
+
registerSemanticProperty("dfc-b:requestedBy", &method("requested_by")).valueSetter = method("requested_by=")
|
|
27
|
+
registerSemanticProperty("dfc-b:satisfiedBy", &method("satisfied_by")).valueSetter = method("satisfied_by=")
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
Core::SemanticObject.type_registry[SEMANTIC_TYPE] = self
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Class from DFC Business Ontology: #Geometry
|
|
4
|
+
require_relative '../core/semantic_object'
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module DfcLinkmlConnector
|
|
8
|
+
module Models
|
|
9
|
+
class Geometry < Core::SemanticObject
|
|
10
|
+
SEMANTIC_TYPE = "dfc-b:Geometry".freeze
|
|
11
|
+
|
|
12
|
+
# @return [String]
|
|
13
|
+
attr_accessor :coordinates
|
|
14
|
+
|
|
15
|
+
# @return [String]
|
|
16
|
+
attr_accessor :date
|
|
17
|
+
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_accessor :description
|
|
20
|
+
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :name
|
|
23
|
+
|
|
24
|
+
# @return [String]
|
|
25
|
+
attr_accessor :characteristic_of
|
|
26
|
+
|
|
27
|
+
# @return [String]
|
|
28
|
+
attr_accessor :dimension
|
|
29
|
+
|
|
30
|
+
# @param semanticId [String]
|
|
31
|
+
# @param coordinates: nil, date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil
|
|
32
|
+
def initialize(semanticId, coordinates: nil, date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil)
|
|
33
|
+
super(semanticId)
|
|
34
|
+
@coordinates = coordinates
|
|
35
|
+
@date = date
|
|
36
|
+
@description = description
|
|
37
|
+
@name = name
|
|
38
|
+
@characteristic_of = characteristicOf
|
|
39
|
+
@dimension = dimension
|
|
40
|
+
self.semanticType = "dfc-b:Geometry"
|
|
41
|
+
registerSemanticProperty("https://purl.org/geojson/vocab#coordinates", &method("coordinates")).valueSetter = method("coordinates=")
|
|
42
|
+
registerSemanticProperty("dfc-b:date", &method("date")).valueSetter = method("date=")
|
|
43
|
+
registerSemanticProperty("dfc-b:description", &method("description")).valueSetter = method("description=")
|
|
44
|
+
registerSemanticProperty("dfc-b:name", &method("name")).valueSetter = method("name=")
|
|
45
|
+
registerSemanticProperty("dfc-b:characteristicOf", &method("characteristic_of")).valueSetter = method("characteristic_of=")
|
|
46
|
+
registerSemanticProperty("dfc-b:hasDimension", &method("dimension")).valueSetter = method("dimension=")
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
Core::SemanticObject.type_registry[SEMANTIC_TYPE] = self
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|