Info | ||
---|---|---|
| ||
Rozdział ten opisuje pliki konfiguracyjne używane przy eksporcie metadanych z biblioteki cyfrowej dLibra do formatu RDF. Jest on dedykowany dla administratorów biblioteki dLibra. |
RDF - Resource Description Framework jest formatem umożliwiającym specyfikowanie wartości pewnych własności opisywanego podmiotu. Format RDF używany jest w bibliotece dLibra do specyfikowania metadanych publikacji. Podmiotem jest w tym przypadku publikacja, własnościami są atrybuty a wartościami własnośći wartości atrybutów.
Plik konfiguracyjny eksportu RDF
Istnieje jeden plik konfigurujący eksport do formatu RDF:
systemurl.properties
- plik powinien zawierać URL, który będzie będzie definiował przestrzeń nazw w eksportowanym pliku
| |
This chapter is about the configuration files used when exporting metadata from a dLibra digital library to the RDF format. It is for dLibra system administrators. |
RDF (Resource Description Framework) is a format which makes it possible to specify the values of certain properties of a described entity. The RDF format is used in the dLibra system for specifying publication metadata. In this case, the entity is a publication, properties are attributes, and property values are attribute values.
The Configuration File of RDF Export
There is one file which configures export to the RDF format:
systemurl.properties
That file should contain the URL which will define the namespace in the exported file.
It is a property file, so it has a property name (also called a key) and its value in one line, separated with the equal sign (=), for example:
wlasnosc=wartosc
The file should only contain one line specifying the URL which defines the namespace in the metadata file. The key which identifies that URL is systemURL, for exampleJest to plik własności, zatem w linii znajduje się nazwa własności (zwana również kluczem) oraz jej wartość oddzielone od siebie znakiem równości (=), np.
wlasnosc=wartosc
W pliku powinna znajdować się tylko jedna linia specyfikująca URL definiujący przestrzeń nazw w pliku z metadanymi. Kluczem identyfikującym ten URL jest systemURL, przykładowo:
systemURL=http://dlibra.psnc.pl/
URL z reguły jest adresem WWW danej biblioteki cyfrowej. Wyeksportowany plik będzie wyglądał następująco (pomijamy same wartości, chodzi o przedstawienie miejsca w którym znajduje się wartość z klucza systemURL
The URL is usually the website address of the given digital library. The exported file will look as follows (we omit values – the point is to show the position of the value of the systemURL
key):
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dlibra_avs="http://dlibra.psnc.pl/"> <rdf:Description rdf:about="http://dlibra.psnc.pl/publication/376"> <dlibra_avs:Title xml:lang="pl">Przykładowa publikacja</dlibra_avs:Title> <dlibra_avs:Author xml:lang="pl">Jan Kowalski</dlibra_avs:Author> <dlibra_avs:Format xml:lang="en">text/plain</dlibra_avs:Format> <dlibra_avs:Format xml:lang="pl">text/plain</dlibra_avs:Format> </rdf:Description> </rdf:RDF> |
W domyślnym pliku In the default systemurl.properties
znajduje się wpis file, there is the following entry:
systemURL=http://www.dlibra.psnc.pl