Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content
ventureslabPublic
forked from kvistgaard/opsis

About

One-file faceted browser for RDF graphs

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

Opsis

One-file faceted browser for RDF graphs.

Open index.html, give it the SPARQL endpoint, and start browsing the graph behind.

Every click is a SPARQL query.

The name comes from ὄψις, "view, aspect".

The current version of Opsis is meant for personal knowledge graphs (It is too slow for public graphs the size of DBpedia or Wikidata).

index.html?endpoint=http://localhost:7878/query
Opsis on a personal knowledge graph: class facets on the left, blog posts in the second pane, two entity panes stacked on the right

Here is also a live demo on the Nobel Prize linked data.

One file, all SPARQL

Opsis is under 1,000 lines of HTML, CSS, and JavaScript. It has no build step, no libraries, and no server. The page sends SPARQL queries directly to the endpoint in response to user actions.

Selecting a class adds ?s a/rdfs:subClassOf* <class> to the query. Selecting a graph adds GRAPH <graph> { ?s ?p ?o }.

Opsis maintains no index or cache. The results reflect the current contents of the store.

Stacked panes

There are three panes by default: one for classes and graphs, the next one on the right for their entities and then for the tripes of a selected entity. When you press stack in the header, then a click on link open a pane on the right. If there is one already on the right, it's replaced. If none is opened on the right, a new one is opened and so you an get multiple panes opened at the same time.

The address bar keeps the open panes, so you can bookmark a stack or send it to someone.

Settings

Opsis reads its settings from the graph it browses. Edit settings.example.ttl there like any other RDF data.

Two features need settings:

  • opening local files in desktop applications, for example Markdown notes in Obsidian
  • choosing between several SPARQL endpoints from the header

Troubleshooting

symptom cause
endpoint error: … in the header the endpoint is not running, or does not allow cross-origin requests (CORS)
no entities, though the store has data the endpoint's default graph is not the union of its named graphs
everything shows as a bare IRI the store has no rdfs:label values
every query is slow to start the endpoint listens on IPv4 only, and localhost resolves to ::1 first
an application link does nothing no application is registered for its address, such as obsidian://

Roadmap

  • Class filtering
  • Larger graphs, with counts precomputed or estimated.
  • Back and forward through stacked panes with the browser's history.
  • Keyboard navigation between panes.

Licence

MIT. See LICENSE and CHANGELOG.md.

About

One-file faceted browser for RDF graphs

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages