Skip to content

Commit

Permalink
Merge pull request #198 from Ontotext-AD/GDB-4394-fix-class-hierarchy…
Browse files Browse the repository at this point in the history
…-triple-instances

GDB-4394 Fix class hiearchy triple instances links
  • Loading branch information
desislava-hristova-ontotext authored Mar 30, 2020
2 parents 7dbc5bf + 92b6728 commit 6686dda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ function RdfClassHierarchyCtlr($scope, $rootScope, $location, $repositories, $wi
$scope.instancesObj.items = [];
_.each(response, function (value, key) {
const obj = {};
// TODO extract in core function isTriple(str)
obj.type = (value.startsWith("<<") && value.endsWith(">>")) ? "triple": "uri";
obj.absUri = encodeURIComponent(value);
obj.absUriNonEncoded = value;
obj.resolvedUri = key;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/rdfClassHierarchyInfo.html
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ <h3 class="hovered-parent">
ng-click="copyToClipboard(item.absUriNonEncoded)">
<span class="icon-link"></span>
</button>
<a class="uri" href="resource?uri={{item.absUri}}">{{item.resolvedUri}}</a>
<a class="uri" href="resource?{{item.type}}={{item.absUri}}">{{item.resolvedUri}}</a>
</td>
</tr>
</tbody>
Expand Down

0 comments on commit 6686dda

Please sign in to comment.