Jump to content

Wikidata:WikiProject Libraries

Shortcut: WD:LIB
From Wikidata



The aim of the WikiProject Libraries is to define a structure for libraries and to create and improve the items about library.

Libraries on Wikidata

[edit]

There are currently 144,327 libraries with Wikidata items (April 2024). Quick query


Ontology

[edit]

The aim of this subproject is to improve the level of precision with which we are classifying libraries on Wikidata.

As of 2019-2020, a majority of libraries are still classed simply as instance of (P31)library (Q7075). This was noted during a refinement for an import of metadata from the region Tuscany (See here), which lead to a dedicated discussion in here

In 2025 it was proposed on the Telegram chats of the WikiProject Ontology and of the Gruppo Wikidata per Musei, Archivi e Biblioteche (Q106447634) to start again a discussion on this topic to get a more robust results.[1]

Analysis

[edit]

This query shows most of the existing subclasses of library (Q7075) (the ones which are used at least one time as instance of (P31) or have instance of (P31)type of library (Q25397890)):

SELECT ?library ?libraryLabel
WHERE {
  ?singlelibrary wdt:P31 ?library .
  { ?library wdt:P279 wd:Q7075 . } UNION { ?library wdt:P31 wd:Q25397890 . }
    SERVICE wikibase:label { bd:serviceParam wikibase:language "en,it,[AUTO_LANGUAGE]". }
}
GROUP BY ?library ?libraryLabel
Try it!

Classification

[edit]

Below is a list of possible statements that could be used to improve the classification:

instance of (P31):

Please feel free to add to the list.

External IDs

[edit]
[edit]

Queries

[edit]
SELECT DISTINCT ?item ?itemLabel ?itemDescription WHERE {
  ?item wdt:P31/wdt:P279* wd:Q7075 .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Try it!
#most used properties on library
SELECT ?property ?propertyLabel ?propertyDescription ?count WHERE { 
	{
		select ?propertyclaim (COUNT(*) AS ?count) where {
			?item wdt:P31/wdt:P279* wd:Q7075 .
			?item ?propertyclaim [] .
		} group by ?propertyclaim 
	}
	?property wikibase:claim ?propertyclaim .
	SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . }
} ORDER BY DESC (?count)
Try it!

Participants

[edit]

The participants listed below can be notified using the following template in discussions:
{{Ping project|Libraries}}

  1. The article that originated this idea will be cited here as soon as it is (hopefully) published