Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* add test data * fix tests * fix more tests * add delete list route messages, responder, route and sparql * add tests * fix formatting * fix lists messages * add docs * fix formatting * review changes * simplify route + fix typos
- Loading branch information
Showing
8 changed files
with
280 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...irl/org/knora/webapi/messages/twirl/queries/sparql/admin/deleteListNodeComments.scala.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
@* | ||
* Copyright © 2021 - 2022 Swiss National Data and Service Center for the Humanities and/or DaSCH Service Platform contributors. | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*@ | ||
|
||
@import org.knora.webapi.IRI | ||
|
||
@** | ||
* Deletes a list node comment. | ||
* | ||
* @param namedGraph the named graph to update. | ||
* @param nodeIri the IRI of the list node to update. | ||
* @param isRootNode flag to identify node type. | ||
*@ | ||
@(namedGraph: IRI, | ||
nodeIri: IRI, | ||
isRootNode: Boolean) | ||
|
||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
PREFIX knora-base: <http://www.knora.org/ontology/knora-base#> | ||
|
||
DELETE { | ||
GRAPH <@namedGraph> { | ||
<@nodeIri> rdfs:comment ?comments . | ||
} | ||
} | ||
|
||
WHERE { | ||
GRAPH <@namedGraph> { | ||
<@nodeIri> rdfs:comment ?comments . | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.