MediaWiki
Difference between revisions of "SandboxData.js"
WikiLucas00 (talk | contribs) |
m |
||
Line 1: | Line 1: | ||
+ | |||
+ | /* ************** | ||
+ | SELECT ?item ?itemLabel WHERE { | ||
+ | SERVICE wikibase:label { | ||
+ | bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . | ||
+ | } | ||
+ | ?item prop:P2 entity:Q5 | ||
+ | } | ||
+ | ************** */ | ||
var data = [ | var data = [ | ||
{ | { | ||
− | "item | + | "item": "https://lingualibre.org/entity/Q12", |
− | + | "itemLabel": "beginner" | |
− | |||
− | |||
− | "itemLabel | ||
− | |||
− | |||
− | |||
− | |||
}, | }, | ||
{ | { | ||
− | "item | + | "item": "https://lingualibre.org/entity/Q13", |
− | + | "itemLabel": "average level" | |
− | |||
− | |||
− | "itemLabel | ||
− | |||
− | |||
− | |||
− | |||
}, | }, | ||
{ | { | ||
− | "item | + | "item": "https://lingualibre.org/entity/Q14", |
− | + | "itemLabel": "good level" | |
− | |||
− | |||
− | "itemLabel | ||
− | |||
− | |||
− | |||
− | |||
}, | }, | ||
{ | { | ||
− | "item | + | "item": "https://lingualibre.org/entity/Q15", |
− | + | "itemLabel": "native" | |
− | |||
− | |||
− | "itemLabel | ||
− | |||
− | |||
− | |||
− | |||
} | } | ||
]; | ]; |
Revision as of 19:47, 19 January 2022
/* **************
SELECT ?item ?itemLabel WHERE {
SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" .
}
?item prop:P2 entity:Q5
}
************** */
var data = [
{
"item": "https://lingualibre.org/entity/Q12",
"itemLabel": "beginner"
},
{
"item": "https://lingualibre.org/entity/Q13",
"itemLabel": "average level"
},
{
"item": "https://lingualibre.org/entity/Q14",
"itemLabel": "good level"
},
{
"item": "https://lingualibre.org/entity/Q15",
"itemLabel": "native"
}
];