Skip to content

Commit

Permalink
Merge branch 'master' of github.com:LvanWissen/ga-dh2020-demo
Browse files Browse the repository at this point in the history
  • Loading branch information
LvanWissen committed Sep 2, 2020
2 parents 0e827ce + 574bff7 commit af998ca
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 96 deletions.
107 changes: 15 additions & 92 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,102 +1,25 @@
# ga-dh2020-demo
Golden Agents DH2020 demo
# Golden Agents DH2020 demo

Images are served through Image API level 0 (static) and are therefore shrunk to 75% quality. The full archive can be browsed at https://archief.amsterdam/5075/2408.

## Data

### Queries
| License | |
| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| Source code | [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) |
| Data | [![License: CC BY-SA 4.0](https://img.shields.io/badge/License-CC%20BY--SA%204.0-blue.svg)](https://creativecommons.org/licenses/by-sa/4.0/) |

`canvasmetadata`
For background information and references, see our [paper](https://dh2020.adho.org/wp-content/uploads/2020/07/137_TheMontiasCaseanexperimentwithdatareconciliationandprovenancebetweenresearchandculturalheritageinstitutions.html).

For getting the metadata from the index records
The demo shows the intersection of datasets the Golden Agents project (https://www.goldenagents.org/) is working with, as shown on top of a single archival book (NA 2408) from the Amsterdam City Archives (https://archief.amsterdam/). The demo is built with Mirador version 3 and uses the iiif Presentation API version 3.0. The images that are shown are coming from a static source, but can be served by a iiif-server, serving the image API.

```SPARQL
PREFIX pnv: <https://w3id.org/pnv#>
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 saa: <https://data.goldenagents.org/datasets/SAA/ontology/>
SELECT * WHERE {
?deed saa:actType ?actType ;
saa:registrationDate ?registrationDate ;
saa:identifier ?identifier ;
saa:description ?description ;
saa:language ?language ;
saa:mentionsNotary/pnv:hasName/pnv:literalName ?notary ;
saa:inventoryNumber "2408" ;
saa:urlScan ?scan .
OPTIONAL { ?deed saa:mentionsRegisteredName/pnv:literalName ?person . }
OPTIONAL { ?deed saa:mentionsLocation/rdfs:label ?location . }
BIND(CONCAT(STRAFTER(STR(?scan), 'Scan/'), '.jpg') AS ?image)
} LIMIT 100000
```
## Data

For getting the types (persons/locations) from the index records
```SPARQL
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX oa: <http://www.w3.org/ns/oa#>
PREFIX as: <http://www.w3.org/ns/activitystreams#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
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#>
PREFIX ga: <https://data.goldenagents.org/ontology/>
PREFIX saa: <https://data.goldenagents.org/datasets/SAA/ontology/>
PREFIX pnv: <https://w3id.org/pnv#>
Images are served through Image API level 0 (static) and are therefore shrunk to 75% quality. The full archive can be browsed at https://archief.amsterdam/5075/2408.

SELECT DISTINCT ?image ?type ?label ?coords WHERE {
Other data is aggregated in the Golden Agents project (https://www.goldenagents.org/) and will be available in due time.

?inventorySAA saa:inventoryNumber "2408" .
?inventorySAA saa:hasParts/saa:hasDigitalRepresentation/foaf:depiction ?url .
?indexRecord saa:urlScan ?scan .
?scan saa:url ?url .
BIND(CONCAT(STRAFTER(STR(?url), '#'),'.jpg') AS ?image) .
?annotation oa:hasTarget [ oa:hasSource ?scan ;
oa:hasSelector/rdf:value ?coords ] ;
^prov:wasDerivedFrom [ a ?type] ;
oa:hasBody/rdfs:label ?label .
## License and citation

} ORDER BY ?image
```
Scripts in this repository are published under the MIT license. Other files and data are licensed under a CC-BY-SA 4.0 license.

Getting all the items
```SPARQL
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX sem: <http://semanticweb.cs.vu.nl/2009/11/sem/>
PREFIX oa: <http://www.w3.org/ns/oa#>
PREFIX saa: <https://data.goldenagents.org/datasets/SAA/ontology/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
* Leon van Wissen, Chiara Latronico, Sandra van Ginhoven, Veruska Zamborlini (2020). The Montias Case: an experiment with data reconciliation and provenance between research and cultural heritage institutions. In: [Book of Abstracts DH2020](https://dh2020.adho.org/wp-content/uploads/2020/07/137_TheMontiasCaseanexperimentwithdatareconciliationandprovenancebetweenresearchandculturalheritageinstitutions.html), ADHO.

SELECT DISTINCT * WHERE {
?inventory saa:documentedIn/saa:inventoryNumber "2408" ;
saa:content ?item .
?item rdfs:label ?label ;
prov:wasDerivedFrom ?annotation .
BIND(STRAFTER(STR(?annotation), 'Scan/') AS ?annoid)
OPTIONAL { ?item saa:room ?room . }
OPTIONAL { ?item saa:iconclass ?iconclass . }
OPTIONAL { ?item saa:subject ?subject . }
OPTIONAL { ?item saa:workType ?type . }
OPTIONAL { ?item saa:identifier ?identifier . }
OPTIONAL { ?item saa:transcription ?transcription . }
OPTIONAL { ?item saa:artist ?artist . }
OPTIONAL { ?item saa:valuation ?valuation . }
}
```
## Contact
l.vanwissen@uva.nl
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h1>Golden Agents DH2020 Demo</h1>

<p>
Presented at DH2020 (virtual), 20-24 July 2020. <br />
Accompanying paper: <a href="" class="external">'The Montias Case: an experiment with
Accompanying paper: <a href="https://dh2020.adho.org/wp-content/uploads/2020/07/137_TheMontiasCaseanexperimentwithdatareconciliationandprovenancebetweenresearchandculturalheritageinstitutions.html" class="external">'The Montias Case: an experiment with
data reconciliation and provenance between research and cultural heritage institutions'</a>
</p>

Expand Down Expand Up @@ -69,7 +69,7 @@ <h3>Authors</h3>
<div class="body">
<span>
<h2>Introduction</h2>
<i>For background information and references, see our <a href="" class="external">paper</a></i>.
<i>For background information and references, see our <a href="https://dh2020.adho.org/wp-content/uploads/2020/07/137_TheMontiasCaseanexperimentwithdatareconciliationandprovenancebetweenresearchandculturalheritageinstitutions.html" class="external">paper</a></i>.
</span>

<p>The demo shows the intersection of datasets the <a href="https://www.goldenagents.org/" class="external">Golden
Expand Down Expand Up @@ -128,7 +128,7 @@ <h2>Demo</h2>
Annotations to items from the Getty and Frick datasets can be found on pp. 4-8, pp. 20-22, p. 33, pp. 216-217.
</p>
<p>
N.B.: Using a RC version of <a href=" https://projectmirador.org/" class="external">Mirador 3</a>.
N.B.: Using a RC version of <a href="https://projectmirador.org/" class="external">Mirador 3</a>.
Images served as static (image API level 0). You can try the
<a href="https://lvanwissen.github.io/ga-dh2020-demo/iiif/manifest.json" class="external">manifest.json</a> in any
viewer that supports annotations and the iiif Presentation API 3.0 (though you might need to fix the relative URIs
Expand Down Expand Up @@ -184,4 +184,4 @@ <h2>Demo</h2>

</body>

</html>
</html>

0 comments on commit af998ca

Please sign in to comment.