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,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Class from DFC Business Ontology: #AsPlannedLocalProductionFlow
|
|
4
|
+
require_relative '../core/semantic_object'
|
|
5
|
+
require_relative 'production_flow'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
module DfcLinkmlConnector
|
|
9
|
+
module Models
|
|
10
|
+
class AsPlannedLocalProductionFlow < ProductionFlow
|
|
11
|
+
SEMANTIC_TYPE = "dfc-b:AsPlannedLocalProductionFlow".freeze
|
|
12
|
+
|
|
13
|
+
# @param semanticId [String]
|
|
14
|
+
# @param quantity: nil, outputOf: nil, produces: nil, date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, hasQuantity: nil
|
|
15
|
+
def initialize(semanticId, quantity: nil, outputOf: nil, produces: nil, date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, hasQuantity: nil)
|
|
16
|
+
super(semanticId, quantity: quantity, outputOf: outputOf, produces: produces, date: date, description: description, name: name, characteristicOf: characteristicOf, dimension: dimension, hasQuantity: hasQuantity)
|
|
17
|
+
|
|
18
|
+
self.semanticType = "dfc-b:AsPlannedLocalProductionFlow"
|
|
19
|
+
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
Core::SemanticObject.type_registry[SEMANTIC_TYPE] = self
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Class from DFC Business Ontology: #AsPlannedLocalTransformation
|
|
4
|
+
require_relative '../core/semantic_object'
|
|
5
|
+
require_relative 'transformation'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
module DfcLinkmlConnector
|
|
9
|
+
module Models
|
|
10
|
+
class AsPlannedLocalTransformation < Transformation
|
|
11
|
+
SEMANTIC_TYPE = "dfc-b:AsPlannedLocalTransformation".freeze
|
|
12
|
+
|
|
13
|
+
# @return [Float]
|
|
14
|
+
attr_accessor :cost
|
|
15
|
+
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :end_date
|
|
18
|
+
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :start_date
|
|
21
|
+
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :input
|
|
24
|
+
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :output
|
|
27
|
+
|
|
28
|
+
# @return [Organization, String]
|
|
29
|
+
attr_accessor :transformed_by
|
|
30
|
+
|
|
31
|
+
# @param semanticId [String]
|
|
32
|
+
# @param date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, cost: nil, endDate: nil, startDate: nil, input: nil, output: nil, transformedBy: nil
|
|
33
|
+
def initialize(semanticId, date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, cost: nil, endDate: nil, startDate: nil, input: nil, output: nil, transformedBy: nil)
|
|
34
|
+
super(semanticId, date: date, description: description, name: name, characteristicOf: characteristicOf, dimension: dimension)
|
|
35
|
+
@cost = cost
|
|
36
|
+
@end_date = endDate
|
|
37
|
+
@start_date = startDate
|
|
38
|
+
@input = input
|
|
39
|
+
@output = output
|
|
40
|
+
@transformed_by = transformedBy
|
|
41
|
+
self.semanticType = "dfc-b:AsPlannedLocalTransformation"
|
|
42
|
+
registerSemanticProperty("dfc-b:cost", &method("cost")).valueSetter = method("cost=")
|
|
43
|
+
registerSemanticProperty("dfc-b:endDate", &method("end_date")).valueSetter = method("end_date=")
|
|
44
|
+
registerSemanticProperty("dfc-b:startDate", &method("start_date")).valueSetter = method("start_date=")
|
|
45
|
+
registerSemanticProperty("dfc-b:hasInput", &method("input")).valueSetter = method("input=")
|
|
46
|
+
registerSemanticProperty("dfc-b:hasOutput", &method("output")).valueSetter = method("output=")
|
|
47
|
+
registerSemanticProperty("dfc-b:transformedBy", &method("transformed_by")).valueSetter = method("transformed_by=")
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
Core::SemanticObject.type_registry[SEMANTIC_TYPE] = self
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Class from DFC Business Ontology: #AsPlannedProductionFlow
|
|
4
|
+
require_relative '../core/semantic_object'
|
|
5
|
+
require_relative 'production_flow'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
module DfcLinkmlConnector
|
|
9
|
+
module Models
|
|
10
|
+
class AsPlannedProductionFlow < ProductionFlow
|
|
11
|
+
SEMANTIC_TYPE = "dfc-b:AsPlannedProductionFlow".freeze
|
|
12
|
+
|
|
13
|
+
# @param semanticId [String]
|
|
14
|
+
# @param quantity: nil, outputOf: nil, produces: nil, date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, hasQuantity: nil
|
|
15
|
+
def initialize(semanticId, quantity: nil, outputOf: nil, produces: nil, date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, hasQuantity: nil)
|
|
16
|
+
super(semanticId, quantity: quantity, outputOf: outputOf, produces: produces, date: date, description: description, name: name, characteristicOf: characteristicOf, dimension: dimension, hasQuantity: hasQuantity)
|
|
17
|
+
|
|
18
|
+
self.semanticType = "dfc-b:AsPlannedProductionFlow"
|
|
19
|
+
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
Core::SemanticObject.type_registry[SEMANTIC_TYPE] = self
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Class from DFC Business Ontology: #AsPlannedTransformation
|
|
4
|
+
require_relative '../core/semantic_object'
|
|
5
|
+
require_relative 'transformation'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
module DfcLinkmlConnector
|
|
9
|
+
module Models
|
|
10
|
+
class AsPlannedTransformation < Transformation
|
|
11
|
+
SEMANTIC_TYPE = "dfc-b:AsPlannedTransformation".freeze
|
|
12
|
+
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :input
|
|
15
|
+
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :output
|
|
18
|
+
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :transformation_type
|
|
21
|
+
|
|
22
|
+
# @param semanticId [String]
|
|
23
|
+
# @param date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, input: nil, output: nil, transformationType: nil
|
|
24
|
+
def initialize(semanticId, date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, input: nil, output: nil, transformationType: nil)
|
|
25
|
+
super(semanticId, date: date, description: description, name: name, characteristicOf: characteristicOf, dimension: dimension)
|
|
26
|
+
@input = input
|
|
27
|
+
@output = output
|
|
28
|
+
@transformation_type = transformationType
|
|
29
|
+
self.semanticType = "dfc-b:AsPlannedTransformation"
|
|
30
|
+
registerSemanticProperty("dfc-b:hasInput", &method("input")).valueSetter = method("input=")
|
|
31
|
+
registerSemanticProperty("dfc-b:hasOutput", &method("output")).valueSetter = method("output=")
|
|
32
|
+
registerSemanticProperty("dfc-b:hasTransformationType", &method("transformation_type")).valueSetter = method("transformation_type=")
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
Core::SemanticObject.type_registry[SEMANTIC_TYPE] = self
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Class from DFC Business Ontology: #AsRealizedConsumptionFlow
|
|
4
|
+
require_relative '../core/semantic_object'
|
|
5
|
+
require_relative 'consumption_flow'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
module DfcLinkmlConnector
|
|
9
|
+
module Models
|
|
10
|
+
class AsRealizedConsumptionFlow < ConsumptionFlow
|
|
11
|
+
SEMANTIC_TYPE = "dfc-b:AsRealizedConsumptionFlow".freeze
|
|
12
|
+
|
|
13
|
+
# @param semanticId [String]
|
|
14
|
+
# @param quantity: nil, consumes: nil, inputOf: nil, date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, hasQuantity: nil
|
|
15
|
+
def initialize(semanticId, quantity: nil, consumes: nil, inputOf: nil, date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, hasQuantity: nil)
|
|
16
|
+
super(semanticId, quantity: quantity, consumes: consumes, inputOf: inputOf, date: date, description: description, name: name, characteristicOf: characteristicOf, dimension: dimension, hasQuantity: hasQuantity)
|
|
17
|
+
|
|
18
|
+
self.semanticType = "dfc-b:AsRealizedConsumptionFlow"
|
|
19
|
+
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
Core::SemanticObject.type_registry[SEMANTIC_TYPE] = self
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Class from DFC Business Ontology: #AsRealizedProductionFlow
|
|
4
|
+
require_relative '../core/semantic_object'
|
|
5
|
+
require_relative 'production_flow'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
module DfcLinkmlConnector
|
|
9
|
+
module Models
|
|
10
|
+
class AsRealizedProductionFlow < ProductionFlow
|
|
11
|
+
SEMANTIC_TYPE = "dfc-b:AsRealizedProductionFlow".freeze
|
|
12
|
+
|
|
13
|
+
# @param semanticId [String]
|
|
14
|
+
# @param quantity: nil, outputOf: nil, produces: nil, date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, hasQuantity: nil
|
|
15
|
+
def initialize(semanticId, quantity: nil, outputOf: nil, produces: nil, date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, hasQuantity: nil)
|
|
16
|
+
super(semanticId, quantity: quantity, outputOf: outputOf, produces: produces, date: date, description: description, name: name, characteristicOf: characteristicOf, dimension: dimension, hasQuantity: hasQuantity)
|
|
17
|
+
|
|
18
|
+
self.semanticType = "dfc-b:AsRealizedProductionFlow"
|
|
19
|
+
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
Core::SemanticObject.type_registry[SEMANTIC_TYPE] = self
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Class from DFC Business Ontology: #AsRealizedTransformation
|
|
4
|
+
require_relative '../core/semantic_object'
|
|
5
|
+
require_relative 'transformation'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
module DfcLinkmlConnector
|
|
9
|
+
module Models
|
|
10
|
+
class AsRealizedTransformation < Transformation
|
|
11
|
+
SEMANTIC_TYPE = "dfc-b:AsRealizedTransformation".freeze
|
|
12
|
+
|
|
13
|
+
# @return [Float]
|
|
14
|
+
attr_accessor :cost
|
|
15
|
+
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :end_date
|
|
18
|
+
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :start_date
|
|
21
|
+
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :input
|
|
24
|
+
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :output
|
|
27
|
+
|
|
28
|
+
# @param semanticId [String]
|
|
29
|
+
# @param date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, cost: nil, endDate: nil, startDate: nil, input: nil, output: nil
|
|
30
|
+
def initialize(semanticId, date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, cost: nil, endDate: nil, startDate: nil, input: nil, output: nil)
|
|
31
|
+
super(semanticId, date: date, description: description, name: name, characteristicOf: characteristicOf, dimension: dimension)
|
|
32
|
+
@cost = cost
|
|
33
|
+
@end_date = endDate
|
|
34
|
+
@start_date = startDate
|
|
35
|
+
@input = input
|
|
36
|
+
@output = output
|
|
37
|
+
self.semanticType = "dfc-b:AsRealizedTransformation"
|
|
38
|
+
registerSemanticProperty("dfc-b:cost", &method("cost")).valueSetter = method("cost=")
|
|
39
|
+
registerSemanticProperty("dfc-b:endDate", &method("end_date")).valueSetter = method("end_date=")
|
|
40
|
+
registerSemanticProperty("dfc-b:startDate", &method("start_date")).valueSetter = method("start_date=")
|
|
41
|
+
registerSemanticProperty("dfc-b:hasInput", &method("input")).valueSetter = method("input=")
|
|
42
|
+
registerSemanticProperty("dfc-b:hasOutput", &method("output")).valueSetter = method("output=")
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
Core::SemanticObject.type_registry[SEMANTIC_TYPE] = self
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
data/lib/models/brand.rb
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Class from DFC Business Ontology: #Brand
|
|
4
|
+
require_relative '../core/semantic_object'
|
|
5
|
+
require_relative 'what_subject'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
module DfcLinkmlConnector
|
|
9
|
+
module Models
|
|
10
|
+
class Brand < WhatSubject
|
|
11
|
+
SEMANTIC_TYPE = "dfc-b:Brand".freeze
|
|
12
|
+
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :brand_of
|
|
15
|
+
|
|
16
|
+
# @return [Agent, String]
|
|
17
|
+
attr_accessor :owned_by
|
|
18
|
+
|
|
19
|
+
# @param semanticId [String]
|
|
20
|
+
# @param date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, brandOf: nil, ownedBy: nil
|
|
21
|
+
def initialize(semanticId, date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, brandOf: nil, ownedBy: nil)
|
|
22
|
+
super(semanticId, date: date, description: description, name: name, characteristicOf: characteristicOf, dimension: dimension)
|
|
23
|
+
@brand_of = brandOf
|
|
24
|
+
@owned_by = ownedBy
|
|
25
|
+
self.semanticType = "dfc-b:Brand"
|
|
26
|
+
registerSemanticProperty("dfc-b:brandOf", &method("brand_of")).valueSetter = method("brand_of=")
|
|
27
|
+
registerSemanticProperty("dfc-b:ownedBy", &method("owned_by")).valueSetter = method("owned_by=")
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
Core::SemanticObject.type_registry[SEMANTIC_TYPE] = self
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Class from DFC Business Ontology: #Catalog
|
|
4
|
+
require_relative '../core/semantic_object'
|
|
5
|
+
require_relative 'where_subject'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
module DfcLinkmlConnector
|
|
9
|
+
module Models
|
|
10
|
+
class Catalog < WhereSubject
|
|
11
|
+
SEMANTIC_TYPE = "dfc-b:Catalog".freeze
|
|
12
|
+
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :end_date
|
|
15
|
+
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :start_date
|
|
18
|
+
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :lists
|
|
21
|
+
|
|
22
|
+
# @return [Organization, String]
|
|
23
|
+
attr_accessor :maintained_by
|
|
24
|
+
|
|
25
|
+
# @param semanticId [String]
|
|
26
|
+
# @param date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, endDate: nil, startDate: nil, lists: nil, maintainedBy: nil
|
|
27
|
+
def initialize(semanticId, date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, endDate: nil, startDate: nil, lists: nil, maintainedBy: nil)
|
|
28
|
+
super(semanticId, date: date, description: description, name: name, characteristicOf: characteristicOf, dimension: dimension)
|
|
29
|
+
@end_date = endDate
|
|
30
|
+
@start_date = startDate
|
|
31
|
+
@lists = lists
|
|
32
|
+
@maintained_by = maintainedBy
|
|
33
|
+
self.semanticType = "dfc-b:Catalog"
|
|
34
|
+
registerSemanticProperty("dfc-b:endDate", &method("end_date")).valueSetter = method("end_date=")
|
|
35
|
+
registerSemanticProperty("dfc-b:startDate", &method("start_date")).valueSetter = method("start_date=")
|
|
36
|
+
registerSemanticProperty("dfc-b:lists", &method("lists")).valueSetter = method("lists=")
|
|
37
|
+
registerSemanticProperty("dfc-b:maintainedBy", &method("maintained_by")).valueSetter = method("maintained_by=")
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
Core::SemanticObject.type_registry[SEMANTIC_TYPE] = self
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Class from DFC Business Ontology: #CatalogItem
|
|
4
|
+
require_relative '../core/semantic_object'
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module DfcLinkmlConnector
|
|
8
|
+
module Models
|
|
9
|
+
class CatalogItem < Core::SemanticObject
|
|
10
|
+
SEMANTIC_TYPE = "dfc-b:CatalogItem".freeze
|
|
11
|
+
|
|
12
|
+
# @return [String]
|
|
13
|
+
attr_accessor :extra_availability_time
|
|
14
|
+
|
|
15
|
+
# @return [String]
|
|
16
|
+
attr_accessor :extra_delivery_condition
|
|
17
|
+
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_accessor :sku
|
|
20
|
+
|
|
21
|
+
# @return [Float]
|
|
22
|
+
attr_accessor :stock_limitation
|
|
23
|
+
|
|
24
|
+
# @return [String]
|
|
25
|
+
attr_accessor :listed_in
|
|
26
|
+
|
|
27
|
+
# @return [String]
|
|
28
|
+
attr_accessor :date
|
|
29
|
+
|
|
30
|
+
# @return [String]
|
|
31
|
+
attr_accessor :description
|
|
32
|
+
|
|
33
|
+
# @return [String]
|
|
34
|
+
attr_accessor :name
|
|
35
|
+
|
|
36
|
+
# @return [String]
|
|
37
|
+
attr_accessor :characteristic_of
|
|
38
|
+
|
|
39
|
+
# @return [String]
|
|
40
|
+
attr_accessor :dimension
|
|
41
|
+
|
|
42
|
+
# @return [Organization, String]
|
|
43
|
+
attr_accessor :managed_by
|
|
44
|
+
|
|
45
|
+
# @return [Array<Offer, String>]
|
|
46
|
+
attr_accessor :offered_through
|
|
47
|
+
|
|
48
|
+
# @return [DefinedProduct, String]
|
|
49
|
+
attr_accessor :references
|
|
50
|
+
|
|
51
|
+
# @param semanticId [String]
|
|
52
|
+
# @param extraAvailabilityTime: nil, extraDeliveryCondition: nil, sku: nil, stockLimitation: nil, listedIn: nil, date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, managedBy: nil, offeredThrough: [], references: nil
|
|
53
|
+
def initialize(semanticId, extraAvailabilityTime: nil, extraDeliveryCondition: nil, sku: nil, stockLimitation: nil, listedIn: nil, date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, managedBy: nil, offeredThrough: [], references: nil)
|
|
54
|
+
super(semanticId)
|
|
55
|
+
@extra_availability_time = extraAvailabilityTime
|
|
56
|
+
@extra_delivery_condition = extraDeliveryCondition
|
|
57
|
+
@sku = sku
|
|
58
|
+
@stock_limitation = stockLimitation
|
|
59
|
+
@listed_in = listedIn
|
|
60
|
+
@date = date
|
|
61
|
+
@description = description
|
|
62
|
+
@name = name
|
|
63
|
+
@characteristic_of = characteristicOf
|
|
64
|
+
@dimension = dimension
|
|
65
|
+
@managed_by = managedBy
|
|
66
|
+
@offered_through = offeredThrough
|
|
67
|
+
@references = references
|
|
68
|
+
self.semanticType = "dfc-b:CatalogItem"
|
|
69
|
+
registerSemanticProperty("dfc-b:extraAvailabilityTime", &method("extra_availability_time")).valueSetter = method("extra_availability_time=")
|
|
70
|
+
registerSemanticProperty("dfc-b:extraDeliveryCondition", &method("extra_delivery_condition")).valueSetter = method("extra_delivery_condition=")
|
|
71
|
+
registerSemanticProperty("dfc-b:sku", &method("sku")).valueSetter = method("sku=")
|
|
72
|
+
registerSemanticProperty("dfc-b:stockLimitation", &method("stock_limitation")).valueSetter = method("stock_limitation=")
|
|
73
|
+
registerSemanticProperty("dfc-b:listedIn", &method("listed_in")).valueSetter = method("listed_in=")
|
|
74
|
+
registerSemanticProperty("dfc-b:date", &method("date")).valueSetter = method("date=")
|
|
75
|
+
registerSemanticProperty("dfc-b:description", &method("description")).valueSetter = method("description=")
|
|
76
|
+
registerSemanticProperty("dfc-b:name", &method("name")).valueSetter = method("name=")
|
|
77
|
+
registerSemanticProperty("dfc-b:characteristicOf", &method("characteristic_of")).valueSetter = method("characteristic_of=")
|
|
78
|
+
registerSemanticProperty("dfc-b:hasDimension", &method("dimension")).valueSetter = method("dimension=")
|
|
79
|
+
registerSemanticProperty("dfc-b:managedBy", &method("managed_by")).valueSetter = method("managed_by=")
|
|
80
|
+
registerSemanticProperty("dfc-b:offeredThrough", &method("offered_through")).valueSetter = method("offered_through=")
|
|
81
|
+
registerSemanticProperty("dfc-b:references", &method("references")).valueSetter = method("references=")
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Original DFC v2 API aliases (see config/dfc-original-api.yaml).
|
|
85
|
+
alias_method :product, :references
|
|
86
|
+
alias_method :product=, :references=
|
|
87
|
+
alias_method :offers, :offered_through
|
|
88
|
+
alias_method :offers=, :offered_through=
|
|
89
|
+
|
|
90
|
+
Core::SemanticObject.type_registry[SEMANTIC_TYPE] = self
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Class from DFC Business Ontology: #Certfication
|
|
4
|
+
require_relative '../core/semantic_object'
|
|
5
|
+
require_relative 'what_subject'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
module DfcLinkmlConnector
|
|
9
|
+
module Models
|
|
10
|
+
class Certfication < WhatSubject
|
|
11
|
+
SEMANTIC_TYPE = "dfc-b:Certfication".freeze
|
|
12
|
+
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :certifer_reference
|
|
15
|
+
|
|
16
|
+
# @return [String]
|
|
17
|
+
attr_accessor :certification_score
|
|
18
|
+
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_accessor :operator_id
|
|
21
|
+
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_accessor :certifies
|
|
24
|
+
|
|
25
|
+
# @param semanticId [String]
|
|
26
|
+
# @param date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, certiferReference: nil, certificationScore: nil, operatorId: nil, certifies: nil
|
|
27
|
+
def initialize(semanticId, date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil, certiferReference: nil, certificationScore: nil, operatorId: nil, certifies: nil)
|
|
28
|
+
super(semanticId, date: date, description: description, name: name, characteristicOf: characteristicOf, dimension: dimension)
|
|
29
|
+
@certifer_reference = certiferReference
|
|
30
|
+
@certification_score = certificationScore
|
|
31
|
+
@operator_id = operatorId
|
|
32
|
+
@certifies = certifies
|
|
33
|
+
self.semanticType = "dfc-b:Certfication"
|
|
34
|
+
registerSemanticProperty("dfc-b:certiferReference", &method("certifer_reference")).valueSetter = method("certifer_reference=")
|
|
35
|
+
registerSemanticProperty("dfc-b:certificationScore", &method("certification_score")).valueSetter = method("certification_score=")
|
|
36
|
+
registerSemanticProperty("dfc-b:operatorId", &method("operator_id")).valueSetter = method("operator_id=")
|
|
37
|
+
registerSemanticProperty("dfc-b:certifies", &method("certifies")).valueSetter = method("certifies=")
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
Core::SemanticObject.type_registry[SEMANTIC_TYPE] = self
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Class from DFC Business Ontology: #Collection
|
|
4
|
+
require_relative '../core/semantic_object'
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module DfcLinkmlConnector
|
|
8
|
+
module Models
|
|
9
|
+
class Collection < Core::SemanticObject
|
|
10
|
+
SEMANTIC_TYPE = "dfc-b:Collection".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:Collection"
|
|
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,82 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Class from DFC Business Ontology: #Concept
|
|
4
|
+
require_relative '../core/semantic_object'
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module DfcLinkmlConnector
|
|
8
|
+
module Models
|
|
9
|
+
class Concept < Core::SemanticObject
|
|
10
|
+
SEMANTIC_TYPE = "dfc-b:Concept".freeze
|
|
11
|
+
|
|
12
|
+
# @return [String]
|
|
13
|
+
attr_accessor :certificate_of
|
|
14
|
+
|
|
15
|
+
# @return [String]
|
|
16
|
+
attr_accessor :claim_of
|
|
17
|
+
|
|
18
|
+
# @return [String]
|
|
19
|
+
attr_accessor :container_information_of
|
|
20
|
+
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :geographical_origin_of
|
|
23
|
+
|
|
24
|
+
# @return [String]
|
|
25
|
+
attr_accessor :nature_origin_of
|
|
26
|
+
|
|
27
|
+
# @return [String]
|
|
28
|
+
attr_accessor :part_origin_of
|
|
29
|
+
|
|
30
|
+
# @return [String]
|
|
31
|
+
attr_accessor :type_of
|
|
32
|
+
|
|
33
|
+
# @return [String]
|
|
34
|
+
attr_accessor :date
|
|
35
|
+
|
|
36
|
+
# @return [String]
|
|
37
|
+
attr_accessor :description
|
|
38
|
+
|
|
39
|
+
# @return [String]
|
|
40
|
+
attr_accessor :name
|
|
41
|
+
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_accessor :characteristic_of
|
|
44
|
+
|
|
45
|
+
# @return [String]
|
|
46
|
+
attr_accessor :dimension
|
|
47
|
+
|
|
48
|
+
# @param semanticId [String]
|
|
49
|
+
# @param certificateOf: nil, claimOf: nil, containerInformationOf: nil, geographicalOriginOf: nil, natureOriginOf: nil, partOriginOf: nil, typeOf: nil, date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil
|
|
50
|
+
def initialize(semanticId, certificateOf: nil, claimOf: nil, containerInformationOf: nil, geographicalOriginOf: nil, natureOriginOf: nil, partOriginOf: nil, typeOf: nil, date: nil, description: nil, name: nil, characteristicOf: nil, dimension: nil)
|
|
51
|
+
super(semanticId)
|
|
52
|
+
@certificate_of = certificateOf
|
|
53
|
+
@claim_of = claimOf
|
|
54
|
+
@container_information_of = containerInformationOf
|
|
55
|
+
@geographical_origin_of = geographicalOriginOf
|
|
56
|
+
@nature_origin_of = natureOriginOf
|
|
57
|
+
@part_origin_of = partOriginOf
|
|
58
|
+
@type_of = typeOf
|
|
59
|
+
@date = date
|
|
60
|
+
@description = description
|
|
61
|
+
@name = name
|
|
62
|
+
@characteristic_of = characteristicOf
|
|
63
|
+
@dimension = dimension
|
|
64
|
+
self.semanticType = "dfc-b:Concept"
|
|
65
|
+
registerSemanticProperty("dfc-b:certificateOf", &method("certificate_of")).valueSetter = method("certificate_of=")
|
|
66
|
+
registerSemanticProperty("dfc-b:claimOf", &method("claim_of")).valueSetter = method("claim_of=")
|
|
67
|
+
registerSemanticProperty("dfc-b:containerInformationOf", &method("container_information_of")).valueSetter = method("container_information_of=")
|
|
68
|
+
registerSemanticProperty("dfc-b:geographicalOriginOf", &method("geographical_origin_of")).valueSetter = method("geographical_origin_of=")
|
|
69
|
+
registerSemanticProperty("dfc-b:natureOriginOf", &method("nature_origin_of")).valueSetter = method("nature_origin_of=")
|
|
70
|
+
registerSemanticProperty("dfc-b:partOriginOf", &method("part_origin_of")).valueSetter = method("part_origin_of=")
|
|
71
|
+
registerSemanticProperty("dfc-b:typeOf", &method("type_of")).valueSetter = method("type_of=")
|
|
72
|
+
registerSemanticProperty("dfc-b:date", &method("date")).valueSetter = method("date=")
|
|
73
|
+
registerSemanticProperty("dfc-b:description", &method("description")).valueSetter = method("description=")
|
|
74
|
+
registerSemanticProperty("dfc-b:name", &method("name")).valueSetter = method("name=")
|
|
75
|
+
registerSemanticProperty("dfc-b:characteristicOf", &method("characteristic_of")).valueSetter = method("characteristic_of=")
|
|
76
|
+
registerSemanticProperty("dfc-b:hasDimension", &method("dimension")).valueSetter = method("dimension=")
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
Core::SemanticObject.type_registry[SEMANTIC_TYPE] = self
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Class from DFC Business Ontology: #ConceptScheme
|
|
4
|
+
require_relative '../core/semantic_object'
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
module DfcLinkmlConnector
|
|
8
|
+
module Models
|
|
9
|
+
class ConceptScheme < Core::SemanticObject
|
|
10
|
+
SEMANTIC_TYPE = "dfc-b:ConceptScheme".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:ConceptScheme"
|
|
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
|