Skip to content

Commit

Permalink
Add 3 configurations (#1)
Browse files Browse the repository at this point in the history
* Added 3 new configurations for the heritageflix.

* Add names

* Remove unused images

* Move

* Deploy new instances

---------

Co-authored-by: David de Boer <[email protected]>
  • Loading branch information
SVis760 and ddeboer committed Apr 4, 2024
1 parent d90e7de commit d0c7861
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
config:
- churches
- paintings
- modemuze-materials
- modemuze-periods
- zuiderzeemuseum-locations

environment:
name: heritageflix-${{ matrix.config }}
Expand Down
3 changes: 3 additions & 0 deletions modemuze-materials/branding.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name": "Modemuze: materiaal"
}
5 changes: 5 additions & 0 deletions modemuze-materials/queries.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"baseUrl": "https://api.data.netwerkdigitaalerfgoed.nl/datasets/modemuze/kg-v1/services/kg-v1/sparql",
"categoryQuery": "prefix xsd: <http://www.w3.org/2001/XMLSchema#> prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix schema: <https://schema.org/> prefix skos: <http://www.w3.org/2004/02/skos/core#> select ?id ?name (count(?heritageObject) as ?numberOfHeritageObjects) where { ?heritageObject a schema:CreativeWork ; schema:dateCreated ?startJaar ; schema:material/skos:broader ?id . ?id skos:prefLabel ?name . filter(lang(?name) = 'nl') } order by ?name LIMIT _LIMIT_",
"itemsQuery": "prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix schema: <https://schema.org/> prefix xsd: <http://www.w3.org/2001/XMLSchema#> prefix skos: <http://www.w3.org/2004/02/skos/core#> select distinct * where { select ?heritageObject ?name ?description ?imageURI ?imageLicenseURI ?imageLicenseName ?materialName ?publisherURI ?publisherName where { bind(<_CATEGORYID_> as ?materialURI) ?heritageObject a schema:CreativeWork ; schema:name ?name ; schema:description ?description ; schema:material/skos:broader ?materialURI ; schema:material/skos:broader/skos:prefLabel ?materialName ; schema:image ?image ; schema:image/schema:contentUrl ?imageURI ; schema:image/schema:license ?imageLicenseURI ; schema:publisher ?publisherURI ; schema:publisher/schema:name ?publisherName . filter(lang(?materialName) = 'nl') BIND('license unknown' AS ?imageLicenseName) } } order by ?materialName LIMIT _LIMIT_ OFFSET _OFFSET_"
}
3 changes: 3 additions & 0 deletions modemuze-periods/branding.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name": "Modemuze: stijlperiodes"
}
6 changes: 6 additions & 0 deletions modemuze-periods/queries.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"baseUrl": "https://api.data.netwerkdigitaalerfgoed.nl/datasets/modemuze/kg-v1/services/kg-v1/sparql",
"categoryQuery": "PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX schema: <https://schema.org/> SELECT Distinct ?id ?startDate (COUNT(?heritageObject) AS ?numberOfHeritageObjects) (?category AS ?name) WHERE { ?heritageObject a schema:CreativeWork ; schema:dateCreated ?startYear . BIND(xsd:integer(SUBSTR(STR(REPLACE(?startYear, '[^0-9]', '')), 1, 4)) AS ?year) BIND( IF( COALESCE(xsd:integer(?year), 0) <= 1599, 'renaissance'@nl, IF( COALESCE(xsd:integer(?year), 0) <= 1749, 'barok'@nl, IF( COALESCE(xsd:integer(?year), 0) <= 1859, 'classicisme'@nl, IF( COALESCE(xsd:integer(?year), 0) <= 1889, 'impressionistisch'@nl, IF( COALESCE(xsd:integer(?year), 0) <= 1969, 'modernistisch'@nl, IF( COALESCE(xsd:integer(?year), 0) >= 1970, 'postmodern'@nl, '' ) ) ) ) ) ) AS ?category) BIND( IF( COALESCE(?category, '') = 'renaissance'@nl, uri(<http://vocab.getty.edu/aat/300021140>), IF( COALESCE(?category,'') = 'barok'@nl, uri(<http://vocab.getty.edu/aat/300021147>), IF( COALESCE(?category, '') = 'classicisme'@nl, uri(<http://vocab.getty.edu/aat/300056513>), IF( COALESCE(?category, '') = 'impressionistisch'@nl, uri(<http://vocab.getty.edu/aat/300021503>), IF( COALESCE(?category, '') = 'modernistisch'@nl, uri(<http://vocab.getty.edu/aat/300021474>), IF( COALESCE(?category, '') = 'postmodern'@nl, uri(<http://vocab.getty.edu/aat/300022208>), '' ) ) ) ) ) ) AS ?id) BIND( IF( COALESCE(?category, '') = 'renaissance'@nl, xsd:integer('1450'), IF( COALESCE(?category,'') = 'barok'@nl, xsd:integer('1600'), IF( COALESCE(?category, '') = 'classicisme'@nl, xsd:integer('1750'), IF( COALESCE(?category, '') = 'impressionistisch'@nl, xsd:integer('1860'), IF( COALESCE(?category, '') = 'modernistisch'@nl, xsd:integer('1890'), IF( COALESCE(?category, '') = 'postmodern'@nl, xsd:integer('1970'), '' ) ) ) ) ) ) AS ?startDate) } ORDER BY ?startDate LIMIT _LIMIT_",
"itemsQuery": "PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX schema: <https://schema.org/> SELECT ?heritageObject ?name ?dateCreated ?stijlperiode ?publisherName ?publisherURI ?publisherHomepage ?creators ?creatorNames ?description ?imageURI ?imageLicenseName ?imageLicenseURI WHERE { BIND(<_CATEGORYID_> AS ?period) { ?heritageObject a schema:CreativeWork ; schema:name ?name ; schema:description ?description ; schema:dateCreated ?date ; schema:image/schema:contentUrl ?imageURI ; schema:image/schema:license ?imageLicenseURI ; schema:publisher ?publisherHomepage ; schema:publisher/schema:name ?publisherName . OPTIONAL { ?heritageObject schema:publisher/schema:mainEntityOfPage ?publisherURI } BIND(xsd:integer(substr(str(replace(?date, '[^0-9]', '')), 1, 4)) as ?dateCreated) BIND(if(regex(str(coalesce(?imageLicenseURI, '')), '.*creativecommons.*1\\.0.*', 'i'), 'Creative Commons 1.0', 'niet beschikbaar') as ?imageLicenseName) BIND('onbekend' as ?creators) BIND('onbekend' as ?creatorNames) BIND(if(coalesce(?dateCreated, 0) <= 1599,'renaissance'@nl, if(coalesce(?dateCreated, 0) <= 1749, 'barok'@nl, if(coalesce(?dateCreated, 0) <= 1859,'classicisme'@nl, if(coalesce(?dateCreated, 0) <= 1889, 'impressionistisch'@nl, if(coalesce(?dateCreated, 0) <= 1969, 'modernistisch'@nl, if(coalesce(?dateCreated, 0) >= 1970, 'postmodern'@nl, '' ) ) ) ) ) ) as ?stijlperiode) BIND(if(coalesce(?stijlperiode, '') = 'renaissance'@nl, uri(<http://vocab.getty.edu/aat/300021140>), if(coalesce(?stijlperiode,'') = 'barok'@nl, uri(<http://vocab.getty.edu/aat/300021147>), if(coalesce(?stijlperiode, '') = 'classicisme'@nl, uri(<http://vocab.getty.edu/aat/300056513>), if(coalesce(?stijlperiode, '') = 'impressionistisch'@nl, uri(<http://vocab.getty.edu/aat/300021503>), if(coalesce(?stijlperiode, '') = 'modernistisch'@nl, uri(<http://vocab.getty.edu/aat/300021474>), if(coalesce(?stijlperiode, '') = 'postmodern'@nl, uri(<http://vocab.getty.edu/aat/300022208>), '' ) ) ) ) ) ) as ?period) } } ORDER BY ?dateCreated ?stijlperiode LIMIT _LIMIT_ OFFSET _OFFSET_"

}
9 changes: 0 additions & 9 deletions paintings/banner-rijksmuseum.svg

