简体   繁体   中英

Virtuoso SPARQL retrieving deleted RDF files

I am having a problem with my Virtuoso RDF Store.

I have uploaded some RDF files with the weather information. The information is repeated among the RDF files, so I decided to delete them. Although, when I make a SPARQL query, the information from the deleted RDF files is still retrieved.

Any idea of why is this happening? This is an example of a query I am making:

SELECT * 
FROM <miOnt:move>
WHERE 
  {
    ?ws <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.contextdatacloud.org/ontology/WeatherSituation>.
    ?ws <http://www.contextdatacloud.org/ontology/hasWeatherTime> ?time.
    ?time <http://www.w3.org/2006/time#inXSDDateTime> "2015-06-16T09:00:00".
    ?ws <http://www.contextdatacloud.org/ontology/hasTemperature> ?temperature
  }

I have used the cUrl command in Linux

curl -T example01.rdf http://localhost:8890/home/myFolder/example01.rdf -u user:pass

To delete them, I just used the option Delete from the Virtuoso UI:

Virtuoso用户界面

Thanks in advance

In your example, the assumption is that by removing the .rdf documents you've removed them from the internal quad store named graph into which the .rdf document content (triples) was loaded. That isn't necessarily the case. Thus, try the following SPARQL command:

CLEAR GRAPH <miOnt:move> .

OR

DROP SILENT GRAPH <miOnt:move> .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM