Modelling/Documents: Difference between revisions
Jump to navigation
Jump to search
(→SPARQL) |
|||
Line 15: | Line 15: | ||
|REQUIRED || {{P|P8}} || ''Wikidata as an open, collaborative bibliographic database: the case of the National Library of Sweden'' || | |REQUIRED || {{P|P8}} || ''Wikidata as an open, collaborative bibliographic database: the case of the National Library of Sweden'' || | ||
|- | |- | ||
| || {{P|P20}} || {{Q|Q32}} || | | || {{P|P20}} || {{Q|Q32}} || | ||
|- | |- | ||
| || {{P|P18}} || 31 July 2019 || If no specific date can be identified, month or year is enough | | || {{P|P18}} || 31 July 2019 || If no specific date can be identified, month or year is enough | ||
Line 33: | Line 33: | ||
| || {{P|P11}} || '':wmse:Projekt:Strategisk_inkludering_av_biblioteksdata_på_Wikidata_2018/Rapportering/Inklusionsguide'' || Link to a Wikimedia page where the project is described, using an [https://en.wikipedia.org/wiki/Help:Interwiki_linking interwiki prefix]. | | || {{P|P11}} || '':wmse:Projekt:Strategisk_inkludering_av_biblioteksdata_på_Wikidata_2018/Rapportering/Inklusionsguide'' || Link to a Wikimedia page where the project is described, using an [https://en.wikipedia.org/wiki/Help:Interwiki_linking interwiki prefix]. | ||
|} | |} | ||
==SPARQL== | ==SPARQL== | ||
Find all documents: | Find all documents: |
Revision as of 08:54, 10 May 2023
Modeling a document
Properties used
Required | Property | Example value | Notes |
---|---|---|---|
IF EXISTS | same as on Wikidata (P1) | ||
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. | |
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". }
}