Skip to content

RDF representation english version

nilsw-ra edited this page Jun 28, 2023 · 1 revision

Svensk version

The National Archives use RDF for representing single records, serialzed as RDF/XML and JSON-LD. Mapping the data to RDF is a work in progress, currently incomplete.

Previously, there is linked data for topographies, specifically older settlements (villages, farmsteads), registered in the TORA project. The TORA resources are externally stored in EntryScape, which also provides a web app for searching and preentation. The RDF representation in EntryScape has some minor differences from what is used elsewhere, e.g. the URIs using https instead of http.

URIs

The RDF resources have a http URI in the domain data.riksarkivet.se for persistent identifier.

Object type URI pattern Example
Archive record http://data.riksarkivet.se/archive/{pid} http://data.riksarkivet.se/archive/4mZWR0rz2Y3SmsduZ8aHI4
Authority http://data.riksarkivet.se/agent/{pid} http://data.riksarkivet.se/agent/onOUA8hDrH646m3GjpvwY3
Topography http://data.riksarkivet.se/tora/{pid} http://data.riksarkivet.se/tora/178003000
Concept http://data.riksarkivet.se/concept/{property}/{value} http://data.riksarkivet.se/concept/Extent/Width
Concept, topography https://data.riksarkivet.se/tora/{property}/{value} https://data.riksarkivet.se/tora/namingprinciple/modern
Schema, classes topography http://data.riksarkivet.se/tora/schema/{class} https://data.riksarkivet.se/tora/schema/HistoricalSettlementUnit
Schema, properties topography http://data.riksarkivet.se/tora/schema/{property} http://data.riksarkivet.se/tora/schema/modernParish

Content negotiation

The handling of URIs and HTTP requests is based on the Cool URIs recommendation. The URIs http://data.riksarkivet.se/... return a redirect controlled by the Accept header in the GET request:

Accept Redirect to Result Example
text/html (default, also used when there is no Accept header) https://sok.riksarkivet.se/{object type}/{pid} Web page, presentation in the search service GET http://data.riksarkivet.se/archive/497YFecRrH6d0G02H087k3 -> https://sok.riksarkivet.se/arkiv/497YFecRrH6d0G02H087k3
application/rdf+xml https://data.riksarkivet.se/{object type}/{pid}.rdfxml RDF representation, serialized as RDF/XML GET http://data.riksarkivet.se/archive/497YFecRrH6d0G02H087k3 Accept: application/rdf+xml -> https://data.riksarkivet.se/archive/497YFecRrH6d0G02H087k3.rdfxml
application/ld+json https://data.riksarkivet.se/{object type}/{pid}.jsonld RDF representation, serialized as JSON-LD GET http://data.riksarkivet.se/archive/497YFecRrH6d0G02H087k3 Accept: application/ld+json -> https://data.riksarkivet.se/archive/497YFecRrH6d0G02H087k3.jsonld

Schema

The National Archives have not created a dedicated ontology. Data are mapped to classer and properties from different existing schemas when there is a good correspondence. Data element which have no direct correspondence in established schemas are mapped to classes and properties in the namespaces http://data.riksarkivet.se/schema/ and http://data.riksarkivet.se/tora/.

Mapping

RDF mapping for archive records

RDF mappning for authorities

RDF mappning for topographies