The map between Drupal URIs and their corresponding Fedora URIs is stored in a service called Gemini. An Islandora “pseudo-field” can be enabled that will display the corresponding Fedora URI on the page of a node, taxonomy term, or media object. You can also query Gemini directly. Instructions for doing that are provided below.
For more information about the Gemini service, see the Gemini README.
How to look up a Fedora URI through Gemini
(nodes and taxonomy terms)
In Gemini, each entry is keyed on the UUID assigned by Drupal (the long one, not the node id). To get the UUID of a node, or taxonomy term in Drupal, you can look in the Devel tab or in the JSON representation, e.g.: http://localhost:8000/node/2?_format=json.
How to look up a Fedora URI through Gemini (files)
Files in Fedora have the file URI in Gemini, and can be queried based on the UUID (accessible from the Media’s json) or their URI.
select fedora_uri from Gemini where drupal_uri = 'http://localhost:8000/_flysystem/fedora/2019-05/639647.jpg';
Formatting is important. Which letters are not important. They represent a variable you want back. You can also consider them to behave like willdcards *
select ?a ?b where { <--- First Line (no leading spaces)
<drupal_url> ?a ?b <--- 2nd Line
} <--- Closing Line
Example:
Example want any triples where a and b can be anything but the first value must match <http://localhost:8000/media/8?_format=jsonld>
select ?a ?b where {
<http://localhost:8000/media/8?_format=jsonld> ?a ?b
}
To get everything for an object (very useful). This query starts with a subject (<http://islandora-isle-dc-3-93-28-63.traefik.me?_format=jsonld>) with place holders for the predicates(a) and objects(b) and returning a list with the predicates(a) and objects(b) that start with specified subject.
select ?a ?b where {
<http://islandora-isle-dc-3-93-28-63.traefik.me/node/839> ?a ?b
}
Output for all triples that start with <http://islandora-isle-dc-3-93-28-63.traefik.me?_format=jsonld>
Independently published magazine featuring interviews with creators, poetry, prose, plays, music reviews, photography, illustrations, and other creative works by University of Tennessee, Knoxville students.
dcterm:issued
1/17/19
dcterm:issued
1/17/19
dcterm:title
Druid: a humanities magazine, winter 1970
Get everything
This is a quick example that will get everything. This is the catch all.