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
568 Views Asked by Sara Lafia At
1
There are 1 best solutions below
Related Questions in SPARQL
- How to combine ontotext GraphDB autocomplete and SPARQL to refine searching?
- How to only pass specific solution bindings from the default graph to the VALUES clause of the federated query?
- Expansive path expressions in quoted triples?
- Fuzzy String Match in SPARQL
- Blazegraph: How to LOAD gzip files?
- SPARQL query response to objects
- SPARQL Query - WHERE ignoing clause? (dbpedia)
- How to find all titles including a certain word in SPARQL
- How apply an order to CONSTRUCT in SPARQL
- Get Wikipedia page ID from WikiData ID
- how to query local fuseki server using python
- How to extract the language tags from Turtle RDF data?
- ontology versioning: Link both versionIRI#MyClassIRI and ontologyIRI#MyClass123 to same resource in rdf / owl
- Is it possible to directly run SPARQL query against webpages with JSON-LD data?
- Weird behavior on LIMIT and OFFSET when querying DBPedia
Related Questions in APACHE-MARMOTTA
- sparql query get slow with order by on Particular server
- First authentication
- Apache Marmotta Importer from Docker
- How to install development version of Apache Marmotta
- Apache Marmotta Delete All Graphs using SPARQL Update
- Sparql Update query for edit value of a property
- Apache Marmotta LDPath libraries - Selecting URI fn:content
- Import data via the client library in Apache Marmotta
- Is there any way to have ontology reasoner in Apache Marmotta?
- How to use Apache Marmotta SPARQL webservice api with AngularJS?
- Apache Marmotta - SPARQL query interface - Missing Squebi library
- Apache marmotta installation failing on my Windows 8 Laptop
- How to set Sesame as a stroage backend for Apache Marmotta?
- Apache Jena vs Apache Marmotta
- creating marmotta archetype webapp error(new)
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 # Hahtags
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: