Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MaillPierre committed Mar 14, 2024
1 parent 6f85bc3 commit 7c573f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ services:
volumes:
- ./output:/usr/local/corese/log
- ./config:/usr/local/corese/config
- ./rules:/rules
extra_hosts:
- host.docker.internal:host-gateway
indegx:
Expand Down
2 changes: 1 addition & 1 deletion indegx/src/SPARQLUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ export function queryContainsService(queryString: string): boolean {
export function addServiceClause(queryString: string, endpoint: string): string {
let parser = new sparqljs.Parser();
try {
const parsedQuery = parser.parse(queryString);
if (isSparqlConstruct(queryString) || isSparqlSelect(queryString) || isSparqlAsk(queryString) || isSparqlDescribe(queryString)) {
const parsedQuery = parser.parse(queryString);
let serviceClause = {
type: "service",
name: { termType: "NamedNode", value: endpoint },
Expand Down

0 comments on commit 7c573f8

Please sign in to comment.