RelFinder: how to use it

RelFinder answers one question: how are these things connected? Choose two or more things, such as people, companies, places or pieces of land, and say how many links may lie between them. RelFinder then finds every path that joins them in a knowledge graph and draws the paths as a picture you can explore. You can then filter the picture by the kind of link, the kind of thing, the length of the path and where the facts came from.

It searches up to five public SPARQL endpoints, such as DBpedia and Wikidata, and data of your own that you load into the page, all at once and in one picture. Your own data is searched inside your browser by HOLOS, a triplestore compiled to WebAssembly, so it never leaves your machine.

Where RelFinder comes from. RelFinder was created by Philipp Heim, Sebastian Hellmann, Jens Lehmann, Steffen Lohmann and Timo Stegemann, at the Universities of Stuttgart, Leipzig and Duisburg-Essen, and presented in their 2009 paper RelFinder: Revealing Relationships in RDF Knowledge Bases. Steffen Lohmann, Philipp Heim, Timo Stegemann and Jürgen Ziegler described its interface in The RelFinder User Interface (2010). It grew out of the DBpedia Relationship Finder of Jens Lehmann, Jörg Schüppel and Sören Auer (2007).

This is a new version, written from scratch for today's browsers, because the original was built in Adobe Flash, which no browser now runs. It follows their design closely: how paths are searched, the filters, the way the picture grows and how it highlights. It adds several sources at once and your own data. Their full references are in section 10.

Contents

  1. Getting started
  2. Choosing what to relate
  3. How far to look
  4. Reading the picture
  5. Filtering
  6. Sources: endpoints and your own data
  7. Keeping, sharing and repeating a search
  8. Speed
  9. Where your data goes
  10. Credits and references

1. Getting started

The quickest way in is an example. Open Examples on the Find tab and choose Who owns Stone Court?. It loads a small dataset drawn from George Eliot's novel Middlemarch and asks how Will Ladislaw, Mary Garth and the Stone Court estate are connected. The answer runs through two wills, a sale, a banker's first marriage and a blackmailer. It needs no network: everything happens in your browser, and it takes a fraction of a second.

The Bookshop Trail example runs a search over the knowledge graph shared by the Semantechs SPARQL, SHACL and Ontology courses: invented bookshops in real British towns, with their authors, books, events and stock. The example fetches the data from the course repository on GitHub and asks how two authors, Ines Calloway and Agnes Varden, connect to the Ex Libris bookshop. The search itself runs in your browser.

What you're looking at

2. Choosing what to relate

Type a name into the first box. After two letters and a short pause, suggestions arrive from every source that is switched on. A coloured dot shows which source each one came from. Pick one with the mouse, or with the arrow keys and Enter. Under the box you'll see the identifier (IRI) of the thing you chose.

Where the suggestions come from depends on the source. For DBpedia they come from Wikipedia's title search, because DBpedia's resources are named after Wikipedia articles. For Wikidata they come from Wikidata's own search. For your own data, RelFinder searches an index of names it builds when the data is loaded.

3. How far to look

Maximum links between inputs is the slider under the boxes. One link means "directly connected". Three means up to two things in between. The line beneath the slider says how many queries the search will send. Each extra link adds more, and long paths can be slow on busy public endpoints, so start short and lengthen if you need to.

Search settings

Press Find relations to start, or Enter in any box. While a search runs, the button becomes Stop.

4. Reading the picture

Getting around

The toolbar

Details of a selected thing

The panel shows:

RelFinder then fetches a description, a picture and other values where the source has them. Three buttons act on it:

5. Filtering

Once a search has found something, the Filter by tables appear. They are the original's four tabs plus one new one:

Each row works the same way:

A path is shown only when its length, every link on it and every thing along it are all shown. For connectivity, it is judged by the best-connected thing on it: a path is hidden if the highest connectivity level among its things is hidden. Both rules are the original's.

6. Sources: endpoints and your own data

Your own data (the local store)

On the Sources tab you can load your own RDF in three ways: choose files or drop them on the box; give the address of a file; or paste Turtle.

SPARQL endpoints

Up to five, each with:

Add endpoint starts from a preset:

Settings on each endpoint controls:

