# Inventaire
#### Tale of a Wikidata-centered linked open contributive database on resources
Maxime Lathuilière
<small>maxlath.eu - User:Maxlath - @maxlath</small>
<small>Berlin, 28 October 2017</small>
<small>find those slides at https://wiki.inventaire.io/wiki/Presentations-Slides</small>
---
### inventaire.io
Follow the project:
news.inventaire.io
@inventaire_io
@inventaire_dev
#inventaireio
facebook.com/inventaire.io
---
### 2 pillars
- book sharing web app
- open data on resources
<br>
### 1 mission
mapping resources with libre software and open knowledge (starting with books!)
---
### The organization
* 3 years in a (figurative) garage
* toward a non-profit structure (association loi 1901): a public service of private initiative
---
### Project History in 5 seconds
- January 2015: inventaire.io is online!
- 2016: building the internal contributive open database to extend Wikidata
- 2017: documented API, NDJSON/TTL dumps, entities popularity scores
---
### Projections
- 2017: SPARQL federation, reviews
- 2018: connecting to libraries & book shops inventories
- 2021: POTUS L. Lessig declares that all data on resources should be open, Amazon goes bankrupt
---
# Web app tour
- inventories
- add books search/scanner/import
- users / groups / nearby
- transactions
- entities: authors, works, editions, series, subjects => popularity ranking
---
### Where both pillars meet: **the editor interface**
Edit both Inventaire and Wikidata entities
ex: https://inventaire.io/entity/wd:Q3276730/edit
![editor](https://trello-attachments.s3.amazonaws.com/56e00fd7fbc3e6a2cc85aa56/803x625/2261e082efceca9a8a7598726a818b16/contributive_data.png)
---
### Data structure
URI-based Wikidata-mimicking data schema (labels, claims), but simplified and more strongly constrained to make edition easier by anyone
---
[![data_structure_work](https://user-images.githubusercontent.com/1596934/32133061-9a721446-bbd0-11e7-9ab0-03e768cb48d2.png)](https://inventaire.io/api/entities?action=by-uris&uris=wd:Q3209796)
---
[![data_structure_edition](https://user-images.githubusercontent.com/1596934/32133062-9a9044d4-bbd0-11e7-80d5-deff6e1b7e25.png)](https://inventaire.io/api/entities?action=by-uris&uris=isbn:9782070342266)
---
### Entities map
[![entities-map](https://raw.githubusercontent.com/inventaire/entities-map/master/screenshots/entities-map.png)](https://inventaire.github.io/entities-map/)
---
### RDF serialization
```
inv:1917e3d856a752b75e275743310dcc0c a wikibase:Item ;
rdfs:label "L'âge de la multitude"@fr ;
skos:prefLabel "L'âge de la multitude"@fr ;
wdt:P31 wd:Q571 ;
wdt:P50 inv:1917e3d856a752b75e275743310dc664,
wd:Q3132142 ;
wdt:P921 wd:Q173285,
wd:Q3908516 ;
wdt:P364 wd:Q150 .
```
---
<small>If your books are not for sharing, but that you still want to use the data</small>
**data.inventaire.io**
<small>documenting the data model and everything</small>
**api.inventaire.io**
<small>documenting the HTTP/JSON API</small>
**dumps.inventaire.io**
<small>get raw NDJSON or Turtle dumps</small>
**query.inventaire.io**
<small>SPARQL endpoint federated to Wikidata (*coming soon*)</small>
---
This is the data federation Wikidata needs:
- use Wikidata as the common vocabulary
- use domain-specific interfaces to get more eyes on the data, in a tailored, more constrained, user-friendly/proof way, ironing out data model issues <small>(I'm looking at you [WikiProject_Books](https://www.wikidata.org/wiki/Wikidata:WikiProject_Books))</small>
---
Difficulties to build a web app on top of Wikidata and suggested work arounds
- typed search => subset search engine
- inconsistent data => keep a list of aliases (tolerant typing) and filter-out the rest
- expensive SPARQL queries take time => cache everything
- (controversial) guerrilla illustration: there are more images links in Wikidata to one can see at first look (social networks profile pics URLs, open graph, ...)
---
### Search is hard
https://user-images.githubusercontent.com/1596934/28589758-b6233602-717f-11e7-9e85-d4cacde83eda.png
---
### The Future
[graph-powered inventory browsers](http://inventaire.io/inventory/browser)
Biggest difficulty: large graph parsing VS fast page load expectations
WIP: hidden feature
<!-- https://user-images.githubusercontent.com/1596934/32095401-56382a72-bb03-11e7-9907-4d211f9cb59e.png -->
---
even more entities edition from all over the app
### The Present
- pre-filled entity creation forms
### The Future
- add books to a subject by clicking suggestions or by search => create a wdt:P921 claim, etc
---
### The Future
book reviews, licensed CC-BY-SA by default, queryable from the API by Wikidata id
---
### The Future
using Inventaire data to improve Wikidata:
- entity imports
- inferences. example: ISBN publisher prefix (P3035)
---
### Sweets for the way
- sitelinks/external ids URI resolution
- .json
---
### Your contribution is very welcome!
* improving the data
* discussing features: roadmap.inventaire.io
* code: git.inventaire.io AGPL
* translate: translate.inventaire.io
* help spread the word! (and don't forget your sticker!)
---
### Questions ?
---
{"metaMigratedAt":"2023-06-14T14:44:30.503Z","metaMigratedFrom":"YAML","title":"Inventaire","breaks":"true","slideOptions":"{\"transition\":\"slide\"}","contributors":"[]"}