Wikipedia:Lua/Modul/WikidataScheme/CradleOpenDataSet

Vorlagenprogrammierung Diskussionen Lua Unterseiten
Modul Deutsch English

Modul: Dokumentation

This page is showing the porting of Cradle input from open data set as observed end of 2019.

Cradle format

Bearbeiten

(as found at d:Wikidata:Cradle #open data set)

P31
softselect:Q7096323,Q4117139,Q1916557,Q1789476,Q212805,Q5281480,Q52990223,Q898144,Q2000006,Q35127|default:Q7096323|mandatory
p921
p407
softselect:Q1860,Q150,Q188,Q1321,Q652,Q9027,Q9043,Q7737,Q7850,Q5287,Q9176,Q1568|default:Q1860
P856
p275
softselect:Q19652,Q24273512,Q6938433,Q6905323,Q6905942,Q6998997,Q334661,Q7603,Q192897,Q1131681,Q12948581|default:Q19652
p1476
p2701
P2702
P361
p1416
P6269
P5305
P1195

Form preview

Bearbeiten

The same input can be visualized, copied and discussed in advance.

  • See this page e.g. in Russian.
  • Note that the JSON functionality does support much more features, e.g. more notes and advice, as well as qualifiers and their values. See the Specification.
Typ Beschreibung Status
P31 ist ein(e) erforderlich
Standard Q7096323 Open-Access-Publikationsserver
P921 zentrales Thema vorgeschlagen
P407 Sprache des Werks, Namens oder Begriffes vorgeschlagen
Standard Q1860 Englisch
P856 offizielle Website optional
P275 Lizenz
  • Q19652 Gemeinfreiheit
  • Q24273512 Public Domain Dedication and License v1.0 Esquiress Lyndsey Watson Copyright Dockets copyright © ls
  • Q6938433 CC0
  • Q6905323 Creative Commons Namensnennung
  • Q6905942 Creative Commons Namensnennung – Weitergabe unter gleichen Bedingungen
  • Q6998997 CC BY-NC-SA
  • Q334661 MIT-Lizenz
  • Q7603 GNU General Public License
  • Q192897 GNU LGPL
  • Q1131681 GNU Affero General Public License
  • Q12948581 Urheberrecht
optional
Standard Q19652 Gemeinfreiheit
P1476 Titel optional
P2701 Dateiformat optional
P2702 Datensatz-Veröffentlichung optional
P361 ist Teil von optional
P1416 Zugehörigkeit zu optional
P6269 API-Endpunkt optional
P5305 SPARQL-Endpunkt optional
P1195 Dateinamenserweiterung optional

JSON definition

Bearbeiten

The Cradle definition has been rewritten 1:1 in JSON and enriched by symbolic names.

  • That makes the specification much more intitive and less error-prone.
{ "@generated": "2024-06-15T06:26:46+02:00",
  "@format": "WikidataScheme 2019-12-16",
  "claims": [
    { "subject": "instance",
      "state":   "required",
      "values":  [
                   {
        "qlist": [ "OARepo",
                   "DBbio",
                   "DBmed",
                   "DBbiblio",
                   "digLib",
                   "discipRepo",
                   "OpenScienceTool",
                   "FreeCultMove",
                   "OAPolicy",
                   "website",
                   true ],
        "qdefault": "OARepo"
                   }
                 ]
    },
    { "subject": "subject",
      "state":   "suggested"
    },
    { "subject": "language",
      "state":   "suggested",
      "values":  [
                   {
        "qlist": [ "lang-en",
                   "lang-fr",
                   "lang-de",
                   "lang-es",
                   "lang-it",
                   "lang-sv",
                   "lang-no",
                   "lang-ru",
                   "lang-zh",
                   "lang-ja",
                   "lang-ko",
                   "lang-hi",
                   true ],
        "qdefault": "lang-en"
                   }
                 ]
    },
    { "subject": "websiteOfficial",
      "state":   "optional"
    },
    { "subject": "license",
      "state":   "optional",
      "values":  [
                   {
        "qlist": [ "license-PD",
                   "license-PD-DaLv1",
                   "license-CC0",
                   "license-CC-BY",
                   "license-CC-BY-SA",
                   "license-CC-BY-SA-NC",
                   "license-MIT",
                   "license-GPL",
                   "license-GPL-Lesser",
                   "license-GPL-Affero",
                   "license-copyright",
                   true ],
        "qdefault": "license-PD"
                   }
                 ]
    },
    { "subject": "title",
      "state":   "optional"
    },
    { "subject": "fileFormat",
      "state":   "optional"
    },
    { "subject": "datasetDist",
      "state":   "optional"
    },
    { "subject": "partOf",
      "state":   "optional"
    },
    { "subject": "affiliation",
      "state":   "optional"
    },
    { "subject": "APIendpoint",
      "state":   "optional"
    },
    { "subject": "SPARQLendpoint",
      "state":   "optional"
    },
    { "subject": "fileExtension",
      "state":   "optional"
    }
            ],
  "resolve": { "APIendpoint":          { "P": 6269 },
               "DBbiblio":             { "Q": 1789476 },
               "DBbio":                { "Q": 4117139 },
               "DBmed":                { "Q": 1916557 },
               "FreeCultMove":         { "Q": 898144 },
               "OAPolicy":             { "Q": 2000006 },
               "OARepo":               { "Q": 7096323 },
               "OpenScienceTool":      { "Q": 52990223 },
               "SPARQLendpoint":       { "P": 5305 },
               "affiliation":          { "P": 1416 },
               "datasetDist":          { "P": 2702 },
               "digLib":               { "Q": 212805 },
               "discipRepo":           { "Q": 5281480 },
               "fileExtension":        { "P": 1195 },
               "fileFormat":           { "P": 2701 },
               "instance":             { "P": 31 },
               "lang-de":              { "Q": 188 },
               "lang-en":              { "Q": 1860 },
               "lang-es":              { "Q": 1321 },
               "lang-fr":              { "Q": 150 },
               "lang-hi":              { "Q": 1568 },
               "lang-it":              { "Q": 652 },
               "lang-ja":              { "Q": 5287 },
               "lang-ko":              { "Q": 9176 },
               "lang-no":              { "Q": 9043 },
               "lang-ru":              { "Q": 7737 },
               "lang-sv":              { "Q": 9027 },
               "lang-zh":              { "Q": 7850 },
               "language":             { "P": 407 },
               "license":              { "P": 275 },
               "license-CC-BY":        { "Q": 6905323 },
               "license-CC-BY-SA":     { "Q": 6905942 },
               "license-CC-BY-SA-NC":  { "Q": 6998997 },
               "license-CC0":          { "Q": 6938433 },
               "license-GPL":          { "Q": 7603 },
               "license-GPL-Affero":   { "Q": 1131681 },
               "license-GPL-Lesser":   { "Q": 192897 },
               "license-MIT":          { "Q": 334661 },
               "license-PD":           { "Q": 19652 },
               "license-PD-DaLv1":     { "Q": 24273512 },
               "license-copyright":    { "Q": 12948581 },
               "partOf":               { "P": 361 },
               "subject":              { "P": 921 },
               "title":                { "P": 1476 },
               "website":              { "Q": 35127 },
               "websiteOfficial":      { "P": 856 }
           }
}

Dictionary for symbolic names

Bearbeiten
APIendpoint P6269 API-Endpunkt
DBbiblio Q1789476 bibliografische Datenbank
DBbio Q4117139 biologische Datenbank
DBmed Q1916557 medizinische Datenbank
FreeCultMove Q898144 Freie-Kultur-Bewegung
OAPolicy Q2000006 Open-Access-Politik
OARepo Q7096323 Open-Access-Publikationsserver
OpenScienceTool Q52990223 Tool für offene Wissenschaft
SPARQLendpoint P5305 SPARQL-Endpunkt
affiliation P1416 Zugehörigkeit zu
datasetDist P2702 Datensatz-Veröffentlichung
digLib Q212805 digitale Bibliothek
discipRepo Q5281480 fachliches Repository
fileExtension P1195 Dateinamenserweiterung
fileFormat P2701 Dateiformat
instance P31 ist ein(e)
lang-de Q188 Deutsch
lang-en Q1860 Englisch
lang-es Q1321 Spanisch
lang-fr Q150 Französisch
lang-hi Q1568 Hindi
lang-it Q652 Italienisch
lang-ja Q5287 Japanisch
lang-ko Q9176 Koreanisch
lang-no Q9043 Norwegisch
lang-ru Q7737 Russisch
lang-sv Q9027 Schwedisch
lang-zh Q7850 Chinesisch
language P407 Sprache des Werks, Namens oder Begriffes
license P275 Lizenz
license-CC-BY Q6905323 Creative Commons Namensnennung
license-CC-BY-SA Q6905942 Creative Commons Namensnennung – Weitergabe unter gleichen Bedingungen
license-CC-BY-SA-NC Q6998997 CC BY-NC-SA
license-CC0 Q6938433 CC0
license-GPL Q7603 GNU General Public License
license-GPL-Affero Q1131681 GNU Affero General Public License
license-GPL-Lesser Q192897 GNU LGPL
license-MIT Q334661 MIT-Lizenz
license-PD Q19652 Gemeinfreiheit
license-PD-DaLv1 Q24273512 Public Domain Dedication and License v1.0 Esquiress Lyndsey Watson Copyright Dockets copyright © ls
license-copyright Q12948581 Urheberrecht
partOf P361 ist Teil von
subject P921 zentrales Thema
title P1476 Titel
website Q35127 Website
websiteOfficial P856 offizielle Website

Gadget and tool feeding

Bearbeiten

For gadgets and tools symbolic names are not needed and cause additional work; those may be resolved:

{ "@generated": "2024-06-15T06:26:46+02:00",
  "@format": "WikidataScheme 2019-12-16",
  "claims": [
    { "subject": "P31",
      "state":   "required",
      "values":  [
                   {
        "qlist": [ "Q7096323",
                   "Q4117139",
                   "Q1916557",
                   "Q1789476",
                   "Q212805",
                   "Q5281480",
                   "Q52990223",
                   "Q898144",
                   "Q2000006",
                   "Q35127",
                   true ],
        "qdefault": "Q7096323"
                   }
                 ]
    },
    { "subject": "P921",
      "state":   "suggested"
    },
    { "subject": "P407",
      "state":   "suggested",
      "values":  [
                   {
        "qlist": [ "Q1860",
                   "Q150",
                   "Q188",
                   "Q1321",
                   "Q652",
                   "Q9027",
                   "Q9043",
                   "Q7737",
                   "Q7850",
                   "Q5287",
                   "Q9176",
                   "Q1568",
                   true ],
        "qdefault": "Q1860"
                   }
                 ]
    },
    { "subject": "P856",
      "state":   "optional"
    },
    { "subject": "P275",
      "state":   "optional",
      "values":  [
                   {
        "qlist": [ "Q19652",
                   "Q24273512",
                   "Q6938433",
                   "Q6905323",
                   "Q6905942",
                   "Q6998997",
                   "Q334661",
                   "Q7603",
                   "Q192897",
                   "Q1131681",
                   "Q12948581",
                   true ],
        "qdefault": "Q19652"
                   }
                 ]
    },
    { "subject": "P1476",
      "state":   "optional"
    },
    { "subject": "P2701",
      "state":   "optional"
    },
    { "subject": "P2702",
      "state":   "optional"
    },
    { "subject": "P361",
      "state":   "optional"
    },
    { "subject": "P1416",
      "state":   "optional"
    },
    { "subject": "P6269",
      "state":   "optional"
    },
    { "subject": "P5305",
      "state":   "optional"
    },
    { "subject": "P1195",
      "state":   "optional"
    }
            ]
}

JSON source

Bearbeiten

This page is transcluding several times the physical definitioan at JSON.