-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update and add Adamlink sources (#1296)
* feat: ATM as publisher * feat: update streets to new endpoint * feat: add addresses * chore: Remove unused publisher * chore: Fix casing --------- Co-authored-by: David de Boer <[email protected]>
- Loading branch information
1 parent
19ba682
commit c6118ab
Showing
7 changed files
with
194 additions
and
32 deletions.
There are no files selected for viewing
58 changes: 58 additions & 0 deletions
58
packages/network-of-terms-catalog/catalog/datasets/adamlink-adressen.jsonld
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"@context": "https://schema.org/docs/jsonldcontext.jsonld", | ||
"@id": "https://adamlink.nl/geo/addresses/start/", | ||
"@type": "Dataset", | ||
"name": [ | ||
{ | ||
"@language": "nl", | ||
"@value": "Adamlink: historische adressen in Amsterdam" | ||
} | ||
], | ||
"creator": [ | ||
{ | ||
"@id": "https://www.amsterdamtimemachine.nl" | ||
} | ||
], | ||
"url": [ | ||
"https://adamlink.nl/geo/address/" | ||
], | ||
"mainEntityOfPage": [ | ||
"https://adamlink.nl" | ||
], | ||
"description": [ | ||
{ | ||
"@language": "nl", | ||
"@value": "Historische adressen in Amsterdam" | ||
} | ||
], | ||
"inLanguage": "nl", | ||
"distribution": [ | ||
{ | ||
"@id": "https://api.lod.uba.uva.nl/datasets/ATM/ATM-KG/services/ATM-KG/sparql#adamlink-addresses", | ||
"@type": "DataDownload", | ||
"contentUrl": "https://api.lod.uba.uva.nl/datasets/ATM/ATM-KG/services/ATM-KG/sparql", | ||
"encodingFormat": "application/sparql-query", | ||
"potentialAction": [ | ||
{ | ||
"@type": "SearchAction", | ||
"query": "file://catalog/queries/search/adamlink-adressen.rq" | ||
}, | ||
{ | ||
"@type": "FindAction", | ||
"query": "file://catalog/queries/lookup/adamlink-adressen.rq" | ||
}, | ||
{ | ||
"@type": "Action", | ||
"target": { | ||
"@type": "EntryPoint", | ||
"actionApplication": { | ||
"@id": "https://reconciliation-api.github.io/specs/latest/", | ||
"@type": "SoftwareApplication" | ||
}, | ||
"urlTemplate": "https://termennetwerk-api.netwerkdigitaalerfgoed.nl/reconcile/{distribution}" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains 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
This file contains 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
49 changes: 49 additions & 0 deletions
49
packages/network-of-terms-catalog/catalog/queries/lookup/adamlink-adressen.rq
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
PREFIX hg: <http://rdf.histograph.io/> | ||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#> | ||
PREFIX owl: <http://www.w3.org/2002/07/owl#> | ||
PREFIX roar: <https://w3id.org/roar#> | ||
PREFIX schema: <https://schema.org/> | ||
PREFIX bag: <http://bag.basisregistraties.overheid.nl/def/bag#> | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
|
||
CONSTRUCT { | ||
?uri a skos:Concept ; | ||
skos:prefLabel ?prefLabel ; | ||
skos:altLabel ?altLabel ; | ||
skos:scopeNote ?scopeNote ; | ||
skos:exactMatch ?exactMatch_uri ; | ||
rdfs:seeAlso ?seeAlso_uri . | ||
|
||
?seeAlso_uri skos:prefLabel ?seeAlso_label . | ||
} | ||
WHERE { | ||
# For example: | ||
# Jodenbreestraat: <https://adamlink.nl/geo/street/jodenbreestraat/2158> | ||
# Damrak: <https://adamlink.nl/geo/street/damrak/882> | ||
|
||
VALUES ?uri { ?uris } | ||
|
||
GRAPH <https://lod.uba.uva.nl/ATM/Adamlink/graphs/addresses> { | ||
?uri a hg:Address . | ||
|
||
OPTIONAL { ?uri rdfs:label ?prefLabel } | ||
OPTIONAL { ?uri skos:altLabel ?altLabel } | ||
OPTIONAL { | ||
?uri roar:documentedIn ?source . | ||
?source rdfs:label ?source_name . | ||
BIND(CONCAT("Adres afkomstig van ", ?source_name) AS ?scopeNote) | ||
} | ||
OPTIONAL { ?uri owl:sameAs ?exactMatch_uri } # Has no labels. | ||
OPTIONAL { | ||
?exactMatch_uri a bag:Pand ; | ||
schema:geoContains ?geo . | ||
?uri schema:geoContains ?geo . | ||
} # A historical address is very similar to a bag:Pand | ||
OPTIONAL { | ||
?uri schema:geoContains ?geo . | ||
?seeAlso_uri schema:geoContains ?geo ; | ||
skos:altLabel ?seeAlso_label . | ||
} | ||
} | ||
} | ||
LIMIT 1000 |
This file contains 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
49 changes: 49 additions & 0 deletions
49
packages/network-of-terms-catalog/catalog/queries/search/adamlink-adressen.rq
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
PREFIX hg: <http://rdf.histograph.io/> | ||
PREFIX owl: <http://www.w3.org/2002/07/owl#> | ||
PREFIX bif: <http://www.openlinksw.com/schemas/bif#> | ||
PREFIX skos: <http://www.w3.org/2004/02/skos/core#> | ||
PREFIX roar: <https://w3id.org/roar#> | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
PREFIX bag: <http://bag.basisregistraties.overheid.nl/def/bag#> | ||
PREFIX schema: <https://schema.org/> | ||
|
||
CONSTRUCT { | ||
?uri a skos:Concept ; | ||
skos:prefLabel ?prefLabel ; | ||
skos:altLabel ?altLabel ; | ||
skos:scopeNote ?scopeNote ; | ||
skos:exactMatch ?exactMatch_uri ; | ||
rdfs:seeAlso ?seeAlso_uri . | ||
|
||
?seeAlso_uri skos:prefLabel ?seeAlso_label . | ||
} | ||
WHERE { | ||
GRAPH <https://lod.uba.uva.nl/ATM/Adamlink/graphs/addresses> { | ||
?uri a hg:Address . | ||
?uri ?predicate ?label . | ||
|
||
VALUES ?predicate { rdfs:label skos:prefLabel skos:altLabel } | ||
|
||
?label <bif:contains> ?virtuosoQuery . | ||
|
||
OPTIONAL { ?uri rdfs:label ?prefLabel } | ||
OPTIONAL { ?uri skos:altLabel ?altLabel } | ||
OPTIONAL { | ||
?uri roar:documentedIn ?source . | ||
?source rdfs:label ?source_name . | ||
BIND(CONCAT("Adres afkomstig van ", ?source_name) AS ?scopeNote) | ||
} | ||
OPTIONAL { ?uri owl:sameAs ?exactMatch_uri } | ||
OPTIONAL { | ||
?exactMatch_uri a bag:Pand ; | ||
schema:geoContains ?geo . | ||
?uri schema:geoContains ?geo . | ||
} # A historical address is very similar to a bag:Pand | ||
OPTIONAL { | ||
?uri schema:geoContains ?geo . | ||
?seeAlso_uri schema:geoContains ?geo ; | ||
skos:altLabel ?seeAlso_label . | ||
} | ||
} | ||
} | ||
LIMIT 1000 |
This file contains 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