This file was deleted.

9 changes: 9 additions & 0 deletions zuiderzeemuseum-locations/banner-zuiderzeemuseum.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions zuiderzeemuseum-locations/branding.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name": "Zuiderzeemuseum: locaties"
}
File renamed without changes
5 changes: 5 additions & 0 deletions zuiderzeemuseum-locations/queries.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"baseUrl": "https://api.data.netwerkdigitaalerfgoed.nl/datasets/zuiderzeemuseum/waterland/sparql",
"categoryQuery": "PREFIX schema: <http://schema.org/> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT (COUNT(?heritageObject) AS ?numberOfHeritageObjects) ?id ?name ?description ?startDate ?endDate WHERE { ?heritageObject a schema:CreativeWork ; schema:contentLocation ?id ; schema:contentLocation/rdfs:label ?name . } Group by ?id ?name ?description ?endDate ?startDate order by ?name LIMIT _LIMIT_",
"itemsQuery": "prefix xsd: <http://www.w3.org/2001/XMLSchema#> prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix schema: <http://schema.org/> select distinct * where { select ?heritageObject ?name ?description ?dateCreated ?imageURI ?imageLicenseURI ?imageLicenseName ?publisherURI ?publisherName ?publisherHomepage ?creators ?creatorNames where { bind(<_CATEGORYID_> as ?contentLocationURIs) ?heritageObject a schema:CreativeWork ; schema:name ?name ; schema:description ?description ; schema:dateCreated ?date ; schema:creator ?creators ; schema:contentLocation ?contentLocationURIs ; schema:contentLocation/rdfs:label ?labelID ; schema:image ?imageURI . ?creators rdfs:label ?creatorNames . bind(xsd:integer(?date) as ?dateCreated) bind('unavailable' as ?imageLicenseURI) bind('unavailable' as ?imageLicenseName) bind('https://www.zuiderzeemuseum.nl/' as ?publisherURI) bind('Zuiderzeemuseum' as ?publisherName) bind(uri('https://www.zuiderzeemuseum.nl/') as ?publisherHomepage) } order by ?labelID } LIMIT _LIMIT_ OFFSET _OFFSET_"
}

0 comments on commit d0c7861

Please sign in to comment.