Skip to content

Commit

Permalink
delete explainers test
Browse files Browse the repository at this point in the history
  • Loading branch information
anjanaw committed Feb 6, 2024
1 parent 6585bfb commit b531939
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/controllers/explainers.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,22 +345,26 @@ module.exports.delete = async (req, res) => {
console.log("Deleting Explainer " + explainer);

const query_one = `
prefix exp: <http://www.w3id.org/iSeeOnto/explainer#>
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix owl: <http://www.w3.org/2002/07/owl#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT *
WHERE {
?t rdfs:label `+explainer.replaceAll('/', '_')+` ;
?p ?o .
?t2 rdfs:label `+explainer.replaceAll('/', '_')+ "_technique"+` ;
?p2 ?o2 .
}
`;

var data = qs.stringify({
'update': query_one
'query': query_one
});
var config = {
method: 'post',
url: BASE_URL_EXPLAINERS + 'update',
url: endpointUrl, //BASE_URL_EXPLAINERS + 'sparql',
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
Expand Down

0 comments on commit b531939

Please sign in to comment.