I am trying to clear all loaded graphs into my Apache Marmotta instance. I have tried several SPARQL queries to do so, but I am not able to remove the RDF/XML graph that I imported. What is the appropriate syntax to do so?

Apache Marmotta Delete All Graphs using SPARQL Update
566 Views Asked by Sara Lafia At
1
There are 1 best solutions below
Related Questions in SPARQL
- Query multiple models within same Dataset in TDB Jena
- why is Sparql endpoint on local sever not returning the full set of entities for a given type?
- MarkLogic 8 - Node.js Client API - Can I do a SPARQL Query?
- URLError with SPARQLWrapper at sparql.query().convert()
- SPARQL Group-Concat not working
- Why does STRAFTER return blank data in json binding in angular?
- How to bind individual json data "values" in angular to named $scope variables (data returned using SPARQL query)?
- Sparql Query on GeoNames Ontology using Nearby
- How to suppress objectProperty in Fuseki?
- Optimize SPARQL Query
- Compare average - SPARQL
- setting soft limit for 4store client
- How to do a count and select variables in Sparql
- sparql how to search on label's value without the language indicator
- malformed sparql delete query
Related Questions in APACHE-MARMOTTA
- How to use Apache Marmotta SPARQL webservice api with AngularJS?
- creating marmotta archetype webapp error(new)
- How to install development version of Apache Marmotta
- Apache Marmotta Importer from Docker
- First authentication
- sparql query get slow with order by on Particular server
- Import data via the client library in Apache Marmotta
- Apache Marmotta Delete All Graphs using SPARQL Update
- Apache marmotta installation failing on my Windows 8 Laptop
- Apache Marmotta - SPARQL query interface - Missing Squebi library
- Is there any way to have ontology reasoner in Apache Marmotta?
- Sparql Update query for edit value of a property
- Apache Jena vs Apache Marmotta
- How to set Sesame as a stroage backend for Apache Marmotta?
- Apache Marmotta LDPath libraries - Selecting URI fn:content
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Try this query:
Be careful, as it deletes every triple in the database, including the built-in ones of Marmotta.
A couple of things I did for experimenting:
I downloaded the source code of Marmotta and used the Silver Searcher tool for searching for
DELETEqueries with the following command:This did not help much.
I navigated to the Marmotta installation directory and watched the debug log:
This showed that the parser is not able to process the query
DELETE DATA { ?s ?p ?o }. The exception behind the "error while executing update" was:This shows that the parser does not allow variables in the query after
DELETE DATA.Based on a related StackOverflow answer, I tried
CLEAR/CLEAR GRAPH/DROP/DROP GRAPH, but they did not work.I tried many combinations of
DELETE,*,?s ?p ?pand accidentally managed to get it working with the DELETE WHERE construct. According to the W3C documentation: