@littlebigbrain/create 0.1.0 → 0.3.0
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.
- package/README.md +6 -2
- package/lib/create.mjs +33 -5
- package/package.json +1 -1
- package/templates/_shared/testing.ts +53 -9
- package/templates/documents-link/README.md +9 -7
- package/templates/documents-link/workflow.test.ts +28 -1
- package/templates/documents-link/workflow.ts +24 -14
- package/templates/documents-map/README.md +212 -0
- package/templates/documents-map/map.ts +1135 -0
- package/templates/documents-map/samples/ausstattungsliste.pdf +76 -0
- package/templates/documents-map/samples/baubeschreibung.pdf +54 -0
- package/templates/documents-map/samples/expected.json +50 -0
- package/templates/documents-map/samples/pages/raumblaetter.json +1580 -0
- package/templates/documents-map/samples/raumblaetter.pdf +109 -0
- package/templates/documents-map/samples/trace.json +613 -0
- package/templates/documents-map/samples.ts +182 -0
- package/templates/documents-map/workflow.test.ts +770 -0
- package/templates/documents-map/workflow.ts +1199 -0
- package/templates/link/README.md +203 -0
- package/templates/link/candidates.ts +432 -0
- package/templates/link/decide.test.ts +368 -0
- package/templates/link/decide.ts +340 -0
- package/templates/link/fixture.ts +727 -0
- package/templates/link/grade-run.ts +53 -0
- package/templates/link/grade.test.ts +113 -0
- package/templates/link/grade.ts +335 -0
- package/templates/link/items.ts +333 -0
- package/templates/link/names.test.ts +260 -0
- package/templates/link/names.ts +590 -0
- package/templates/link/reads.ts +302 -0
- package/templates/link/samples/gold.json +108 -0
- package/templates/link/samples/records.json +48 -0
- package/templates/link/samples.ts +64 -0
- package/templates/link/settings.ts +162 -0
- package/templates/link/setup.ts +18 -0
- package/templates/link/source-turn.ts +894 -0
- package/templates/link/sources/records.ts +429 -0
- package/templates/link/things-turn.ts +984 -0
- package/templates/link/things.test.ts +204 -0
- package/templates/link/things.ts +426 -0
- package/templates/link/try.ts +28 -0
- package/templates/link/worker.ts +24 -0
- package/templates/link/workflow.test.ts +484 -0
- package/templates/link/workflow.ts +202 -0
- package/templates/ontology-fit/workflow.test.ts +7 -1
- package/templates/ontology-fit/workflow.ts +5 -2
- package/templates/review/README.md +158 -0
- package/templates/review/decision.ts +483 -0
- package/templates/review/samples/expected.json +37 -0
- package/templates/review/samples/proposals.json +35 -0
- package/templates/review/samples.ts +154 -0
- package/templates/review/workflow.test.ts +438 -0
- package/templates/review/workflow.ts +459 -0
- package/templates/values-extract/workflow.test.ts +24 -1
- package/templates/values-extract/workflow.ts +11 -3
- package/templates/versions.json +1 -1
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
%PDF-1.4
|
|
2
|
+
1 0 obj
|
|
3
|
+
<< /Type /Catalog /Pages 2 0 R >>
|
|
4
|
+
endobj
|
|
5
|
+
2 0 obj
|
|
6
|
+
<< /Type /Pages /Kids [7 0 R] /Count 1 >>
|
|
7
|
+
endobj
|
|
8
|
+
3 0 obj
|
|
9
|
+
<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica /Encoding /WinAnsiEncoding >>
|
|
10
|
+
endobj
|
|
11
|
+
4 0 obj
|
|
12
|
+
<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica-Bold /Encoding /WinAnsiEncoding >>
|
|
13
|
+
endobj
|
|
14
|
+
5 0 obj
|
|
15
|
+
<< /Title (Ausstattungsliste) /Producer (make-samples.mjs) >>
|
|
16
|
+
endobj
|
|
17
|
+
6 0 obj
|
|
18
|
+
<< /Length 2242 >>
|
|
19
|
+
stream
|
|
20
|
+
0.35 g BT /F1 8 Tf 1 0 0 1 72 806 Tm (Neubau Grundschule Musterstadt) Tj ET 0 g
|
|
21
|
+
0.6 G 0.5 w 72 798 m 523 798 l S 0 G
|
|
22
|
+
BT /F2 16 Tf 1 0 0 1 72 760 Tm (Ausstattungsliste) Tj ET
|
|
23
|
+
BT /F1 10 Tf 1 0 0 1 72 740 Tm (Ausstattung der R\344ume. Die Raumbl\344tter nennen die Positionen dieser Liste.) Tj ET
|
|
24
|
+
BT /F2 10 Tf 1 0 0 1 74.23 712 Tm (Pos.) Tj ET
|
|
25
|
+
BT /F2 10 Tf 1 0 0 1 101.35 712 Tm (Bezeichnung) Tj ET
|
|
26
|
+
0.6 G 0.5 w 72 707 m 523 707 l S 0 G
|
|
27
|
+
BT /F2 10 Tf 1 0 0 1 101.35 690 Tm (Sanit\344r) Tj ET
|
|
28
|
+
BT /F1 10 Tf 1 0 0 1 72 675 Tm (S 1.1) Tj ET
|
|
29
|
+
BT /F1 10 Tf 1 0 0 1 101.35 675 Tm (Waschtisch, Keramik, ca. 55x45 cm, mit Einhebelmischer) Tj ET
|
|
30
|
+
BT /F1 10 Tf 1 0 0 1 72 660 Tm (S 1.2) Tj ET
|
|
31
|
+
BT /F1 10 Tf 1 0 0 1 101.35 660 Tm (WC, wandh\344ngend, mit Unterputz-Sp\374lkasten) Tj ET
|
|
32
|
+
BT /F1 10 Tf 1 0 0 1 72 645 Tm (S 1.3) Tj ET
|
|
33
|
+
BT /F1 10 Tf 1 0 0 1 101.35 645 Tm (Urinal, Keramik, mit Sp\374lsteuerung) Tj ET
|
|
34
|
+
BT /F1 10 Tf 1 0 0 1 72 630 Tm (S 2.1) Tj ET
|
|
35
|
+
BT /F1 10 Tf 1 0 0 1 101.35 630 Tm (Spiegel, Kristallglas, 60x45 cm) Tj ET
|
|
36
|
+
BT /F1 10 Tf 1 0 0 1 72 615 Tm (S 2.2) Tj ET
|
|
37
|
+
BT /F1 10 Tf 1 0 0 1 101.35 615 Tm (Seifenspender, Edelstahl, 0,5 l) Tj ET
|
|
38
|
+
BT /F2 10 Tf 1 0 0 1 101.35 594 Tm (M\366bel) Tj ET
|
|
39
|
+
BT /F1 10 Tf 1 0 0 1 80.9 579 Tm (T 1) Tj ET
|
|
40
|
+
BT /F1 10 Tf 1 0 0 1 101.35 579 Tm (Einzeltisch, 70x50 cm, h\366henverstellbar) Tj ET
|
|
41
|
+
BT /F1 10 Tf 1 0 0 1 80.9 564 Tm (T 2) Tj ET
|
|
42
|
+
BT /F1 10 Tf 1 0 0 1 101.35 564 Tm (Lehrertisch, 140x70 cm) Tj ET
|
|
43
|
+
BT /F1 10 Tf 1 0 0 1 80.9 549 Tm (T 3) Tj ET
|
|
44
|
+
BT /F1 10 Tf 1 0 0 1 101.35 549 Tm (Sch\374lerstuhl, Kunststoff, Gr\366\337e 5) Tj ET
|
|
45
|
+
BT /F2 10 Tf 1 0 0 1 101.35 528 Tm (Leuchten) Tj ET
|
|
46
|
+
BT /F1 10 Tf 1 0 0 1 81.45 513 Tm (L 1) Tj ET
|
|
47
|
+
BT /F1 10 Tf 1 0 0 1 101.35 513 Tm (Wandleuchte LED, 12 W) Tj ET
|
|
48
|
+
BT /F1 10 Tf 1 0 0 1 81.45 498 Tm (L 2) Tj ET
|
|
49
|
+
BT /F1 10 Tf 1 0 0 1 101.35 498 Tm (Deckenleuchte LED, 36 W, dimmbar) Tj ET
|
|
50
|
+
BT /F1 10 Tf 1 0 0 1 81.45 483 Tm (L 3) Tj ET
|
|
51
|
+
BT /F1 10 Tf 1 0 0 1 101.35 483 Tm (Sicherheitsleuchte mit Einzelbatterie) Tj ET
|
|
52
|
+
BT /F2 10 Tf 1 0 0 1 101.35 462 Tm (Tafeln) Tj ET
|
|
53
|
+
BT /F1 10 Tf 1 0 0 1 77.57 447 Tm (W 1) Tj ET
|
|
54
|
+
BT /F1 10 Tf 1 0 0 1 101.35 447 Tm (Wandtafel, Klapptafel, 200x100 cm) Tj ET
|
|
55
|
+
0.6 G 0.5 w 72 52 m 523 52 l S 0 G
|
|
56
|
+
0.35 g BT /F1 8 Tf 1 0 0 1 476.3 40 Tm (Seite 1 von 1) Tj ET 0 g
|
|
57
|
+
endstream
|
|
58
|
+
endobj
|
|
59
|
+
7 0 obj
|
|
60
|
+
<< /Type /Page /Parent 2 0 R /MediaBox [0 0 595 842] /Resources << /Font << /F1 3 0 R /F2 4 0 R >> >> /Contents 6 0 R >>
|
|
61
|
+
endobj
|
|
62
|
+
xref
|
|
63
|
+
0 8
|
|
64
|
+
0000000000 65535 f
|
|
65
|
+
0000000009 00000 n
|
|
66
|
+
0000000058 00000 n
|
|
67
|
+
0000000115 00000 n
|
|
68
|
+
0000000212 00000 n
|
|
69
|
+
0000000314 00000 n
|
|
70
|
+
0000000391 00000 n
|
|
71
|
+
0000002684 00000 n
|
|
72
|
+
trailer
|
|
73
|
+
<< /Size 8 /Root 1 0 R /Info 5 0 R /ID [<913c85a40204b42b73736e88aa12837b> <913c85a40204b42b73736e88aa12837b>] >>
|
|
74
|
+
startxref
|
|
75
|
+
2820
|
|
76
|
+
%%EOF
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
%PDF-1.4
|
|
2
|
+
1 0 obj
|
|
3
|
+
<< /Type /Catalog /Pages 2 0 R >>
|
|
4
|
+
endobj
|
|
5
|
+
2 0 obj
|
|
6
|
+
<< /Type /Pages /Kids [7 0 R] /Count 1 >>
|
|
7
|
+
endobj
|
|
8
|
+
3 0 obj
|
|
9
|
+
<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica /Encoding /WinAnsiEncoding >>
|
|
10
|
+
endobj
|
|
11
|
+
4 0 obj
|
|
12
|
+
<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica-Bold /Encoding /WinAnsiEncoding >>
|
|
13
|
+
endobj
|
|
14
|
+
5 0 obj
|
|
15
|
+
<< /Title (Baubeschreibung) /Producer (make-samples.mjs) >>
|
|
16
|
+
endobj
|
|
17
|
+
6 0 obj
|
|
18
|
+
<< /Length 1230 >>
|
|
19
|
+
stream
|
|
20
|
+
0.35 g BT /F1 8 Tf 1 0 0 1 72 806 Tm (Neubau Grundschule Musterstadt) Tj ET 0 g
|
|
21
|
+
0.6 G 0.5 w 72 798 m 523 798 l S 0 G
|
|
22
|
+
BT /F2 16 Tf 1 0 0 1 72 760 Tm (Baubeschreibung) Tj ET
|
|
23
|
+
BT /F2 12 Tf 1 0 0 1 72 730 Tm (3 Ausbau) Tj ET
|
|
24
|
+
BT /F2 11 Tf 1 0 0 1 72 708 Tm (3.1 Bodenbel\344ge) Tj ET
|
|
25
|
+
BT /F1 10 Tf 1 0 0 1 72 692 Tm (Klassenr\344ume und Flure erhalten Linoleum, 2,5 mm, vollfl\344chig auf schwimmendem Estrich geklebt.) Tj ET
|
|
26
|
+
BT /F1 10 Tf 1 0 0 1 72 679 Tm (Sanit\344rr\344ume erhalten rutschhemmende Bodenfliesen aus Feinsteinzeug.) Tj ET
|
|
27
|
+
BT /F2 11 Tf 1 0 0 1 72 654 Tm (3.2 Sanit\344robjekte) Tj ET
|
|
28
|
+
BT /F1 10 Tf 1 0 0 1 72 638 Tm (Waschtische, WCs und Urinale sind aus wei\337er Sanit\344rkeramik, die Armaturen sind wassersparend.) Tj ET
|
|
29
|
+
BT /F1 10 Tf 1 0 0 1 72 625 Tm (Die einzelnen Objekte nennt die Ausstattungsliste.) Tj ET
|
|
30
|
+
BT /F2 11 Tf 1 0 0 1 72 600 Tm (3.3 Beleuchtung) Tj ET
|
|
31
|
+
BT /F1 10 Tf 1 0 0 1 72 584 Tm (Alle R\344ume erhalten LED-Leuchten. Die Leuchten der Klassenr\344ume sind tageslichtabh\344ngig) Tj ET
|
|
32
|
+
BT /F1 10 Tf 1 0 0 1 72 571 Tm (dimmbar, Flure und Treppen erhalten Sicherheitsleuchten mit Einzelbatterie.) Tj ET
|
|
33
|
+
0.6 G 0.5 w 72 52 m 523 52 l S 0 G
|
|
34
|
+
0.35 g BT /F1 8 Tf 1 0 0 1 476.3 40 Tm (Seite 1 von 1) Tj ET 0 g
|
|
35
|
+
endstream
|
|
36
|
+
endobj
|
|
37
|
+
7 0 obj
|
|
38
|
+
<< /Type /Page /Parent 2 0 R /MediaBox [0 0 595 842] /Resources << /Font << /F1 3 0 R /F2 4 0 R >> >> /Contents 6 0 R >>
|
|
39
|
+
endobj
|
|
40
|
+
xref
|
|
41
|
+
0 8
|
|
42
|
+
0000000000 65535 f
|
|
43
|
+
0000000009 00000 n
|
|
44
|
+
0000000058 00000 n
|
|
45
|
+
0000000115 00000 n
|
|
46
|
+
0000000212 00000 n
|
|
47
|
+
0000000314 00000 n
|
|
48
|
+
0000000389 00000 n
|
|
49
|
+
0000001670 00000 n
|
|
50
|
+
trailer
|
|
51
|
+
<< /Size 8 /Root 1 0 R /Info 5 0 R /ID [<075a00f08359cf2795e2bcdfc8ab56d3> <075a00f08359cf2795e2bcdfc8ab56d3>] >>
|
|
52
|
+
startxref
|
|
53
|
+
1806
|
|
54
|
+
%%EOF
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"about": [
|
|
3
|
+
"The answer key for the documents-map samples: the proposals a correct run makes from trace.json on a graph whose ontology is sampleOntology of samples.ts (Room, Equipment, SpecSection; HAS_EQUIPMENT from Room to Equipment, SPECIFIED_IN from Room to SpecSection) and that holds no instance of them yet.",
|
|
4
|
+
"All text is invented. Entries are named by their document and identifier; a room is a page entry made from the room sheet's own number in the head of its page.",
|
|
5
|
+
"instances: each entry a link needs is a new instance of its class, proposed as four statements: its rdf:type, its rdfs:label, its identifier, and the DENOTES link from its entry (a DocEntry, or the DocMention of a room number).",
|
|
6
|
+
"facts: each link of the trace is one statement from the room of its page to the instance of the entry it names, 15 in all. A correct run makes these 15 facts and no other: 75 proposals with the 60 statements of the instances.",
|
|
7
|
+
"leave_out: what a correct run does not propose."
|
|
8
|
+
],
|
|
9
|
+
"instances": [
|
|
10
|
+
{ "document": "raumblaetter.pdf", "identifier": "0.12", "class": "Room", "from": "the head of page 1" },
|
|
11
|
+
{ "document": "raumblaetter.pdf", "identifier": "0.14", "class": "Room", "from": "the head of page 2" },
|
|
12
|
+
{ "document": "ausstattungsliste.pdf", "identifier": "S 1.1", "class": "Equipment" },
|
|
13
|
+
{ "document": "ausstattungsliste.pdf", "identifier": "S 1.2", "class": "Equipment" },
|
|
14
|
+
{ "document": "ausstattungsliste.pdf", "identifier": "S 2.1", "class": "Equipment" },
|
|
15
|
+
{ "document": "ausstattungsliste.pdf", "identifier": "S 2.2", "class": "Equipment" },
|
|
16
|
+
{ "document": "ausstattungsliste.pdf", "identifier": "T 1", "class": "Equipment" },
|
|
17
|
+
{ "document": "ausstattungsliste.pdf", "identifier": "T 2", "class": "Equipment" },
|
|
18
|
+
{ "document": "ausstattungsliste.pdf", "identifier": "T 3", "class": "Equipment" },
|
|
19
|
+
{ "document": "ausstattungsliste.pdf", "identifier": "L 1", "class": "Equipment" },
|
|
20
|
+
{ "document": "ausstattungsliste.pdf", "identifier": "L 2", "class": "Equipment" },
|
|
21
|
+
{ "document": "ausstattungsliste.pdf", "identifier": "L 3", "class": "Equipment" },
|
|
22
|
+
{ "document": "ausstattungsliste.pdf", "identifier": "W 1", "class": "Equipment" },
|
|
23
|
+
{ "document": "baubeschreibung.pdf", "identifier": "3.1", "class": "SpecSection" },
|
|
24
|
+
{ "document": "baubeschreibung.pdf", "identifier": "3.2", "class": "SpecSection" }
|
|
25
|
+
],
|
|
26
|
+
"facts": [
|
|
27
|
+
{ "subject": "0.12", "predicate": "SPECIFIED_IN", "object": "3.1", "line_text": "Bodenbelag Linoleum, siehe Baubeschreibung Kap. 3.1" },
|
|
28
|
+
{ "subject": "0.12", "predicate": "HAS_EQUIPMENT", "object": "T 1", "line_text": "T1 Einzeltisch, 28 Stück" },
|
|
29
|
+
{ "subject": "0.12", "predicate": "HAS_EQUIPMENT", "object": "T 3", "line_text": "T 3 Schülerstuhl, 28 Stück" },
|
|
30
|
+
{ "subject": "0.12", "predicate": "HAS_EQUIPMENT", "object": "T 2", "line_text": "T 2 Lehrertisch, 1 Stück" },
|
|
31
|
+
{ "subject": "0.12", "predicate": "HAS_EQUIPMENT", "object": "W 1", "line_text": "W 1 Wandtafel, 1 Stück" },
|
|
32
|
+
{ "subject": "0.12", "predicate": "HAS_EQUIPMENT", "object": "L 2", "line_text": "L 2 Deckenleuchte, 6 Stück" },
|
|
33
|
+
{ "subject": "0.12", "predicate": "HAS_EQUIPMENT", "object": "S 1.1", "line_text": "S1.1 Waschtisch, 1 Stück, darüber Spiegel S 2.1" },
|
|
34
|
+
{ "subject": "0.12", "predicate": "HAS_EQUIPMENT", "object": "S 2.1", "line_text": "S1.1 Waschtisch, 1 Stück, darüber Spiegel S 2.1" },
|
|
35
|
+
{ "subject": "0.14", "predicate": "SPECIFIED_IN", "object": "3.2", "line_text": "Sanitärobjekte siehe Baubeschreibung Kap. 3.2" },
|
|
36
|
+
{ "subject": "0.14", "predicate": "HAS_EQUIPMENT", "object": "S 1.2", "line_text": "S 1.2 WC, wandhängend, 3 Stück" },
|
|
37
|
+
{ "subject": "0.14", "predicate": "HAS_EQUIPMENT", "object": "S 1.1", "line_text": "S1.1 Waschtisch, 2 Stück" },
|
|
38
|
+
{ "subject": "0.14", "predicate": "HAS_EQUIPMENT", "object": "S 2.1", "line_text": "S 2.1 Spiegel, 2 Stück" },
|
|
39
|
+
{ "subject": "0.14", "predicate": "HAS_EQUIPMENT", "object": "S 2.2", "line_text": "S.2.2 Seifenspender, 2 Stück" },
|
|
40
|
+
{ "subject": "0.14", "predicate": "HAS_EQUIPMENT", "object": "L 1", "line_text": "L1 Wandleuchte über dem Spiegel, 2 Stück" },
|
|
41
|
+
{ "subject": "0.14", "predicate": "HAS_EQUIPMENT", "object": "L 3", "line_text": "L 3 Sicherheitsleuchte über der Tür, 1 Stück" }
|
|
42
|
+
],
|
|
43
|
+
"leave_out": [
|
|
44
|
+
{ "identifier": "M 7", "reason": "No file defines M 7, so its mention has no link: no instance and no fact." },
|
|
45
|
+
{ "identifier": "S 1.3", "reason": "The equipment list defines it, but no room sheet names it: no link needs its instance." },
|
|
46
|
+
{ "identifier": "3.3", "reason": "The specification defines it, but no room sheet names it." },
|
|
47
|
+
{ "identifier": "3,00 m", "reason": "A measure: a mention without a link." },
|
|
48
|
+
{ "identifier": "DIN 18040", "reason": "A standard outside the project: a mention without a link." }
|
|
49
|
+
]
|
|
50
|
+
}
|