Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: AKSW/ontodia-graph-explorer
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: docker
Choose a base ref
...
head repository: DataTreehouse/graph-explorer
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: docker
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 1 commit
  • 5 files changed
  • 1 contributor

Commits on Dec 18, 2023

  1. data-treehouse

    query for class-tree added
    oivind rui committed Dec 18, 2023
    Copy the full SHA
    41eca50 View commit details
Showing with 15 additions and 25 deletions.
  1. +1 −0 .gitignore
  2. +1 −1 docker-build.sh
  3. +1 −1 docker-index.html
  4. +1 −22 logo.svg
  5. +11 −1 src/graph-explorer/data/sparql/sparqlDataProviderSettings.ts
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -10,3 +10,4 @@

*.iml
*.log
desktop.ini
2 changes: 1 addition & 1 deletion docker-build.sh
Original file line number Diff line number Diff line change
@@ -5,4 +5,4 @@ set -eu
rm -fr dist/examples
BUNDLE_PEERS=true ./node_modules/.bin/webpack --config webpack.demo.config.js
chmod -R g+rwX dist/examples || : ; chmod -R o+rX dist/examples || :
docker build . -t aksw/ontodia
docker build . -t data-treehouse/graph-explorer
2 changes: 1 addition & 1 deletion docker-index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html><html><head><meta http-equiv="Content-type" content="text/html; charset=utf-8"/><link rel="icon" href="data:;base64,iVBORw0KGgo="><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/leaflet/1.3.1/leaflet.css"><title>@TITLE_PREFIX@Ontodia Graph Explorer</title><style>html, body, #root {
<!doctype html><html><head><meta http-equiv="Content-type" content="text/html; charset=utf-8"/><link rel="icon" href="data:;base64,iVBORw0KGgo="><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/leaflet/1.3.1/leaflet.css"><title>@TITLE_PREFIX@DataTreehouse Explorer</title><style>html, body, #root {
height: 100%;
overflow: hidden;
margin: 0;
23 changes: 1 addition & 22 deletions logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 11 additions & 1 deletion src/graph-explorer/data/sparql/sparqlDataProviderSettings.ts
Original file line number Diff line number Diff line change
@@ -365,7 +365,17 @@ export const RDFSettings: SparqlDataProviderSettings = {
elementFirst: false,
},

classTreeQuery: ``,
classTreeQuery: `SELECT ?class ?label ?parent WHERE {
{
?class a rdfs:Class
} UNION {
?class a owl:Class
}
FILTER ISIRI(?class)
OPTIONAL {?class rdfs:label ?label}
OPTIONAL {?class rdfs:subClassOf ?parent. FILTER ISIRI(?parent)}
}
`,

classInfoQuery: `SELECT ?class ?label ?instcount WHERE {
VALUES(?class) {\${ids}}