Modul:LinkedWiki: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
Zeile 1: | Zeile 1: | ||
local | local linkedwiki = require 'linkedwiki' | ||
local wd = 'http://www.wikidata.org/entity/' | |||
local rdfs = 'http://www.w3.org/2000/01/rdf-schema#' | |||
local subject = wd.."Q1"; | |||
local propertyLabel = rdfs.."label"; | |||
local univers = linkedwiki.new(subject,"http://www.wikidata.org","fr") --uses Wikidata's config and the french tag | |||
mw.log(object:getString(propertyLabel)) | |||
Version vom 15. April 2021, 21:55 Uhr
Die Dokumentation für dieses Modul kann unter Modul:LinkedWiki/Doku erstellt werden
local linkedwiki = require 'linkedwiki'
local wd = 'http://www.wikidata.org/entity/'
local rdfs = 'http://www.w3.org/2000/01/rdf-schema#'
local subject = wd.."Q1";
local propertyLabel = rdfs.."label";
local univers = linkedwiki.new(subject,"http://www.wikidata.org","fr") --uses Wikidata's config and the french tag
mw.log(object:getString(propertyLabel))