MediaWiki

SandboxData.js

Revision as of 19:48, 19 January 2022 by Yug (talk | contribs)

Note: After saving, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/* **************
SELECT ?item ?itemLabel WHERE {
SERVICE wikibase:label {
  bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" .
} 
?item prop:P2 entity:Q5
} 
************** */
var data = [
  {
    "item": {
      "type": "uri",
      "value": "https://lingualibre.org/entity/Q12"
    },
    "itemLabel": {
      "xml:lang": "en",
      "type": "literal",
      "value": "beginner"
    }
  },
  {
    "item": {
      "type": "uri",
      "value": "https://lingualibre.org/entity/Q13"
    },
    "itemLabel": {
      "xml:lang": "en",
      "type": "literal",
      "value": "average level"
    }
  },
  {
    "item": {
      "type": "uri",
      "value": "https://lingualibre.org/entity/Q14"
    },
    "itemLabel": {
      "xml:lang": "en",
      "type": "literal",
      "value": "good level"
    }
  },
  {
    "item": {
      "type": "uri",
      "value": "https://lingualibre.org/entity/Q15"
    },
    "itemLabel": {
      "xml:lang": "en",
      "type": "literal",
      "value": "native"
    }
  }
];