Skip to content

Instantly share code, notes, and snippets.

Adrian acka47

Block or report user

Report or block acka47

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@acka47
acka47 / nwbib-place-strings-2017.txt
Last active Oct 21, 2019
Distinct place strings in NWBib data as of May 2017 including occurence count
View nwbib-place-strings-2017.txt
4865 "Aachen"
4 "Aachen-Bildchen"
27 "Aachen-Brand"
50 "Aachen-Burtscheid"
1 "Aachen-Deltourserb"
125 "Aachen <Diözese>"
15 "Aachen (Diözese)"
6 "Aachen-Eilendorf"
3 "Aachen-Forst"
3 "Aachen-Frankenberg"
@acka47
acka47 / test.json
Last active Oct 17, 2019
test file for generating hbz01 update file for NWBib
View test.json
{
"@context":"http://lobid.org/resources/context.jsonld",
"id":"http://lobid.org/resources/search?q=inCollection.id%3A%22http%3A%2F%2Flobid.org%2Fresources%2FHT014176012%23%21%22",
"totalItems":423497,
"member":[
{
"coverage":[
"Bergkamen | 99"
],
"oclcNumber":[
View wd-types-in-nwbib.txt
$ curl --header "Accept: application/x-jsonlines" "https://stage.lobid.org/resources?q=inCollection.id:http%3A%2F%2Flobid.org%2Fresources%2FHT014176012%23!&format=jsonl" | jq -r spatial[].focus.type[] | sort | uniq -c | sort -nr > wd-types-in-nwbib.txt
230581 http://www.wikidata.org/entity/Q42744322
145138 http://www.wikidata.org/entity/Q262166
141937 http://www.wikidata.org/entity/Q1549591
131171 http://www.wikidata.org/entity/Q22865
122414 http://www.wikidata.org/entity/Q707813
55073 http://www.wikidata.org/entity/Q82794
51621 http://www.wikidata.org/entity/Q253019
48301 http://www.wikidata.org/entity/Q54935786
View gist:e6870164a0f7ef9d5772d0ee5f0e1827
Q1110953
Q112805954
Q11343
Q1158611
Q1231010
Q1246438
Q1250699
Q1252653
Q1256434
Q12955913
@acka47
acka47 / example-oer.json
Last active Jul 30, 2019
Example file for skohub-editor
View example-oer.json
{
"@context":{
"@vocab": "http://schema.org/",
"name": {
"@id": "http://schema.org/name",
"@container": "@language"
},
"description": {
"@id": "http://schema.org/description",
"@container": "@language"
@acka47
acka47 / servicetypes.txt
Last active Jul 19, 2019
List of service types in lobid-organisations / German ISIL registry
View servicetypes.txt
$ curl "https://lobid.org/organisations/search?q=_exists_:availableChannel.serviceType&size=200" | jq .member[].availableChannel[].serviceType | sort | uniq -c | sort -nr > servicetypes.txt
34 "Nutzung"
30 "Standort"
29 "Öffnungszeiten"
18 "Gebühren"
11 "Kontaktformular"
9 "weitere Service-URL"
7 "Weitere URL"
6 "weitere URL"
View service-card-multilang-example.json
{
"@context":{
"@vocab":"http://schema.org/",
"@language":"de",
"description":{
"@container":"@language"
},
"label":{
"@container":"@language"
},
@acka47
acka47 / hbzid.txt
Created Feb 5, 2019
lobid-Titel, die mit der NWBib-Sach- oder Ortssystematik erfasst sind und aus der ZDB kommen aber nicht der NWBib zugerechnet werden
View hbzid.txt
$ curl 'http://lobid.org/resources/search?q=subject.source.id%3A%28"http%3A%2F%2Fpurl.org%2Flobid%2Fnwbib"+OR+"http%3A%2F%2Fpurl.org%2Flobid%2Fnwbib-spatial"%29+AND+inCollection.id%3A"http%3A%2F%2Flobid.org%2Fresources%2FHT014846970%23%21"+AND+NOT+inCollection.id%3A"http%3A%2F%2Flobid.org%2Fresources%2FHT014176012%23%21"&format=jsonl' | jq -r .hbzId > hbzid.txt
HT019574369
HT018163733
HT018310287
HT019584208
HT019319408
HT006988090
HT019340576
HT018891021
@acka47
acka47 / unique-qids-non9*s.json
Last active Jan 8, 2019
All the unique qids including notation from NWBib spatial notations 10, 12, 14, 23, 28, 52, 54, 72, 74
View unique-qids-non9*s.json
[
{
"qid": "http://www.wikidata.org/entity/Q1017",
"notation": "28"
},
{
"qid": "http://www.wikidata.org/entity/Q1020097",
"notation": "10"
},
{
View gist:03b8e7908be6c6895f97189d9abe883a
{
"@id": "http://lobid.org/resources/BT000110055#!",
"@type": [
"http://purl.org/ontology/bibo/Book",
"http://purl.org/dc/terms/BibliographicResource"
],
"http://id.loc.gov/ontologies/bibframe/contribution": {
"@list": [
{
"@type": "http://id.loc.gov/ontologies/bibframe/Contribution",
You can’t perform that action at this time.