Modelling/Documents: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 13: | Line 13: | ||
! Required !! Property !! Example value !! Notes | ! Required !! Property !! Example value !! Notes | ||
|- | |- | ||
| IF EXISTS || {{P|P1}}|| | | IF EXISTS || {{P|P1}}|| Q12323 || If a document is relevant for Wikidata (e.g. a scholarly article) and has an item there. | ||
|- | |- | ||
| REQUIRED || {{P|P5}} || {{Q|Q29}} || See [https://metabase.wikibase.cloud/query/#%23All%20types%20of%20documents%20and%20their%20Wikidata%20equivalents%0APREFIX%20wb%3A%20%3Chttps%3A%2F%2Fmetabase.wikibase.cloud%2Fentity%2F%3E%0APREFIX%20wbt%3A%20%3Chttps%3A%2F%2Fmetabase.wikibase.cloud%2Fprop%2Fdirect%2F%3E%0ASELECT%20%3Fitem%20%3FitemLabel%20%3Fwikidata_iri%0AWHERE%0A%7B%0A%3Fitem%20wbt%3AP4%2a%20wb%3AQ21.%0AOPTIONAL%20%7B%3Fitem%20wbt%3AP1%20%3FwikidataQ%7D%0ABIND%28URI%28concat%28%22http%3A%2F%2Fwww.wikidata.org%2Fentity%2F%22%2C%20%3FwikidataQ%29%29%20AS%20%3Fwikidata_iri%29%0ASERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22en%2Csv%22.%20%7D%0A%7D all available types of documents] | | REQUIRED || {{P|P5}} || {{Q|Q29}} || See [https://metabase.wikibase.cloud/query/#%23All%20types%20of%20documents%20and%20their%20Wikidata%20equivalents%0APREFIX%20wb%3A%20%3Chttps%3A%2F%2Fmetabase.wikibase.cloud%2Fentity%2F%3E%0APREFIX%20wbt%3A%20%3Chttps%3A%2F%2Fmetabase.wikibase.cloud%2Fprop%2Fdirect%2F%3E%0ASELECT%20%3Fitem%20%3FitemLabel%20%3Fwikidata_iri%0AWHERE%0A%7B%0A%3Fitem%20wbt%3AP4%2a%20wb%3AQ21.%0AOPTIONAL%20%7B%3Fitem%20wbt%3AP1%20%3FwikidataQ%7D%0ABIND%28URI%28concat%28%22http%3A%2F%2Fwww.wikidata.org%2Fentity%2F%22%2C%20%3FwikidataQ%29%29%20AS%20%3Fwikidata_iri%29%0ASERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22en%2Csv%22.%20%7D%0A%7D all available types of documents] |
Revision as of 12:30, 10 May 2023
Modeling a document
Example items
- Final report: Strategic Inclusion of Library Data in Wikidata 2018 ‒ final report (Q35)
- White paper: WMSE white paper on Structured Data on Commons (Q89)
- Application: Strategic Inclusion of Library Data in Wikidata 2018 ‒ application (Q74)
- Poster: Wikidata as an open, collaborative bibliographic database: the case of the National Library of Sweden (Q45)
Properties used
Required | Property | Example value | Notes |
---|---|---|---|
IF EXISTS | same as on Wikidata (P1) | Q12323 | If a document is relevant for Wikidata (e.g. a scholarly article) and has an item there. |
REQUIRED | instance of (P5) | report (Q29) | See all available types of documents |
REQUIRED | main subject (P15) | Wikidata (Q20) | |
REQUIRED | title (P8) | Wikidata as an open, collaborative bibliographic database: the case of the National Library of Sweden | |
language of work or name (P20) | English (Q32) | ||
publication date (P18) | 31 July 2019 | If no specific date can be identified, month or year is enough | |
addressee (P29) | National Library of Sweden (Q75) | For grant applications, open letters and similar documents with a specific recipient | |
publisher (P21) | Wikimedia Sverige (Q9) | ||
author (P19) | Axel Pettersson (Q77) | ||
part of (P17) | Strategic Inclusion of Library Data in Wikidata 2018 ‒ final report (Q35) | For documents that have several parts which are so clearly identifiable that they can get own items, e.g. chapters in an anthology. | |
has part(s) (P35) | Q96 | For documents that have several parts which are so clearly identifiable that they can get own items, e.g. chapters in an anthology. | |
produced in the scope of the project (P36) | Wikidata for authority control (Q14) | Connects the document with the project (Q2) it was produced for. Note that a document that describes a project (and thus has it as main subject (P15)) can be created after the project has ended, and thus formally "belong" to another project's scope. | |
document file on Wikimedia Commons (P22) | LIBER 2020 Poster WMSE.pdf | ||
described at Wikimedia-page (P11) | :wmse:Projekt:Strategisk_inkludering_av_biblioteksdata_på_Wikidata_2018/Rapportering/Inklusionsguide | Link to a Wikimedia page where the project is described, using an interwiki prefix. |
SPARQL
Find all documents:
PREFIX wb: <https://metabase.wikibase.cloud/entity/>
PREFIX wbt: <https://metabase.wikibase.cloud/prop/direct/>
SELECT ?item ?itemLabel ?instance_of ?instance_ofLabel ?published
WHERE
{
?item wbt:P5/wbt:P4* wb:Q21.
?item wbt:P5 ?instance_of.
OPTIONAL {?item wbt:P18 ?published.}
SERVICE wikibase:label { bd:serviceParam wikibase:language "sv,en". }
}