Commit 15a08ef6 authored by Röpert, Dominik's avatar Röpert, Dominik
Browse files

added rdf fields

parent 9db22b8b
......@@ -23,6 +23,11 @@
{% endfor %}
</rdf:Description>
<rdf:Description rdf:about="{{ specimen[wikidata['rdf:about']] }}">
<owl:sameAs rdf:resource="{{ specimen[wikidata['owl:sameAsViaf']] }}" />
<owl:sameAs rdf:resource="{{ specimen[wikidata['owl:sameAsHuH']] }}" />
</rdf:Description>
{% if specimen[iiif['rdf:Description']] is not empty %}
<!--This is a link to iiif data-->
<dc:relation>
......
......@@ -52,13 +52,20 @@ dwc:decimalLatitude = 'Latitude'
dwc:eventDate = 'CollDateISO'
dwc:recordNumber = 'CollectorNumber'
dwc:recordedBy = 'Collector'
dwc:fieldNumber = 'CollectorNumber'
[rdfmapping/resources]
; Mapping of RDF-Resources to Database Column Names returned by query_one (see above)
; You can add and remove RDF-Elements from this list to adjust the RDF to your needs
; Display Example: <dwc:associatedMedia rdf:resource="http://subdomain.domain.de/myimage"/>
dwc:associatedMedia = 'Image'
dwciri:recordedBy = 'CollectorIRI'
dwciri:recordedBy = 'WIKIDATA_ID'
[rdfmapping/wikidata]
rdf:about = 'WIKIDATA_ID'
owl:sameAsHuH = 'HUH_PURL'
owl:sameAsViaf = 'VIAF_ID'
[rdfmapping/iif]
; Mapping of Relation-Fields linking to IIF-Data to Database Column Names
......
......@@ -3,7 +3,7 @@ server {
server_name herbarium-dev.bgbm.org;
### automatically forward to https version of request
return 301 https://$server_name$request_uri;
return 303 https://$server_name$request_uri;
}
server {
......
......@@ -105,6 +105,7 @@ $app->group('/data', function() use ($app) {
'specimen' => $specimen,
'literals' => Config::get('rdfmapping/literals'),
'resources'=> Config::get('rdfmapping/resources'),
'wikidata'=> Config::get('rdfmapping/wikidata'),
'iiif' => Config::get('rdfmapping/iiif')
])->withHeader('Content-type', Config::get('contenttypes')['rdf']);
})->setName('rdf');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment