Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Warning
titleStore public data only in the triple store!

The triple store should contain only data that is public as the access restriction of DSpace won't affect the SPARQL endpoint. For this reason DSpace converts only archived, discoverable (non-privatprivate) Items, Collections and Communities that are readable for anonymous users. Please consider this while configuring and/or extending DSpace's Linked Data support.

...

Default configuration and what you should change

As the Linked Data support of DSpace is highly configurable this section gives a short list of things you probably want to configure before using it. Below you find more information on what is possible to configure.

In the file [dspace-source]/dspace/config/modules/rdf.cfg you want to configure the address of the public sparql endpoint and the address of the writable endpoints DSpace uses to connect to the triple store (the properties public.sparql.endpoint, storage.graphstore.endpoint and storage.sparql.endpoint). In the same file you want to configure the URL that addresses the dspace-rdf module which is depending on where you deployed it (property contextPath).

In the file [dspace-source]/dspace/config/modules/rdf/constant-data-general.ttl you should change the links to the Web UI of the repository and the public readable SPARQL endpoint. The URL of the public sparql endpoint should point to a URL that is proxied by a webserver to the Triple Store. See the section Install a Triple Store above for further information.

In the file [dspace-source]/dspace/config/modules/rdf/constant-data-site.ttl you may add any triples that should be added to the description of the repository itself.

If you want to change the way the meta data fields are converted take a look into the file [dspace-source]/dspace/config/modules/rdf/metadata-rdf-mapping.ttl. This is also the place to add information on how to map meta data fields that you added to DSpace. There is already a quite acceptable default configuration for the meta data fields DSpace supports out of the box. If you want to use some specific prefixes in RDF serializations that support prefixes, you have to edit [dspace-source]/dspace/config/modules/rdf/metadata-prefixes.ttl. 

Configuration Reference

There are several configuration files to configure DSpace's LOD support. The main configuration file can be found under [dspace-source]/dspace/config/modules/rdf.cfg, all other files are positioned in the directory [dspace-source]/dspace/config/modules/rdf/. You'll have to configure where to find and how to connect to the triple store. You may configure how to generate URIs to be used within the generated Linked Data and how to convert the contents stored in DSpace into RDF. We will guide you through the configuration file by file.

...