Skip to content

Commit

Permalink
Finishing parsing touches
Browse files Browse the repository at this point in the history
  • Loading branch information
danibanezRepos committed Jan 25, 2024
1 parent e767917 commit 02b17d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/FiltersModal/filtersModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function FiltersModal({ allNodes, allBindings, isFiltersOpen, setFiltersOpen, fi
allNodes.forEach(node => {
if (node.properties) {
Object.entries(node.properties).forEach(([propName, prop]) => {
if (prop.data || prop.show) {
if (prop.data || prop.show || prop.as) {
// TODO Always showing node.ids[0] makes no sense. Specific node filtering needs implementation
const label = prop.as || `${propName} ${node.label}${node.varID < 0 ? ` ${node.ids[0]}` : ''}`;
if (!filterableElements.some(element => element.label === label)) {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/queryParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const applyClassAndInstanceRestrictions = (parsedQuery, node, nodeLabelInGraph,
});
if (hasInstanceVariable) {
const instanceLabel = `${nodeLabelInGraph}___instance`;
const classLabel = `${nodeLabelInGraph}___class`;
const classLabel = `${nodeLabelInGraph}`;
if (nodeIsVar && !isSpecialClass) {
parsedQuery.body += addTriple(nodeLabelInGraph, RDFS_SUBCLASSOF_URI, `<${node.class}>`);
parsedQuery.body += addTriple(instanceLabel, RDF_TYPE_URI, nodeLabelInGraph);
Expand Down

0 comments on commit 02b17d8

Please sign in to comment.