Skip to content

Commit

Permalink
ldp.container.get: allow to use full URI for filters' predicates
Browse files Browse the repository at this point in the history
  • Loading branch information
srosset81 committed Aug 27, 2021
1 parent 44cbaf3 commit 5965205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware/packages/ldp/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const buildFiltersQuery = filters => {
Object.keys(filters).forEach((predicate, i) => {
if (filters[predicate]) {
where += `
FILTER EXISTS { ?s1 ${predicate.startsWith('http') ? `<${predicate}>` : predicate} "${filters[predicate]}" } .
FILTER EXISTS { ?s1 ${predicate.startsWith('http') ? `<${predicate}>` : predicate} ${filters[predicate].startsWith('http') ? `<${filters[predicate]}>` : `"${filters[predicate]}"`} } .
`;
} else {
where += `
Expand Down

0 comments on commit 5965205

Please sign in to comment.