Github

How to access specific data

How to find things in Fedora

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';

How do I search for a object in the Solr

Sample Triplestore queries

Go to http://localhost:8080/bigdata/#query Under namespaces (http://localhost:8080/bigdata/#namespaces), make sure islandora is selected.

triple screenshots

Find all triples with given object as the subject

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>

|  a  |  b  |
| ?a  | ?b |
...

Results

ab
http://pcdm.org/models#hasMemberhttp://islandora-isle-dc-3-93-28-63.traefik.me/node/1002
http://pcdm.org/models#hasMemberhttp://islandora-isle-dc-3-93-28-63.traefik.me/node/1003
http://pcdm.org/models#hasMemberhttp://islandora-isle-dc-3-93-28-63.traefik.me/node/1004
http://pcdm.org/models#hasMemberhttp://islandora-isle-dc-3-93-28-63.traefik.me/node/1005
http://pcdm.org/models#hasMemberhttp://islandora-isle-dc-3-93-28-63.traefik.me/node/1006
http://pcdm.org/models#hasMemberhttp://islandora-isle-dc-3-93-28-63.traefik.me/node/1007
http://pcdm.org/models#hasMemberhttp://islandora-isle-dc-3-93-28-63.traefik.me/node/1008
http://pcdm.org/models#hasMemberhttp://islandora-isle-dc-3-93-28-63.traefik.me/node/1009
http://pcdm.org/models#hasMemberhttp://islandora-isle-dc-3-93-28-63.traefik.me/node/1010
http://pcdm.org/models#hasMemberhttp://islandora-isle-dc-3-93-28-63.traefik.me/node/1013
http://pcdm.org/models#hasMemberhttp://islandora-isle-dc-3-93-28-63.traefik.me/node/1015
http://pcdm.org/models#hasMemberhttp://islandora-isle-dc-3-93-28-63.traefik.me/node/1018
http://pcdm.org/models#hasMemberhttp://islandora-isle-dc-3-93-28-63.traefik.me/node/1019
http://pcdm.org/models#hasMemberhttp://islandora-isle-dc-3-93-28-63.traefik.me/node/1024
http://pcdm.org/models#hasMemberhttp://islandora-isle-dc-3-93-28-63.traefik.me/node/1054
http://pcdm.org/models#memberOfhttp://islandora-isle-dc-3-93-28-63.traefik.me/node/4
schema:dateModified2020-07-28T20:08:56.000Z
schema:authorhttp://islandora-isle-dc-3-93-28-63.traefik.me/user/1
schema:dateCreated2020-07-20T12:41:52.000Z
schema:sameAshttp://islandora-isle-dc-3-93-28-63.traefik.me/node/839
http://id.loc.gov/vocabulary/relators/pupKnoxville (Tenn.)
dcterm:created11/11/17
dcterm:created11/11/17
dcterm:date1970
dcterm:date1970
dcterm:extent1 item
dcterm:identifierdruid:1
dcterm:subjectLH1.T2 D7
dcterm:subjecthttp://islandora-isle-dc-3-93-28-63.traefik.me/taxonomy/term/100
dcterm:subjecthttp://islandora-isle-dc-3-93-28-63.traefik.me/taxonomy/term/101
dcterm:subjecthttp://islandora-isle-dc-3-93-28-63.traefik.me/taxonomy/term/102
dcterm:subjecthttp://islandora-isle-dc-3-93-28-63.traefik.me/taxonomy/term/103
dcterm:subjecthttp://islandora-isle-dc-3-93-28-63.traefik.me/taxonomy/term/96
dcterm:subjecthttp://islandora-isle-dc-3-93-28-63.traefik.me/taxonomy/term/97
dcterm:subjecthttp://islandora-isle-dc-3-93-28-63.traefik.me/taxonomy/term/98
dcterm:subjecthttp://islandora-isle-dc-3-93-28-63.traefik.me/taxonomy/term/99
dcterm:typehttp://islandora-isle-dc-3-93-28-63.traefik.me/taxonomy/term/14
dcterm:alternativeDruid: a humanities magazine, winter 1970
rdf:typehttp://islandora-isle-dc.3-93-28-63.traefik.me/taxonomy/term/28
rdf:typehttps://schema.org/Book
rdf:typehttp://pcdm.org/models#Object
dcterm:descriptionIndependently published magazine featuring interviews with creators, poetry, prose, plays, music reviews, photography, illustrations, and other creative works by University of Tennessee, Knoxville students.
dcterm:issued1/17/19
dcterm:issued1/17/19
dcterm:titleDruid: a humanities magazine, winter 1970

Get everything

This is a quick example that will get everything. This is the catch all.

select ?s ?o ?x {
  ?s ?o ?x
}

For more examples see Testing Notes