Skip to content

Instantly share code, notes, and snippets.

@lubianat
Created January 14, 2025 19:14
Show Gist options
  • Save lubianat/a30cf0b3b3751fb0634771553ad8acbb to your computer and use it in GitHub Desktop.
Save lubianat/a30cf0b3b3751fb0634771553ad8acbb to your computer and use it in GitHub Desktop.
bhl_schema_0.1.1.json
{
"name": "BHL-v0.1.1 - Illustrations",
"schema": {
"entityEdits": [
{
"type": "wbmediainfoeditexpr",
"subject": {
"type": "wbentityvariable",
"columnName": "File"
},
"filePath": null,
"fileName": null,
"wikitext": null,
"overrideWikitext": false,
"statementGroups": [
{
"property": {
"type": "wbpropconstant",
"pid": "P31",
"label": "instance of",
"datatype": "wikibase-item"
},
"statements": [
{
"value": {
"type": "wbentityvariable",
"columnName": "Instance of"
},
"qualifiers": [],
"references": [],
"mode": "add_or_merge",
"mergingStrategy": {
"type": "snak",
"valueMatcher": {
"type": "lax"
}
}
}
]
},
{
"property": {
"type": "wbpropconstant",
"pid": "P1433",
"label": "published in",
"datatype": "wikibase-item"
},
"statements": [
{
"value": {
"type": "wbentityvariable",
"columnName": "Published In"
},
"qualifiers": [
{
"prop": {
"type": "wbpropconstant",
"pid": "P518",
"label": "applies to part",
"datatype": "wikibase-item"
},
"value": {
"type": "wbentityidvalueconstant",
"id": "Q112134971",
"label": "analog work"
}
}
],
"references": [],
"mode": "add_or_merge",
"mergingStrategy": {
"type": "snak",
"valueMatcher": {
"type": "lax"
}
}
}
]
},
{
"property": {
"type": "wbpropconstant",
"pid": "P195",
"label": "collection",
"datatype": "wikibase-item"
},
"statements": [
{
"value": {
"type": "wbentityvariable",
"columnName": "Collection"
},
"qualifiers": [
{
"prop": {
"type": "wbpropconstant",
"pid": "P3831",
"label": "object of statement has role",
"datatype": "wikibase-item"
},
"value": {
"type": "wbentityidvalueconstant",
"id": "Q131597993",
"label": "holding institution"
}
}
],
"references": [
{
"snaks": [
{
"prop": {
"type": "wbpropconstant",
"pid": "P854",
"label": "reference URL",
"datatype": "url"
},
"value": {
"type": "wbstringvariable",
"columnName": "Bibliography ID"
}
}
]
}
],
"mode": "add_or_merge",
"mergingStrategy": {
"type": "snak",
"valueMatcher": {
"type": "lax"
}
}
}
]
},
{
"property": {
"type": "wbpropconstant",
"pid": "P859",
"label": "sponsor",
"datatype": "wikibase-item"
},
"statements": [
{
"value": {
"type": "wbentityvariable",
"columnName": "Sponsor"
},
"qualifiers": [],
"references": [
{
"snaks": [
{
"prop": {
"type": "wbpropconstant",
"pid": "P854",
"label": "reference URL",
"datatype": "url"
},
"value": {
"type": "wbstringvariable",
"columnName": "Bibliography ID"
}
}
]
}
],
"mode": "add_or_merge",
"mergingStrategy": {
"type": "snak",
"valueMatcher": {
"type": "lax"
}
}
}
]
},
{
"property": {
"type": "wbpropconstant",
"pid": "P687",
"label": "BHL page ID",
"datatype": "external-id"
},
"statements": [
{
"value": {
"type": "wbstringvariable",
"columnName": "BHL Page ID"
},
"qualifiers": [],
"references": [],
"mode": "add_or_merge",
"mergingStrategy": {
"type": "snak",
"valueMatcher": {
"type": "lax"
}
}
}
]
},
{
"property": {
"type": "wbpropconstant",
"pid": "P170",
"label": "creator",
"datatype": "wikibase-item"
},
"statements": [
{
"value": {
"type": "wbentityvariable",
"columnName": "Illustrator"
},
"qualifiers": [
{
"prop": {
"type": "wbpropconstant",
"pid": "P518",
"label": "applies to part",
"datatype": "wikibase-item"
},
"value": {
"type": "wbentityidvalueconstant",
"id": "Q112134971",
"label": "analog work"
}
}
],
"references": [],
"mode": "add_or_merge",
"mergingStrategy": {
"type": "snak",
"valueMatcher": {
"type": "lax"
}
}
}
]
},
{
"property": {
"type": "wbpropconstant",
"pid": "P571",
"label": "inception",
"datatype": "time"
},
"statements": [
{
"value": {
"type": "wbdatevariable",
"columnName": "Inception"
},
"qualifiers": [
{
"prop": {
"type": "wbpropconstant",
"pid": "P1480",
"label": "sourcing circumstances",
"datatype": "wikibase-item"
},
"value": {
"type": "wbentityidvalueconstant",
"id": "Q110290992",
"label": "no later than"
}
},
{
"prop": {
"type": "wbpropconstant",
"pid": "P518",
"label": "applies to part",
"datatype": "wikibase-item"
},
"value": {
"type": "wbentityidvalueconstant",
"id": "Q112134971",
"label": "analog work"
}
}
],
"references": [
{
"snaks": [
{
"prop": {
"type": "wbpropconstant",
"pid": "P887",
"label": "based on heuristic",
"datatype": "wikibase-item"
},
"value": {
"type": "wbentityidvalueconstant",
"id": "Q110393725",
"label": "inferred from publication date"
}
}
]
}
],
"mode": "add_or_merge",
"mergingStrategy": {
"type": "snak",
"valueMatcher": {
"type": "lax"
}
}
}
]
}
],
"nameDescs": []
}
],
"siteIri": "https: //commons.wikimedia.org/entity/",
"entityTypeSiteIRI": {
"item": "http://www.wikidata.org/entity/",
"property": "http://www.wikidata.org/entity/",
"mediainfo": "https://commons.wikimedia.org/entity/"
},
"mediaWikiApiEndpoint": "https://commons.wikimedia.org/w/api.php"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment