This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"entries" : [ | |
{ | |
"authors" : [ | |
{ | |
"claims" : {}, | |
"labels" : { | |
"fr" : "Andreas Malm" | |
}, | |
"resolved" : false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs') | |
const { createWorker } = require('tesseract.js') | |
module.exports = coverReader = () => { | |
// sample is a JSON dowload from : | |
// https://query.inventaire.io/#%23Editions%20without%20cover%0ASELECT%20%3Fcover%20%3Fiso%20WHERE%20%7B%0A%20%20%3Fedition%20wdt%3AP31%20wd%3AQ3331189%20.%0A%20%20%3Fedition%20wdt%3AP407%20%3Flang%20.%0A%20%20%3Fedition%20invp%3AP2%20%3Fcover%20.%0A%20%20SERVICE%20wdq%3Asparql%20%7B%20%3Flang%20wdt%3AP220%20%3Fiso%20.%20%7D%0A%7D%0ALIMIT%20100 | |
const file = "./img_samples2.json" | |
const samples = JSON.parse(fs.readFileSync(file)) | |
sequentialRead(samples) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Update series of some works | |
# Find works serie parts and replace results serie claim value with a new serie uri | |
# | |
set -o errexit | |
set -o nounset | |
host="http://localhost:3006" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PREFIX owl: <http://www.w3.org/2002/07/owl#> | |
PREFIX wds: <http://www.wikidata.org/entity/statement/> | |
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#> | |
PREFIX wdata: <http://www.wikidata.org/wiki/Special:EntityData/> | |
PREFIX p: <http://www.wikidata.org/prop/> | |
PREFIX wd: <http://www.wikidata.org/entity/> | |
PREFIX wdno: <http://www.wikidata.org/prop/novalue/> | |
PREFIX wdref: <http://www.wikidata.org/reference/> | |
PREFIX ps: <http://www.wikidata.org/prop/statement/> | |
PREFIX pq: <http://www.wikidata.org/prop/qualifier/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inventaire_1 | ****** couch init ****** | |
inventaire_1 | { ok: true, | |
inventaire_1 | operations: | |
inventaire_1 | { users: { created: true }, | |
inventaire_1 | groups: { created: true }, | |
inventaire_1 | items: { created: true }, | |
inventaire_1 | transactions: { created: true }, | |
inventaire_1 | comments: { created: true }, | |
inventaire_1 | entities: { created: true }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
thx to lint | |
ie. score => path/to/file#lines | |
7 => controllers/auth/update_password.coffee#11-39 | |
7 => controllers/entities/lib/create_entity.coffee#32-46 | |
7 => controllers/entities/lib/get_entities_by_uris.coffee#21-49 | |
7 => controllers/entities/lib/update_wd_claim.coffee#11-37 | |
7 => controllers/entities/merge.coffee#49-70 | |
7 => data/commons/thumb.coffee#42-60 | |
8 => controllers/entities/images.coffee#19-49 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var path = require('path'); | |
var webpack = require('webpack'); | |
var StatsPlugin = require('stats-webpack-plugin'); | |
var ExtractTextPlugin = require('extract-text-webpack-plugin') | |
var devServerPort = 3808; | |
var production = process.env.TARGET === 'production'; |