|
|
Zeile 22: |
Zeile 22: |
| --object:setDebug(true) | | --object:setDebug(true) |
| object:removeSubject() -- delete all triples of this subject | | object:removeSubject() -- delete all triples of this subject |
|
| |
| -- Save the data in the infobox in a knowledge base
| |
| mw.log(object:addPropertyWithIri(rdf .. 'type', ri .. 'Pape'))
| |
| mw.log(object:addPropertyString(rdfs .. 'label', f.args["Titre"]))
| |
| mw.log(object:addPropertyWithIri(rp .. 'picture', f.args["Image"]))
| |
| mw.log(object:addProperty(rp .. 'nomDeNaissance', f.args['Nom de naissance']))
| |
| mw.log(object:addProperty(rp .. 'naissance', f.args['Date de naissance'], xsd .. 'date', ''))
| |
| mw.log(object:addProperty(rp .. 'naissancePrecision', f.args['Naissance précision (années)'], xsd .. 'integer', ''))
| |
| mw.log(object:addPropertyString(rp .. 'lieuDeNaissance', f.args['Lieu de naissance']))
| |
| mw.log(object:addProperty(rp .. 'deces', f.args['Date de décès'], xsd .. 'date', ''))
| |
| mw.log(object:addPropertyString(rp .. 'lieuDeDeces', f.args['Lieu de décès']))
| |
| mw.log(object:addProperty(rp .. 'electionAuPontificat', f.args['Election au pontificat'], xsd .. 'date', ''))
| |
| mw.log(object:addProperty(rp .. 'intronisation', f.args['Intronisation'], xsd .. 'date', ''))
| |
| mw.log(object:addProperty(rp .. 'finDuPontificat', f.args['Fin du pontificat'], xsd .. 'date', ''))
| |
|
| |
|
| --compare data with Wikidata | | --compare data with Wikidata |