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
| <?php | |
| define('SECONDS_TO_CACHE', 30 /* dagen */ * 24 /* uur */ * 3600 /* seconden */); | |
| define('CACHE_DIRECTORY', '****' ); // deze directory moet bestaan op het bestandssysteem | |
| # Beperk het aantal domeinen die via deze proxy opgevraagd en gecachet mogen worden: | |
| $toegestaneDomeinen = [ | |
| "https://mapwarper.net/" => "mapwarper.net", | |
| "https://gis.gouda.nl/" => "gis.gouda.nl", | |
| "https://geo.rug.nl/" => "geo.rug.nl" |
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
| <?php | |
| $displayCount = $displayCount ?? false; | |
| $displayDescription = $displayDescription ?? false; | |
| $linkEmpty = $linkEmpty ?? true; | |
| ?> | |
| <?php if (!empty($itemSetsTree)): ?> | |
| <ul class="item-sets-tree"> | |
| <?php foreach ($itemSetsTree as $itemSetsTreeNode): ?> | |
| <?php $itemSet = $itemSetsTreeNode['itemSet']; ?> | |
| <?php if ($displayCount || !$linkEmpty): ?> |
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
| import re | |
| import sys | |
| import mmap | |
| def build_swap_dict_fast(filename): | |
| swap = {} | |
| sameas_pattern = re.compile(rb'<(.*?)>\s*<http://www\.w3\.org/2002/07/owl#sameAs>\s*<(.*?)>') | |
| with open(filename, "rb") as f: | |
| mm = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ) |
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
| #!/usr/bin/bash | |
| # This Bash script requires an .env file with the following lines: | |
| # SERVER=https://triplestore.netwerkdigitaalerfgoed.nl | |
| # USERNAME=username_with_admin_privileges | |
| # PASSWORD=password | |
| # REPOSITORY=registry | |
| # Exit immediately if a command exits with a non-zero status. | |
| set -e |
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
| import {Store} from 'n3'; | |
| import {readFile} from 'node:fs/promises'; | |
| import {resolve} from 'node:path'; | |
| import {Dataset, Distribution} from './dataset.js'; | |
| import {Failure, NotSupported, Success} from './pipeline.js'; | |
| import {Stream} from '@rdfjs/types'; | |
| import {SparqlEndpointFetcher} from 'fetch-sparql-endpoint'; | |
| import type {Readable} from 'node:stream'; | |
| export interface Analyzer { |
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 | |
| url_tsv_file="urls.$(date +%Y%m%d).tsv" | |
| report_file="report.$(date +%Y%m%d).tsv" | |
| echo "1. Getting all accessURL and downloadURL values from https://triplestore.netwerkdigitaalerfgoed.nl/sparql to store in $url_tsv_file" | |
| curl 'https://triplestore.netwerkdigitaalerfgoed.nl/repositories/registry' \ | |
| -H 'X-GraphDB-Repository: registry' \ | |
| -H 'X-Requested-With: XMLHttpRequest' \ |
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
| # conversion via https://converter.zazuko.com/ | |
| @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
| @prefix dc11: <http://purl.org/dc/elements/1.1/> . | |
| @prefix dcterms: <http://purl.org/dc/terms/> . | |
| @prefix skos: <http://www.w3.org/2004/02/skos/core#> . | |
| <https://archief.nl/doc/fotorecord/f33a864a-1f8c-4697-2303-5c4e56c39011> a <https://archief.nl/def/ontologie/Recordaggregatie> ; | |
| <http://www.openarchives.org/ore/terms/aggregates> <https://archief.nl/id/beschrijving/f33a864a-1f8c-4697-2303-5c4e56c39011> . |
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
| GEDCOM Document := | |
| 0 <<HEADER>> {1:1} | |
| 0 <<RECORD>> {0:M} | |
| 0 TRLR {1:1} | |
| RECORD := | |
| [ | |
| n <<FAMILY_RECORD>> {1:1} | |
| | | |
| n <<INDIVIDUAL_RECORD>> {1:1} |
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
| GEDCOM_FILE:= | |
| 0 <<GEDCOM_HEADER>> {1:1} | |
| +1 <<GEDCOM_FORM_HEADER_EXTENSION>> {1:1} | |
| 0 <<FORM_RECORDS>> {1:1} | |
| 0 <<GEDCOM_TRAILER>> {1:1} | |
| CHARACTER_ENCODING:= {Size=5|7} | |
| [ UTF-8 | UNICODE | ANSEL | ASCII ] | |
| GEDCOM_VERSION_NUMBER:= {Size=3:11} |
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
| Response 400: http://geldersarchief.brpinternet.nl/nl/producttemplates/defprodtempl.htm?prod=222 | |
| Response 400: http://www.europeana.eu/portal/search.html?start=50017&query=*%3A*&qf=TYPE:VIDEO | |
| Response 401: http://obplaza.obd.nl/prod/intranet/webgen.nsf | |
| Response 401: http://www.hum.uu.nl/memorie/index.php | |
| Response 401: http://www.scj.nl/OverOns/Overledenen/InMemoriamboek.aspx | |
| Response 403: http://ad01.vtech.fr/ | |
| Response 403: http://adresboeken.geschiedenisvanalkmaar.nl/ | |
| Response 403: http://bouwdossiers.groningen.nl/ | |
| Response 403: http://casper.frontier.nl/ | |
| Response 403: http://kamertweets.nl/ |
NewerOlder