Several sources in one search

Every switched-on source is searched, and the results are merged into one picture: a path found twice is kept once. If you chose an input from DBpedia, Wikidata knows it by a different identifier. RelFinder asks both sources for an owl:sameAs link and searches Wikidata for the matching item. The two then show as one box. If no match is found, that source is skipped for that input, and a note says so.

If an endpoint won't answer

RelFinder asks endpoints directly from your browser, so an endpoint has to allow requests from other web pages (CORS). DBpedia and Wikidata do. If the Test button reports that the request failed, that is the usual reason. A server administrator can fix it with a reverse proxy in front of the endpoint. Busy endpoints sometimes fail or time out. RelFinder asks again a couple of times before giving up, and the Log tab shows anything that still failed, with the query it sent and a button to copy it.

7. Keeping, sharing and repeating a search

You can write the address yourself, to hand someone a dataset and a question in one link. Add these to the page address:

When a link names data or endpoints, only those are searched. Your other sources stay set up, but are switched off for that search. Remember to URL-encode addresses inside the link, especially their # and & characters.

For example, this link loads the SPARQL course's graph from GitHub and asks how the authors Rhona Blackwood and Iolo Vaughan connect to The Inkwell bookshop, within four links:

?data=https://raw.githubusercontent.com/pwin/SPARQL_Course/main/data/bookshop-trail-1.1.ttl&t=…author-rhona-blackwood&t=…author-iolo-vaughan&t=…shop-inkwell&len=4&mode=all&ignore=…

Any public RDF file works the same way. A file the Turtle Editor Viewer can open with ?dot= can be opened here by the same address.

8. Speed

Searching your own data is fast. In tests, 90 path queries over the Middlemarch example took a fifth of a second. A graph of 300,000 triples answered 42 path queries in a quarter of a second.

Public endpoints are slower, and they vary. The same query to DBpedia took under a second one minute and many seconds the next. RelFinder makes the most of them:

If a search drags:

9. Where your data goes

10. Credits and references

RelFinder was conceived and built by Philipp Heim, Sebastian Hellmann, Jens Lehmann, Steffen Lohmann and Timo Stegemann. Its interface was described by Steffen Lohmann, Philipp Heim, Timo Stegemann and Jürgen Ziegler, and its way of searching for connections comes from the DBpedia Relationship Finder of Jens Lehmann, Jörg Schüppel and Sören Auer. The original source code is published by the Visual Data Web group at github.com/VisualDataWeb/RelFinder, under the GNU GPL version 3.

This version was written anew for the web by Semantechs. It reuses the authors' ideas and design, but none of their code, which was ActionScript for Adobe Flash. Any faults in it are ours, not theirs. If you use RelFinder in your work, please cite the original papers:

  1. Lehmann, J., Schüppel, J. and Auer, S. (2007). Discovering Unknown Connections – the DBpedia Relationship Finder. In Proceedings of the 1st Conference on Social Semantic Web (CSSW 2007), Lecture Notes in Informatics P-113, pp. 99–109. GI Digital Library.
  2. Heim, P., Hellmann, S., Lehmann, J., Lohmann, S. and Stegemann, T. (2009). RelFinder: Revealing Relationships in RDF Knowledge Bases. In Semantic Multimedia: 4th International Conference on Semantic and Digital Media Technologies (SAMT 2009), Lecture Notes in Computer Science 5887, pp. 182–187. Springer. doi:10.1007/978-3-642-10543-2_21.
  3. Lohmann, S., Heim, P., Stegemann, T. and Ziegler, J. (2010). The RelFinder User Interface: Interactive Exploration of Relationships between Objects of Interest. In Proceedings of the 15th International Conference on Intelligent User Interfaces (IUI '10), pp. 421–422. ACM. doi:10.1145/1719970.1720052; also on ResearchGate.
  4. Heim, P., Lohmann, S. and Stegemann, T. (2010). Interactive Relationship Discovery via the Semantic Web. In The Semantic Web: Research and Applications (ESWC 2010), Lecture Notes in Computer Science 6088, pp. 303–317. Springer. doi:10.1007/978-3-642-13486-9_21.

Also built on