text2model 0.1.0__py3-none-any.whl
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.
- text2model/__init__.py +1 -0
- text2model/grammar.mzn +277 -0
- text2model/knowledge_graphs/CSPLib_12.ttl +41 -0
- text2model/knowledge_graphs/CSPLib_14.ttl +51 -0
- text2model/knowledge_graphs/CSPLib_2.ttl +59 -0
- text2model/knowledge_graphs/CSPLib_22.ttl +62 -0
- text2model/knowledge_graphs/CSPLib_28.ttl +28 -0
- text2model/knowledge_graphs/CSPLib_30.ttl +72 -0
- text2model/knowledge_graphs/CSPLib_34.ttl +52 -0
- text2model/knowledge_graphs/CSPLib_39.ttl +51 -0
- text2model/knowledge_graphs/CSPLib_54.ttl +50 -0
- text2model/knowledge_graphs/CSPLib_6.ttl +36 -0
- text2model/knowledge_graphs/CSPLib_8.ttl +53 -0
- text2model/knowledge_graphs/LPWP_128.ttl +79 -0
- text2model/knowledge_graphs/LPWP_232.ttl +95 -0
- text2model/knowledge_graphs/LPWP_53.ttl +58 -0
- text2model/knowledge_graphs/LPWP_66.ttl +52 -0
- text2model/knowledge_graphs/LPWP_85.ttl +95 -0
- text2model/knowledge_graphs/OR_LP_IP_Scheduling_problem_1.ttl +34 -0
- text2model/knowledge_graphs/OR_LP_IP_Scheduling_problem_18.ttl +59 -0
- text2model/knowledge_graphs/OR_LP_IP_Scheduling_problem_2.ttl +43 -0
- text2model/knowledge_graphs/OR_LP_IP_Scheduling_problem_28.ttl +42 -0
- text2model/knowledge_graphs/OR_LP_IP_Scheduling_problem_31.ttl +44 -0
- text2model/knowledge_graphs/OR_LP_IP_Scheduling_problem_4.ttl +48 -0
- text2model/knowledge_graphs/OR_LP_IP_Scheduling_problem_5.ttl +40 -0
- text2model/knowledge_graphs/OR_LP_IP_Scheduling_problem_6.ttl +61 -0
- text2model/knowledge_graphs/OR_LP_IP_Scheduling_problem_8.ttl +54 -0
- text2model/knowledge_graphs/combinatorial_problem_1.ttl +48 -0
- text2model/knowledge_graphs/combinatorial_problem_31.ttl +43 -0
- text2model/knowledge_graphs/combinatorial_problem_32.ttl +39 -0
- text2model/knowledge_graphs/combinatorial_problem_7.ttl +52 -0
- text2model/knowledge_graphs/complexor_AircraftAssignment.ttl +73 -0
- text2model/knowledge_graphs/complexor_AircraftLanding.ttl +53 -0
- text2model/knowledge_graphs/complexor_CFLP.ttl +43 -0
- text2model/knowledge_graphs/complexor_CapacitatedWarehouseLocation.ttl +59 -0
- text2model/knowledge_graphs/complexor_CarSelection.ttl +30 -0
- text2model/knowledge_graphs/complexor_TSP.ttl +52 -0
- text2model/knowledge_graphs/complexor_VRPTW.ttl +67 -0
- text2model/knowledge_graphs/nlp4lp_1.ttl +56 -0
- text2model/knowledge_graphs/nlp4lp_10.ttl +46 -0
- text2model/knowledge_graphs/nlp4lp_11.ttl +57 -0
- text2model/knowledge_graphs/nlp4lp_12.ttl +48 -0
- text2model/knowledge_graphs/nlp4lp_13.ttl +48 -0
- text2model/knowledge_graphs/nlp4lp_14.ttl +82 -0
- text2model/knowledge_graphs/nlp4lp_15.ttl +60 -0
- text2model/knowledge_graphs/nlp4lp_16.ttl +64 -0
- text2model/knowledge_graphs/nlp4lp_17.ttl +72 -0
- text2model/knowledge_graphs/nlp4lp_18.ttl +64 -0
- text2model/knowledge_graphs/nlp4lp_19.ttl +98 -0
- text2model/knowledge_graphs/nlp4lp_2.ttl +103 -0
- text2model/knowledge_graphs/nlp4lp_20.ttl +129 -0
- text2model/knowledge_graphs/nlp4lp_21.ttl +65 -0
- text2model/knowledge_graphs/nlp4lp_22.ttl +72 -0
- text2model/knowledge_graphs/nlp4lp_23.ttl +63 -0
- text2model/knowledge_graphs/nlp4lp_24.ttl +99 -0
- text2model/knowledge_graphs/nlp4lp_25.ttl +77 -0
- text2model/knowledge_graphs/nlp4lp_27.ttl +75 -0
- text2model/knowledge_graphs/nlp4lp_28.ttl +50 -0
- text2model/knowledge_graphs/nlp4lp_29.ttl +63 -0
- text2model/knowledge_graphs/nlp4lp_3.ttl +49 -0
- text2model/knowledge_graphs/nlp4lp_30.ttl +49 -0
- text2model/knowledge_graphs/nlp4lp_31.ttl +35 -0
- text2model/knowledge_graphs/nlp4lp_32.ttl +33 -0
- text2model/knowledge_graphs/nlp4lp_33.ttl +49 -0
- text2model/knowledge_graphs/nlp4lp_34.ttl +67 -0
- text2model/knowledge_graphs/nlp4lp_35.ttl +75 -0
- text2model/knowledge_graphs/nlp4lp_36.ttl +56 -0
- text2model/knowledge_graphs/nlp4lp_37.ttl +52 -0
- text2model/knowledge_graphs/nlp4lp_38.ttl +55 -0
- text2model/knowledge_graphs/nlp4lp_39.ttl +58 -0
- text2model/knowledge_graphs/nlp4lp_4.ttl +64 -0
- text2model/knowledge_graphs/nlp4lp_40.ttl +49 -0
- text2model/knowledge_graphs/nlp4lp_41.ttl +62 -0
- text2model/knowledge_graphs/nlp4lp_42.ttl +49 -0
- text2model/knowledge_graphs/nlp4lp_43.ttl +98 -0
- text2model/knowledge_graphs/nlp4lp_44.ttl +41 -0
- text2model/knowledge_graphs/nlp4lp_45.ttl +56 -0
- text2model/knowledge_graphs/nlp4lp_46.ttl +35 -0
- text2model/knowledge_graphs/nlp4lp_47.ttl +68 -0
- text2model/knowledge_graphs/nlp4lp_48.ttl +74 -0
- text2model/knowledge_graphs/nlp4lp_49.ttl +66 -0
- text2model/knowledge_graphs/nlp4lp_5.ttl +69 -0
- text2model/knowledge_graphs/nlp4lp_50.ttl +51 -0
- text2model/knowledge_graphs/nlp4lp_51.ttl +53 -0
- text2model/knowledge_graphs/nlp4lp_52.ttl +51 -0
- text2model/knowledge_graphs/nlp4lp_53.ttl +55 -0
- text2model/knowledge_graphs/nlp4lp_54.ttl +74 -0
- text2model/knowledge_graphs/nlp4lp_55.ttl +50 -0
- text2model/knowledge_graphs/nlp4lp_56.ttl +67 -0
- text2model/knowledge_graphs/nlp4lp_57.ttl +59 -0
- text2model/knowledge_graphs/nlp4lp_58.ttl +65 -0
- text2model/knowledge_graphs/nlp4lp_6.ttl +63 -0
- text2model/knowledge_graphs/nlp4lp_60.ttl +36 -0
- text2model/knowledge_graphs/nlp4lp_61.ttl +83 -0
- text2model/knowledge_graphs/nlp4lp_62.ttl +44 -0
- text2model/knowledge_graphs/nlp4lp_63.ttl +49 -0
- text2model/knowledge_graphs/nlp4lp_64.ttl +41 -0
- text2model/knowledge_graphs/nlp4lp_65.ttl +78 -0
- text2model/knowledge_graphs/nlp4lp_66.ttl +51 -0
- text2model/knowledge_graphs/nlp4lp_67.ttl +40 -0
- text2model/knowledge_graphs/nlp4lp_7.ttl +53 -0
- text2model/knowledge_graphs/nlp4lp_8.ttl +51 -0
- text2model/knowledge_graphs/nlp4lp_9.ttl +58 -0
- text2model/knowledge_graphs/non_linear_problem_10.ttl +57 -0
- text2model/knowledge_graphs/non_linear_problem_15.ttl +55 -0
- text2model/knowledge_graphs/non_linear_problem_23.ttl +42 -0
- text2model/knowledge_graphs/non_linear_problem_9.ttl +61 -0
- text2model/knowledge_graphs/puzzles_problem_1.ttl +64 -0
- text2model/knowledge_graphs/puzzles_problem_11.ttl +65 -0
- text2model/knowledge_graphs/puzzles_problem_12.ttl +79 -0
- text2model/knowledge_graphs/puzzles_problem_13.ttl +50 -0
- text2model/knowledge_graphs/puzzles_problem_31.ttl +62 -0
- text2model/main.py +771 -0
- text2model/prompts/assembler_prompt.txt +104 -0
- text2model/prompts/code_stitching_prompt.txt +49 -0
- text2model/prompts/code_validation_prompt.txt +36 -0
- text2model/prompts/constraint_generation_prompt.txt +35 -0
- text2model/prompts/cot_prompt.txt +45 -0
- text2model/prompts/global_constraint_prompts/all_different_prompt.txt +67 -0
- text2model/prompts/global_constraint_prompts/count_prompt.txt +75 -0
- text2model/prompts/global_constraint_prompts/cumulative_prompt.txt +88 -0
- text2model/prompts/global_constraint_prompts/global_cardinality_prompt.txt +76 -0
- text2model/prompts/global_constraint_prompts/increasing_prompt.txt +81 -0
- text2model/prompts/global_constraint_prompts/lex_less_prompt.txt +68 -0
- text2model/prompts/grammar_validation_prompt.txt +18 -0
- text2model/prompts/kg_code_generation_prompt.txt +20 -0
- text2model/prompts/kg_generation_prompt.txt +40 -0
- text2model/prompts/objective_generation_prompt.txt +34 -0
- text2model/prompts/parameter_and_variable_generation_prompt.txt +35 -0
- text2model/utils.py +350 -0
- text2model-0.1.0.dist-info/METADATA +221 -0
- text2model-0.1.0.dist-info/RECORD +135 -0
- text2model-0.1.0.dist-info/WHEEL +5 -0
- text2model-0.1.0.dist-info/entry_points.txt +2 -0
- text2model-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
2
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
3
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
4
|
+
@prefix opt: <http://www.example.org/optimization#> .
|
|
5
|
+
|
|
6
|
+
opt:bottle_distribution
|
|
7
|
+
rdf:type opt:OptimizationProblem ;
|
|
8
|
+
opt:hasParameter opt:n, opt:b, opt:t, opt:num_people ;
|
|
9
|
+
opt:hasVariable opt:allocation ;
|
|
10
|
+
opt:hasConstraint opt:equal_bottles, opt:equal_liquid, opt:lexicographical_order ;
|
|
11
|
+
opt:hasObjective opt:equal_distribution .
|
|
12
|
+
|
|
13
|
+
opt:n
|
|
14
|
+
rdf:type opt:Parameter ;
|
|
15
|
+
rdfs:label "n" ;
|
|
16
|
+
rdfs:comment "Number of bottle types" ;
|
|
17
|
+
rdfs:range xsd:integer .
|
|
18
|
+
|
|
19
|
+
opt:b
|
|
20
|
+
rdf:type opt:Parameter ;
|
|
21
|
+
rdfs:label "b" ;
|
|
22
|
+
rdfs:comment "Number of bottles of each type" ;
|
|
23
|
+
rdfs:range xsd:integer .
|
|
24
|
+
|
|
25
|
+
opt:t
|
|
26
|
+
rdf:type opt:Parameter ;
|
|
27
|
+
rdfs:label "t" ;
|
|
28
|
+
rdfs:comment "Number of bottles with each type of fill amount" ;
|
|
29
|
+
rdfs:range xsd:integer .
|
|
30
|
+
|
|
31
|
+
opt:num_people
|
|
32
|
+
rdf:type opt:Parameter ;
|
|
33
|
+
rdfs:label "num_people" ;
|
|
34
|
+
rdfs:comment "Number of people" ;
|
|
35
|
+
rdfs:range xsd:integer .
|
|
36
|
+
|
|
37
|
+
opt:allocation
|
|
38
|
+
rdf:type opt:Variable ;
|
|
39
|
+
rdfs:label "allocation" ;
|
|
40
|
+
rdfs:comment "Allocation of bottles to each person" ;
|
|
41
|
+
rdfs:range xsd:integer .
|
|
42
|
+
|
|
43
|
+
opt:equal_bottles
|
|
44
|
+
rdf:type opt:Constraint ;
|
|
45
|
+
rdfs:label "equal_bottles" ;
|
|
46
|
+
rdfs:comment "Each person gets the same number of bottles" ;
|
|
47
|
+
opt:relatesTo opt:allocation .
|
|
48
|
+
|
|
49
|
+
opt:equal_liquid
|
|
50
|
+
rdf:type opt:Constraint ;
|
|
51
|
+
rdfs:label "equal_liquid" ;
|
|
52
|
+
rdfs:comment "Each person gets the same amount of liquid" ;
|
|
53
|
+
opt:relatesTo opt:allocation .
|
|
54
|
+
|
|
55
|
+
opt:lexicographical_order
|
|
56
|
+
rdf:type opt:Constraint ;
|
|
57
|
+
rdfs:label "lexicographical_order" ;
|
|
58
|
+
rdfs:comment "Allocations should be in lexicographical order" ;
|
|
59
|
+
opt:relatesTo opt:allocation .
|
|
60
|
+
|
|
61
|
+
opt:equal_distribution
|
|
62
|
+
rdf:type opt:Objective ;
|
|
63
|
+
rdfs:label "equal_distribution" ;
|
|
64
|
+
rdfs:comment "Distribute bottles such that each person gets the same number of bottles and the same amount of liquid" ;
|
|
65
|
+
opt:relatesTo opt:allocation .
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
2
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
3
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
4
|
+
@prefix opt: <http://www.example.org/optimization#> .
|
|
5
|
+
|
|
6
|
+
opt:area1 a rdf:Property ;
|
|
7
|
+
rdfs:label "Area of the first rectangle" ;
|
|
8
|
+
rdfs:range xsd:decimal ;
|
|
9
|
+
rdfs:domain opt:Rectangle .
|
|
10
|
+
|
|
11
|
+
opt:area2 a rdf:Property ;
|
|
12
|
+
rdfs:label "Area of the second rectangle" ;
|
|
13
|
+
rdfs:range xsd:decimal ;
|
|
14
|
+
rdfs:domain opt:Rectangle .
|
|
15
|
+
|
|
16
|
+
opt:area3 a rdf:Property ;
|
|
17
|
+
rdfs:label "Area of the third rectangle" ;
|
|
18
|
+
rdfs:range xsd:decimal ;
|
|
19
|
+
rdfs:domain opt:Rectangle .
|
|
20
|
+
|
|
21
|
+
opt:Rectangle a rdfs:Class ;
|
|
22
|
+
rdfs:label "Rectangle" ;
|
|
23
|
+
rdfs:subClassOf opt:Shape .
|
|
24
|
+
|
|
25
|
+
opt:Shape a rdfs:Class ;
|
|
26
|
+
rdfs:label "Shape" .
|
|
27
|
+
|
|
28
|
+
opt:OptimizationProblem a rdfs:Class ;
|
|
29
|
+
rdfs:label "Optimization Problem" ;
|
|
30
|
+
rdfs:subClassOf opt:Problem .
|
|
31
|
+
|
|
32
|
+
opt:Problem a rdfs:Class ;
|
|
33
|
+
rdfs:label "Problem" .
|
|
34
|
+
|
|
35
|
+
opt:problem1 a opt:OptimizationProblem ;
|
|
36
|
+
opt:hasParameter opt:area1, opt:area2, opt:area3 ;
|
|
37
|
+
opt:hasVariable opt:x, opt:y, opt:len, opt:height ;
|
|
38
|
+
opt:hasConstraint opt:constraint1, opt:constraint2, opt:constraint3 ;
|
|
39
|
+
opt:hasObjective opt:objective1 .
|
|
40
|
+
|
|
41
|
+
opt:x a rdf:Property ;
|
|
42
|
+
rdfs:label "Length of the large rectangle" ;
|
|
43
|
+
rdfs:range xsd:decimal ;
|
|
44
|
+
rdfs:domain opt:Rectangle .
|
|
45
|
+
|
|
46
|
+
opt:y a rdf:Property ;
|
|
47
|
+
rdfs:label "Width of the large rectangle" ;
|
|
48
|
+
rdfs:range xsd:decimal ;
|
|
49
|
+
rdfs:domain opt:Rectangle .
|
|
50
|
+
|
|
51
|
+
opt:len a rdf:Property ;
|
|
52
|
+
rdfs:label "Length of the smaller rectangles" ;
|
|
53
|
+
rdfs:range xsd:decimal ;
|
|
54
|
+
rdfs:domain opt:Rectangle .
|
|
55
|
+
|
|
56
|
+
opt:height a rdf:Property ;
|
|
57
|
+
rdfs:label "Height of the smaller rectangles" ;
|
|
58
|
+
rdfs:range xsd:decimal ;
|
|
59
|
+
rdfs:domain opt:Rectangle .
|
|
60
|
+
|
|
61
|
+
opt:constraint1 a opt:Constraint ;
|
|
62
|
+
rdfs:label "Area of rectangle 1 is 13" ;
|
|
63
|
+
opt:hasVariable opt:area1 ;
|
|
64
|
+
opt:hasValue "13"^^xsd:decimal .
|
|
65
|
+
|
|
66
|
+
opt:constraint2 a opt:Constraint ;
|
|
67
|
+
rdfs:label "Area of rectangle 2 is 39" ;
|
|
68
|
+
opt:hasVariable opt:area2 ;
|
|
69
|
+
opt:hasValue "39"^^xsd:decimal .
|
|
70
|
+
|
|
71
|
+
opt:constraint3 a opt:Constraint ;
|
|
72
|
+
rdfs:label "Area of rectangle 3 is 16" ;
|
|
73
|
+
opt:hasVariable opt:area3 ;
|
|
74
|
+
opt:hasValue "16"^^xsd:decimal .
|
|
75
|
+
|
|
76
|
+
opt:objective1 a opt:Objective ;
|
|
77
|
+
rdfs:label "Find the area of the fourth rectangle" ;
|
|
78
|
+
opt:hasVariable opt:area4 ;
|
|
79
|
+
opt:isTypeOf opt:Maximization .
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
2
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
3
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
4
|
+
@prefix : <http://example.org/> .
|
|
5
|
+
|
|
6
|
+
:puzzle a rdfs:Class ;
|
|
7
|
+
rdfs:label "Hidato puzzle" ;
|
|
8
|
+
rdfs:comment "A logic puzzle game where a grid of cells is given, some of which are filled with numbers." .
|
|
9
|
+
|
|
10
|
+
:rows a rdf:Property ;
|
|
11
|
+
rdfs:label "rows" ;
|
|
12
|
+
rdfs:comment "Number of rows in the grid" ;
|
|
13
|
+
rdfs:domain :puzzle ;
|
|
14
|
+
rdfs:range xsd:integer .
|
|
15
|
+
|
|
16
|
+
:columns a rdf:Property ;
|
|
17
|
+
rdfs:label "columns" ;
|
|
18
|
+
rdfs:comment "Number of columns in the grid" ;
|
|
19
|
+
rdfs:domain :puzzle ;
|
|
20
|
+
rdfs:range xsd:integer .
|
|
21
|
+
|
|
22
|
+
:grid a rdf:Property ;
|
|
23
|
+
rdfs:label "grid" ;
|
|
24
|
+
rdfs:comment "Hidato puzzle grid where 0 represents an empty cell and a positive integer represents a filled cell" ;
|
|
25
|
+
rdfs:domain :puzzle ;
|
|
26
|
+
rdfs:range xsd:array .
|
|
27
|
+
|
|
28
|
+
:startNumber a rdf:Property ;
|
|
29
|
+
rdfs:label "start number" ;
|
|
30
|
+
rdfs:comment "The number from which the path starts" ;
|
|
31
|
+
rdfs:domain :puzzle ;
|
|
32
|
+
rdfs:range xsd:integer .
|
|
33
|
+
|
|
34
|
+
:endNumber a rdf:Property ;
|
|
35
|
+
rdfs:label "end number" ;
|
|
36
|
+
rdfs:comment "The number at which the path ends" ;
|
|
37
|
+
rdfs:domain :puzzle ;
|
|
38
|
+
rdfs:range xsd:integer .
|
|
39
|
+
|
|
40
|
+
:path a rdf:Property ;
|
|
41
|
+
rdfs:label "path" ;
|
|
42
|
+
rdfs:comment "The path from the start number to the end number, where the path is a sequence of horizontally, vertically, or diagonally adjacent cells" ;
|
|
43
|
+
rdfs:domain :puzzle ;
|
|
44
|
+
rdfs:range xsd:array .
|
|
45
|
+
|
|
46
|
+
:objective a rdf:Property ;
|
|
47
|
+
rdfs:label "objective" ;
|
|
48
|
+
rdfs:comment "The goal is to fill the remaining cells with consecutive numbers that will form a path from the start number to the end number" ;
|
|
49
|
+
rdfs:domain :puzzle ;
|
|
50
|
+
rdfs:range xsd:string .
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
2
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
3
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
4
|
+
@prefix fillapix: <http://www.example.org/fillapix#> .
|
|
5
|
+
|
|
6
|
+
fillapix:Grid a rdfs:Class ;
|
|
7
|
+
rdfs:label "Grid" ;
|
|
8
|
+
rdfs:comment "A grid of the Fill-a-Pix puzzle" .
|
|
9
|
+
|
|
10
|
+
fillapix:gridSize a rdf:Property ;
|
|
11
|
+
rdfs:label "grid size" ;
|
|
12
|
+
rdfs:comment "Size of the grid (number of rows and columns)" ;
|
|
13
|
+
rdfs:domain fillapix:Grid ;
|
|
14
|
+
rdfs:range xsd:integer .
|
|
15
|
+
|
|
16
|
+
fillapix:Clue a rdfs:Class ;
|
|
17
|
+
rdfs:label "Clue" ;
|
|
18
|
+
rdfs:comment "A clue in the Fill-a-Pix puzzle" .
|
|
19
|
+
|
|
20
|
+
fillapix:clueValue a rdf:Property ;
|
|
21
|
+
rdfs:label "clue value" ;
|
|
22
|
+
rdfs:comment "Value of the clue indicating the number of painted squares" ;
|
|
23
|
+
rdfs:domain fillapix:Clue ;
|
|
24
|
+
rdfs:range xsd:integer .
|
|
25
|
+
|
|
26
|
+
fillapix:Square a rdfs:Class ;
|
|
27
|
+
rdfs:label "Square" ;
|
|
28
|
+
rdfs:comment "A square in the Fill-a-Pix puzzle grid" .
|
|
29
|
+
|
|
30
|
+
fillapix:isPainted a rdf:Property ;
|
|
31
|
+
rdfs:label "is painted" ;
|
|
32
|
+
rdfs:comment "Indicates if a square is painted or not" ;
|
|
33
|
+
rdfs:domain fillapix:Square ;
|
|
34
|
+
rdfs:range xsd:boolean .
|
|
35
|
+
|
|
36
|
+
fillapix:hasClue a rdf:Property ;
|
|
37
|
+
rdfs:label "has clue" ;
|
|
38
|
+
rdfs:comment "Indicates if a square has a clue or not" ;
|
|
39
|
+
rdfs:domain fillapix:Square ;
|
|
40
|
+
rdfs:range fillapix:Clue .
|
|
41
|
+
|
|
42
|
+
fillapix:OptimizationProblem a rdfs:Class ;
|
|
43
|
+
rdfs:label "Optimization Problem" ;
|
|
44
|
+
rdfs:comment "The Fill-a-Pix optimization problem" .
|
|
45
|
+
|
|
46
|
+
fillapix:hasGrid a rdf:Property ;
|
|
47
|
+
rdfs:label "has grid" ;
|
|
48
|
+
rdfs:comment "The grid associated with the optimization problem" ;
|
|
49
|
+
rdfs:domain fillapix:OptimizationProblem ;
|
|
50
|
+
rdfs:range fillapix:Grid .
|
|
51
|
+
|
|
52
|
+
fillapix:hasObjective a rdf:Property ;
|
|
53
|
+
rdfs:label "has objective" ;
|
|
54
|
+
rdfs:comment "The objective of the optimization problem" ;
|
|
55
|
+
rdfs:domain fillapix:OptimizationProblem ;
|
|
56
|
+
rdfs:range rdfs:Literal .
|
|
57
|
+
|
|
58
|
+
fillapix:hasConstraint a rdf:Property ;
|
|
59
|
+
rdfs:label "has constraint" ;
|
|
60
|
+
rdfs:comment "The constraints of the optimization problem" ;
|
|
61
|
+
rdfs:domain fillapix:OptimizationProblem ;
|
|
62
|
+
rdfs:range rdfs:Literal .
|