forked from saetre/busstuc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TODO.txt
540 lines (445 loc) · 17.1 KB
/
TODO.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
Undefined - identifiers... (db/places.pl) placestat/2
city_lade
city_syd_sentervegen
city_syd_østre
ditlev_bloms_veg
estenstadvegen
gløshaugen
gløshaugen_nord
gyldenløves_gt
haakon_vii_gate_17
haakon_vii_gate_9
harald_bothners_veg
harald_hårfagres_gate
hovedterminalen
john_aae_s_veg
krokstien
kvilhaugen
kvt
lade_kirke
leinstrand_samf_hus
moholt
munkegata_m1
munkegata_m2
munkegata_m4
munkegata_m5
olav_tryggvasons_gate
omkjøringsveien_moholt
omkjøringsveien_nardo
persaunvegen
prestegårdsjordet
prinsenkrysset
ranheim_skole
ranheimsfjæra
rosendal
saxenborg_alle
sentrum
stavset_senter
stiklestadveien
strandveien
studentersamfundet_2
søndre_gate_22
søndre_gate_23
søndre_hallset
tonstadkrysset
torget
torplassen
tyholttårnet
være
-------------
Undefined street to station references (db/regstr.pl) streetstat/5
city_lade
city_syd
distr_lege_øverlids_vei
ditlev_bloms_veg
einar_tambarskjelves_gate
estenstadvegen
gløshaugen_nord
gudes_gate
gyldenløves_gt
haakon_vii_gate_17
haakon_vii_gate_9
harald_bothners_veg
harald_gilles_veg
harald_hårfagres_gate
heimdalsvegen
hitravegen
høiset
kattem
kattemskogen
kong_øysteins_veg
korsen
krokstien
kvenildvegen
kvilhaugen
lade_kirke
leinstrand_samf_hus
magnus_blindes_veg
moholt
munkvoll_gård
olav_tryggvasons_gate
otto_nielsens_veg
prestegårdsjordet
ranheim_skole
rate
rosendal
sandbakken
stavset_senter
steintrøvegen
steinåsen
stiklestadveien
strandveien
søndre_gate_23
søndre_hallset
torget_orkanger
torplassen
tranevegen
ts
tyholttårnet
unknown
være
%% db/discrepancies r1601_160815 r1601_170403
alias_station2(16010208,john_aae_s_veg,john_aaes_veg).
... makeauxtables~153 (~787): Please wait 1 minute while creating (db/auxtables) regstr/2
Undefined - identifiers... (db/places.pl) placestat/2
hovedterminalen
john_aae_s_veg
olav_tryggvasons_gate
persaunvegen
prinsenkrysset
ranheim_skole
sentrum
torget
-------------
Undefined street to station references (db/regstr.pl) streetstat/5
olav_tryggvasons_gate
ranheim_skole
ts
unknown
%% db/discrepancies r1603_151012 r1601_160620
alias_station2(16010006,dr_gate_d1,dronningens_gate_d1).
alias_station2(16010007,dr_gate_d2,dronningens_gate_d2).
alias_station2(16010121,peder_myhres_vei,peder_myhres_veg).
alias_station2(16010157,a_jenssens_veg,anton_jenssens_veg).
alias_station2(16010186,hurtigbåtterm,hurtigbåtterminalen).
alias_station2(16010240,kvenilds_veg,kvenildvegen).
alias_station2(16010253,ladejarlen_v_g_s,ladejarlen_vgs).
alias_station2(16010266,lohove,lohove_snuplass).
alias_station2(16010309,j_minsaas_veg,johannes_minsaas_veg).
alias_station2(16010347,olav_tryggvasons_gate,olav_tryggvasons_gate_ot_2).
alias_station2(16010357,osveien,osvegen).
alias_station2(16010376,prof_brochs_gate,professor_brochs_gate).
alias_station2(16010395,risvollveien,risvollvegen).
alias_station2(16010420,ada_arnfinsens_v,ada_arnfinsens_veg).
alias_station2(16010446,hvs,heimdal_vgs).
alias_station2(16010471,gina_krogs_veg,clara_holsts_veg).
alias_station2(16010495,tiller_v_g_s,tiller_vgs).
alias_station2(16010517,isdamveien,isdamvegen).
alias_station2(16010603,traneveien,tranevegen).
alias_station2(16011121,peder_myhres_vei,peder_myhres_veg).
alias_station2(16011157,a_jenssens_veg,anton_jenssens_veg).
alias_station2(16011240,kvenilds_veg,kvenildvegen).
alias_station2(16011253,ladejarlen_v_g_s,ladejarlen_vgs).
alias_station2(16011309,j_minsaas_veg,johannes_minsaas_veg).
alias_station2(16011347,olav_tryggvasons_gate,olav_tryggvasons_gate_ot_1).
alias_station2(16011357,osveien,osvegen).
alias_station2(16011376,prof_brochs_gate,professor_brochs_gate).
alias_station2(16011446,hvs,heimdal_vgs).
alias_station2(16011456,s_jorsalfars_v,sigurd_jorsalfars_vei).
alias_station2(16011471,gina_krogs_veg,clara_holsts_veg).
alias_station2(16011495,tiller_v_g_s,tiller_vgs).
alias_station2(16011603,traneveien,tranevegen).
alias_station2(16386168,orkanger_skyss,orkanger_skysstasjon).
alias_station2(16386218,orkdal_barne_h,orkanger_barnehage).
alias_station2(16389168,orkanger_skyss,orkanger_skysstasjon).
alias_station2(16389218,orkdal_barne_h,orkanger_barnehage).
alias_station2(16533040,brekkåsen_snpl,brekkåsen_snuplass).
alias_station2(16574021,nygård,sanden).
alias_station2(16574030,skaun_ungdomskole,skaun_ungdomsskole).
alias_station2(16578721,nygård,sanden).
alias_station2(16632033,hommelvik_bom_st,hommelvik_bomstasjon).
alias_station2(16638333,hommelvik_bom_st,hommelvik_bomstasjon).
alias_station2(17142086,tr_heim_lufthavn,trondheim_lufthavn).
alias_station2(17142583,halsen_ung_skole,halsen_ungdomsskole).
alias_station2(17145086,tr_heim_lufthavn,trondheim_lufthavn).
...makeauxtables.pl~136 File already exists: db/auxtables.pl 1470147749 timestamp > SKIP making 1452431850
... makeauxtables~153 (~787): Please wait 1 minute while creating (db/auxtables) regstr/2
Finish
Undefined - identifiers... (db/places) placestat/2
astronomveien
gina_krogs_veg
hovedterminalen
olav_tryggvasons_gate
prinsenkrysset
sentrum
torget
-------------
Undefined street to station references (streetstat/5)
gina_krogs_veg
olav_tryggvasons_gate
ts
unknown
-------------
Østmarkveien 21 (Stopp Østmarkveien) må inn som alias for Nidaros DPS == DPS Trondheim.
Buvikkrysset E39 , (Buss 310, ikke 410)
%% db/discrepancies r1603_151012 r1603_160502
alias_station2(16010006,dr_gate_d1,dronningens_gate_d1).
alias_station2(16010007,dr_gate_d2,dronningens_gate_d2).
alias_station2(16010111,grilstadveien,grilstadvegen).
alias_station2(16010121,peder_myhres_vei,peder_myhres_veg).
alias_station2(16010157,a_jenssens_veg,anton_jenssens_veg).
alias_station2(16010186,hurtigbtterm,hurtigbtterminalen).
alias_station2(16010240,kvenilds_veg,kvenildvegen).
alias_station2(16010253,ladejarlen_v_g_s,ladejarlen_vgs).
alias_station2(16010266,lohove,lohove_snuplass).
alias_station2(16010309,j_minsaas_veg,johannes_minsaas_veg).
alias_station2(16010347,olav_tryggvasons_gate,olav_tryggvasons_gate_ot_2).
alias_station2(16010357,osveien,osvegen).
alias_station2(16010376,prof_brochs_gate,professor_brochs_gate).
alias_station2(16010395,risvollveien,risvollvegen).
alias_station2(16010420,ada_arnfinsens_v,ada_arnfinsens_veg).
alias_station2(16010446,hvs,heimdal_vgs).
alias_station2(16010495,tiller_v_g_s,tiller_vgs).
alias_station2(16010517,isdamveien,isdamvegen).
alias_station2(16010603,traneveien,tranevegen).
alias_station2(16011111,grilstadveien,grilstadvegen).
alias_station2(16011121,peder_myhres_vei,peder_myhres_veg).
alias_station2(16011157,a_jenssens_veg,anton_jenssens_veg).
alias_station2(16011240,kvenilds_veg,kvenildvegen).
alias_station2(16011253,ladejarlen_v_g_s,ladejarlen_vgs).
alias_station2(16011309,j_minsaas_veg,johannes_minsaas_veg).
alias_station2(16011347,olav_tryggvasons_gate,olav_tryggvasons_gate_ot_1).
alias_station2(16011357,osveien,osvegen).
alias_station2(16011376,prof_brochs_gate,professor_brochs_gate).
alias_station2(16011446,hvs,heimdal_vgs).
alias_station2(16011456,s_jorsalfars_v,sigurd_jorsalfars_vei).
alias_station2(16011495,tiller_v_g_s,tiller_vgs).
alias_station2(16011603,traneveien,tranevegen).
alias_station2(16386168,orkanger_skyss,orkanger_skysstasjon).
alias_station2(16386218,orkdal_barne_h,orkanger_barnehage).
alias_station2(16389168,orkanger_skyss,orkanger_skysstasjon).
alias_station2(16389218,orkdal_barne_h,orkanger_barnehage).
alias_station2(16533040,brekksen_snpl,brekksen_snuplass).
alias_station2(16574021,nygrd,sanden).
alias_station2(16574030,skaun_ungdomskole,skaun_ungdomsskole).
alias_station2(16578721,nygrd,sanden).
alias_station2(16632033,hommelvik_bom_st,hommelvik_bomstasjon).
alias_station2(16638333,hommelvik_bom_st,hommelvik_bomstasjon).
alias_station2(17142086,tr_heim_lufthavn,trondheim_lufthavn).
alias_station2(17142583,halsen_ung_skole,halsen_ungdomsskole).
alias_station2(17145086,tr_heim_lufthavn,trondheim_lufthavn).
Undefined - identifiers... (db/places) placestat/2
astronomveien
hovedterminalen
olav_tryggvasons_gate
prinsenkrysset
sentrum
torget
-------------
Undefined street to station references (streetstat/5)
olav_tryggvasons_gate
ts
unknown
Påske 2016
=====================
Undefined - identifiers... (db/places) placestat/2
astronomveien
hovedterminalen
olav_tryggvasons_gate
prinsenkrysset
romolslia
sentrum
torget
-------------
Undefined street to station references (streetstat/5)
kolstaddalen
okstadøy
olav_tryggvasons_gate
rosten
ts
unknown
================
EKSPRESSBUSS
N: lade etter 740 29. mars.
........................................................................
Buss 4 passerer Prinsens gate P2 kl. 0721
og kommer til Lade , 11-19 minutter senere .
Buss 4 passerer Munkegata M5 kl. 0723
og kommer til Lade , 9-17 minutter senere .
Buss 3 passerer Prinsens gate P2 kl. 0726
og kommer til Lade allé 80 , 20 minutter senere .
Tidene angir tidligste passeringer av holdeplassene.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
FIX THIS!!!
N: rotvoll alle 14.1 kl 08.00.
........................................................................
*** Word graph ***
lex:txt(1, w(alle,[alle]), 2).
lex:txt(2, w(14,nb(14,num)), 3).
lex:txt(3, w('.',['.']), 4).
lex:txt(4, w(1,[1]), 5).
lex:txt(4, w(1,nb(1,num)), 5).
lex:txt(4, w(1,name(1,n,tram)), 5).
lex:txt(4, w(1,name(1,n,nightbus)), 5).
lex:txt(4, w(1,name(1,n,route)), 5).
lex:txt(5, w(kl,noun(clock,sin,def,n)), 6).
lex:txt(5, w(kl,[klokken]), 6).
lex:txt(5, w(kl,[kl]), 6).
lex:txt(6, w(8,[8]), 7).
lex:txt(6, w(8,nb(8,num)), 7).
lex:txt(6, w(8,name(8,n,route)), 7).
lex:txt(7, w('.',['.']), 8).
lex:txt(8, w(0,[0]), 9).
lex:txt(8, w(0,nb(0,num)), 9).
lex:txt(9, w('.',['.']), 10).
lex:txt(0, w(rotvoll_alle,name(rotvoll_alle,n,station)), 2).
******************
*** Simplified parse tree ***
[verb_modifiers,name(rotvoll_alle,n,station),[verb_modifiers,[plausibledate1,nb(14,num),lit(.),nb(1,num)],[obviousclock1,lit(kl),[clock_kernel,nb(8,num),[colemin2,lit(.),nb(0,num),lit(.)]]]]]
verb_modifiers
__________|_________
/ \
name verb_modifiers
| ______|_____
| / \
rotvoll_alle plausibledate1 obviousclock1
___|___ ___|___
/ | \ / \
nb lit nb lit clock_kernel
| | | | ___|__
| | | | / \
14 . 1 kl nb colemin2
| ___|___
| / | \
8 lit nb lit
| | |
| | |
. 0 .
*****************************
[gpsflag:::[],modifier(A):::(srel/nil/place/rotvoll_alle/A and srel/nil/date/date(2015,1,14)/A and srel/nil/clock/800/A and event/real/A)and((rotvoll_alle isa station and true)and date(2015,1,14)isa date)and 800 isa clock]
15 ms
[modifier(A):::(rotvoll_alle isa station,date(2015,1,14)isa date,800 isa clock,srel/nil/place/rotvoll_alle/A,srel/nil/date/date(2015,1,14)/A,srel/nil/clock/800/A,event/real/A)]
bustrans/Found rule:tqllist2
bustrans/Found rule:modifier2
bustrans/Found rule:standardclock
bustrans/Found rule:normalizedate
bustrans/Found rule:clocksequence
bustrans/Found rule:setexdate3day
bustrans/Found rule:nottoday1
bustrans/Found rule:nilplaceeqto
bustrans/Found rule:keepfrombay
bustrans/Found rule:busdepaftertimegps
bustrans/Found rule:connectionexplicit
*** Application program ***
atdate2(3,date(2015,1,14))
atday(wednesday)
message(date_isa_day(date(2015,1,14),wednesday))
message(otherperiod(date(2015,1,14)))
departure(free(590),rotvoll_alle,3,A)
keepafter(800,A,B)
flag(keepfrombay)
departure(free(590),hovedterminalen,3,C)
connections(C,B,free(590),hovedterminalen,rotvoll_alle,wednesday,3,[time,nextaftertime(0),to,from],D,E)
flag(exit)
........................................................................
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
578 ms
{"transfer":"true" ,
"timeset":"true" ,
"departures" : [
{"busstopname":"Munkegata M5","busstopnumber":16010005,"busnumber":4,"time":1452,"duration":8,"destination":"Harald Hårfagres gate"} ,
{"busstopname":"Harald Hårfagres gate","busstopnumber":16010534,"busnumber":90,"time":1507,"duration":7,"destination":"Rotvoll alle"} ]}
14. Jan. 2015 er en onsdag .
Buss 4 går fra Munkegata M5 kl. 1452 til Harald Hårfagres gate kl. 1500
og buss 90 går fra Harald Hårfagres gate kl. 1507 til Rotvoll allé kl. 1514 .
Tidene angir tidligste passeringer av holdeplassene.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Når går bussen fra sentrum til ugla lørdag 02.00.
#vm-6114: (Must ALWAYS be executable, from /var/www/regtop/*.php
sh: 1: /lhome/busstuc/busstuc/compile/extract_cut.sh: Permission denied
SMS:
from prinsen to krokstien. (prinsen kino eller prinsenkrysset? Reklameinntekter?)
nth natt til søndag. (HELT BLANK?!)
Index: tuc/facts.pl
===================================================================
--- tuc/facts.pl (revision 646)
+++ tuc/facts.pl (working copy)
@@ -16,7 +16,7 @@
% Facts are deliberately kept separate from semantics
% UNIT: /tuc/
-:-module(facts, [ difact/1, fact/1, have/4, isa/2, neighbourhood/1, precedent_firstname/1, unproperstation1/1 ] ).
+:-module(facts, [ difact/1, fact/1, have/4, isa/2, neighbourhood/1, precedent_firstname/1 ] ). %% , unproperstation1/1 %% Check out how this works, and add it again later! Unknown stations could be neibhorhoods at least.
%% RS-131225, UNIT: / and utility/
:- ensure_loaded( user:'../declare' ). %% RS-111212 :-op( 710,xfx, isa ).
@@ -79,13 +79,13 @@
user:difact(UID,F).
% OLD ?
-:- use_module( '../db/auxtables', [ unproperstation/1 ] ). %% RS-140928 Auto-generated by makeauxtables!
+%:- use_module( '../db/auxtables', [ unproperstation/1 ] ). %% RS-140928 Auto-generated by makeauxtables!
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%unproperstation1( X ) :-
+%% fail.
+% unproperstation(X), %% no bus passes %% maybe empty
+% \+ neighbourhood(X).
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-unproperstation1( X ) :-
-% fail.
- unproperstation(X), %% no bus passes %% maybe empty
- \+ neighbourhood(X).
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
jonas isa firstname.
@@ -536,8 +536,8 @@
value(busflag,true), %% \+ dater
station(X), %% Semantically, not actual
\+ xforeign(X), %% ( adjust database error)
- \+ unwanted_place(X), %% ( adjust database error)
- \+ unproperstation1(X). %% ( stations with no passings) %% RS-131230 See lex.pl unproperstation1/1
+ \+ unwanted_place(X). %, %% ( adjust database error)
+% \+ unproperstation1(X). %% ( stations with no passings) %% RS-131230 See lex.pl unproperstation1/1
%% maybe empty
%% \+ tramstation(X). %% NO ILA is both
@@ -665,7 +665,7 @@
neibor(X):-
(isat(_,X);
nostation(X) ;
- unproperstation1(X) ; %% recognised as neighbourhood (feature) %% From tuc/lex.pl
+% unproperstation1(X) ; %% recognised as neighbourhood (feature) %% From tuc/lex.pl
%% maybe empty
placestat(X,_) ;
Index: tuc/lex.pl
===================================================================
--- tuc/lex.pl (revision 646)
+++ tuc/lex.pl (working copy)
@@ -126,7 +126,7 @@
%%% RS-111205, UNIT: tuc
:- use_module( dict_n, [ kw/1 ] ). %% TA-100902 %%%%%%%%% All the words appearing as [ ] constants in grammar %% RS-131225
:- use_module( evaluate, [ instant/2 ] ). %% RS-111204 isa/2 from facts.pl
-:- use_module( facts, [ fact/1, isa/2, neighbourhood/1, unproperstation1/1 ] ). %% RS-111204 isa/2 from facts.pl
+:- use_module( facts, [ fact/1, isa/2, neighbourhood/1 ] ). %% RS-111204 isa/2 from facts.pl, , unproperstation1/1
:- use_module( names, [ compname/3, generic_place/1, samename/2, streetsyn/1, synname/2, unwanted_name/1 ] ).
%%
@@ -501,7 +501,7 @@
irrelevant_name(X):- %% DONT spellcheck towards these names !
bus(X);
- unproperstation1(X); %% DONT spellcheck to spurious names !
+% unproperstation1(X); %% DONT spellcheck to spurious names !
%% maybe empty
unwanted_name(X);
@@ -1621,7 +1621,7 @@
remove_streetsurp:- % Remove streetname (single) if also station/neighbourhood etc.
- for( (txt(M,w(A,name(_a1,_,street)),N),txt(M,w(A,name(A2,_,K)),N), K \== street, \+unproperstation1(A2)),
+ for( (txt(M,w(A,name(_a1,_,street)),N),txt(M,w(A,name(A2,_,K)),N), K \== street ), % \+unproperstation1(A2) ),
retract(txt(M,w(A,name(_a1,_,street)),N))).
%% suspended : error marking becomes meaningless (too early)
Check out make_total_google!
makeanswer(true,FlatCode,ProgIn,AnswerOut ) :-
makeinitanswer(true,FlatCode,ProgIn,InitAnswer),
pragma_aux(ans,ProgIn,InitAnswer,AnswerOut),
!,
make_total_google(AnswerOut, _TOTAL). %% busanshp.pl
LOG
===
RS-120803
Moved db/regbusall to general regbus in buslog.pl
This call failed because prinsenkrysset is not a hpl(X)! (Add a general "neighborhood as station" predicat?
connections(A,B,free(19),nyborg,prinsenkrysset,friday,40,[to,from],C,D)