Open duvrai opened 4 years ago
This schema is changing all the time which is a bad sign and also dangerous. Another live example that I'll just paste here:
---
channel: KTO tv
community:
priests: [Paus Franciscus, andere priesters]
locations:
- city: Rome
diocese: Rome
country: IT
- city: Paris
diocese: Paris
country: FR
community: Saint-Germain l'Auxerrois
- city: Lourdes
diocese: Tarbes et Lourdes
country: FR
timetable:
- time: 07:00
days: [mon,tue,wed,thu,fri,sat]
kind: weekMass
language: fr
location: 0
priests: [0]
- time: 07:00
days: [sun]
kind: sundayMass
language: fr
location: 0
priests: [0]
- days: [sun]
time: 10:00
kind: sundayMass
language: fr
location: 2
- time: 10:00
days: [mon,tue,wed,thu,fri,sat]
kind: weekMass
language: fr
location: 2
- time: 18:30
days: [sun]
kind: sundayMass
language: fr
location: 1
- time: 18:15
days: [mon,tue,wed,thu,fri,sat]
kind: weekMass
language: fr
location: 1
facebook: https://www.facebook.com/kto.television/
fbid: 143654702340655
youtube: https://www.youtube.com/user/KTOTV
homepage: http://ktotv.com/
youtubeChannelID: UCg0L6cPMNLv1gjsyzYqMG7g
---
KTO tv: Franstalige commentaar
When the schema settles I'll write the doc in the wiki.
@d0rable Using a little script I reconstructed a schema that covers all the current channel files (found in 3fc98b7).
channel →
string
Dummy parochie met veel te lange titel die beter en goe stukske zou worden ingekort, vindt ge da nu ook ni? (_livedummy.md)null
(_tbckapucijnenklooster.md)title →
string
Unité Pastorale des Sources Vives (annonciation.md)null
(beatitudes.md)community →
string
Verdieping met pastoor Bart Goossens (bartgoossens.md)null
(_livedummy.md)language → null
(_livedummy.md)
live → boolean
true (_livedummy.md)
draft → boolean
true (_livedummy.md)
priests → array
[pastoor Bart Goossens] (_bartgoossens.md)
locations → array
[Object] (_bartgoossens.md)
string
Lavaux-Sainte-Annestring
5580string
Namenstring
Rochefortdiocese →
null
(_livedummy.md)string
Namen (tiberiade.md)dioceseRegion → string
Rochefort (tiberiade.md)
location → array
[Object] (_livedummy.md)
homepage →
null
(_bartgoossens.md)
-string
https://monasteriumhalle.wordpress.com/dagorde/ (_begijnhof.md)twitter → string
http://twitter.com/duvrai (_livedummy.md)
facebook →
null
(bartgoossens.md)string
https://www.facebook.com/Begijnhofhalle/live (_begijnhof.md)fbid →
null
(_bartgoossens.md)string
Begijnhofhalle (begijnhof.md)number
309563685301 (_johannes_XXIII_seminarie.md)fbid_ → number
10154142832119336 (_livedummy.md)
youtube →
string
https://www.youtube.com/channel/UCQydh9rZDoR3-xmuC1e1K-w (_bartgoossens.md)null
(_johannes_XXIII_seminarie.md)youtubeChannelID →
string
UCg0L6cPMNLv1gjsyzYqMG7g (_livedummy.md)null
(_tbcabdijgrimbergen.md)stream →
null
(_bartgoossens.md)string
https://www.facebook.com/Begijnhofhalle/live (_begijnhof.md)timetable →
array
[Object] (_bartgoossens.md)
time → string
00:00 (_bartgoossens.md) OR number
900 (_bartgoossens.md)
days → array
[day] (_bartgoossens.md)
kind → string
'sundayMass' OR 'feast' OR 'weekMass'
language → string
nl (_bartgoossens.md)
title → string
Goede Vrijdag - Kruisweg (_bartgoossens.md)
dates → array
[Date] (_bartgoossens.md)
excludingDates → array
[Date] (_begijnhof.md) |OR| object
null (tbcscherpenheuvel.md)
location → number
5 (_tbckerknet.md)
null
(benedictuskerkmortsel.md)I think the fields:
diocese
, dioceseRegion
, location
] can be removed because they are redundant to the fields in locations
channel
, community
, title
]
title
, community
] orabbreviatedTitle
, title
].community
or title
field to the locations
dictionaryThe objects in the timetable
array are not so easy to parse. I think it might be good to have an inclusion-criteria
and exlusion-critera
field that hold an array containing date criteria objects with the following fields:
type
: being one of the following values {exact-date
, weekday
}
pattern
value could later be added to the above list to add more complex patterns descriptor
: being an object of the type defined by the type
field (from above)Nieuw schemavoorstel
Proposed Fields Update