Skip to content

Instantly share code, notes, and snippets.

$ 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
Q1110953
Q112805954
Q11343
Q1158611
Q1231010
Q1246438
Q1250699
Q1252653
Q1256434
Q12955913
@acka47
acka47 / example-oer.json
Last active July 30, 2019 12:42
Example file for skohub-editor
{
"@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 July 19, 2019 18:41
List of service types in lobid-organisations / German ISIL registry
$ 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"
{
"@context":{
"@vocab":"http://schema.org/",
"@language":"de",
"description":{
"@container":"@language"
},
"label":{
"@container":"@language"
},
@acka47
acka47 / hbzid.txt
Created February 5, 2019 08:19
lobid-Titel, die mit der NWBib-Sach- oder Ortssystematik erfasst sind und aus der ZDB kommen aber nicht der NWBib zugerechnet werden
$ 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 January 8, 2019 13:44
All the unique qids including notation from NWBib spatial notations 10, 12, 14, 23, 28, 52, 54, 72, 74
[
{
"qid": "http://www.wikidata.org/entity/Q1017",
"notation": "28"
},
{
"qid": "http://www.wikidata.org/entity/Q1020097",
"notation": "10"
},
{
{
"@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",
<http://lobid.org/hbz01/BT000110055> <http://www.w3.org/2000/01/rdf-schema#label> "hbz-Ressource BT000110055 im Exportformat MAB2-XML" .
<http://lobid.org/hbz01/BT000110055> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/DataFeedItem> .
<http://lobid.org/hbz01/BT000110055> <http://purl.org/lobid/lv#inDataset> <https://datahub.io/dataset/hbz_unioncatalog> .
_:B902X5FX5FX3AUmweltschutz <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.loc.gov/mads/rdf/v1#ComplexSubject> .
_:B902X5FX5FX3AUmweltschutz <http://www.loc.gov/mads/rdf/v1#componentList> _:B605a3bdca8588ed2566e97256f579ec9 .
_:B605a3bdca8588ed2566e97256f579ec9 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> _:BUmweltschutz .
_:B605a3bdca8588ed2566e97256f579ec9 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:Bcb08a5afb2cbf3eff5852818f6173d32 .
<http://purl.org/lobid/nwbib#s102000> <http://id.loc.gov/ontologies/bibframe/source> <http://purl.org/lobid/nwbib> .
<http://purl.org/lobid/nwbib#s102000> <http://www.w3.org
@acka47
acka47 / not-matched-coverage_other-notations.txt
Last active October 9, 2018 11:46
Nicht gematchte GSW sonstiger Notationen
$ curl "http://lobid.org/resources/search?q=inCollection.id%3A%22http%3A%2F%2Flobid.org%2Fresources%2FHT014176012%23%21%22+AND+_exists_%3Acoverage+AND+NOT+coverage%3A%2899+OR+97+OR+96+OR+36+OR+35%29+AND+NOT+_exists_%3Aspatial&format=bulk" | jq -r .coverage[] | sort | uniq -c | sort -nr > not-matched-coverage_other-notations.txt
479 Münsterland <West> | 10
91 Sauerland <Nord> | 14
79 Sauerland <Süd> | 14
56 Sauerland <West> | 14
51 Münsterland <Ost> | 10
40 Münsterland <Nord> | 10
34 Sauerland <Ost> | 14
33 Münsterland <Süd> | 10