Okay, thanks.

How do I drop the mapping?

Which way is "correct" to create a graph mapping:

alter quad storage virtrdf:DefaultQuadStorage
   from ...
{
   create qs:fields as
       graph iri ("http://172.25.11.87:8890/data/agriculture";)
   {
...

or

alter quad storage virtrdf:DefaultQuadStorage
   from ...
{
   create qs:fields as
       graph <http://172.25.11.87:8890/data/agriculture>
   {
...

2013/12/6 Rumi <rtsek...@openlinksw.com>:
> Hi Alex,
>
>
> On 06-Dec-13 1:12 PM, Alex Bondo Andersen wrote:
>>
>> Thank you for your reply.
>>
>> I have also tried CLEAR GRAPH and DROP SILENT GRAPH (sorry for not
>> stating that before), none of these displays the error, yet the graph
>> is not dropped (when I go look at the graphs through conductor).
>>
>> Also I have noticed that we sometimes construct the graph as:
>>
>> alter quad storage virtrdf:DefaultQuadStorage
>>    from ...
>> {
>>    create qs:fields as
>>        graph iri ("http://172.25.11.87:8890/data/agriculture";)
>>    {
>> ...
>>
>> I realize that this may cause problems and I will work toward one
>> convention. Is there a different way to drop GRAPH IRIs than GRAPHs?
>> Which one is the 'right' way to go?
>
>
> Alright, so the graph is used in a quad map is good to know.
> DROP GRAPH works for physical quads but not for mapping.
> That is also an reason for you getting the error -- because the graph is
> used as a constant graph of some quad map.
> What you need to do is to drop first the mapping, and then drop the graph.
>
> Best Regards,
> Rumi Kocis
>
>
>
>
>>
>> 2013/12/6 Rumi <rtsek...@openlinksw.com>:
>>>
>>> Hi Alex,
>>>
>>>
>>> On 03-Dec-13 2:59 PM, Alex Bondo Andersen wrote:
>>>>
>>>> Hi,
>>>>
>>>> Some graphs I cannot drop from the isql-vt interface using "sparql
>>>> DROP GRAPH <http://extbi.cs.aau.dk/data/agriculture>;", I get the
>>>> following error:
>>>>
>>>> *** Error 22023: [Virtuoso Driver][Virtuoso Server]SPARUL_DROP()
>>>> failed: graph <http://extbi.cs.aau.dk/data/agriculture> has not been
>>>> explicitly created
>>>
>>>
>>> Yes. The error is correct, since your graph was not explicitly created.
>>> DROP GRAPH is equivalent of CLEAR GRAPH. It requires initially the graph
>>> to
>>> be created explicitly.
>>>
>>> CREATE GRAPH <mygraph>
>>>
>>> is an example of a graph created explicitly.
>>>
>>>
>>> We recommend in cases of you are not sure whether the graph is created
>>> explicitly or not, to use:
>>>
>>> DROP SILENT GRAPH <graph>
>>>
>>>
>>> Hope this helps.
>>>
>>>
>>> More documentation info: --
>>> "Example for delete graph equivalence":
>>>
>>> http://docs.openlinksw.com/virtuoso/sparqlextensions.html#rdfsparulexamples2
>>>
>>>
>>> Best Regards,
>>> Rumi
>>>
>>>
>>>> However I can easily drop it from the webpage interface under Linked
>>>> Data -> Graphs, where it is showing up.
>>>>
>>>> Is there any way to be "more insistent" that the graph is dropped
>>>> through isql-vt?
>>>>
>>>> I should mention that the graph is built inside a quad storage as
>>>> follows:
>>>>
>>>> alter quad storage virtrdf:DefaultQuadStorage
>>>>     from Linked_data.agri.field as field_tbl
>>>>     from ...
>>>> {
>>>>     create qs:fields as
>>>>         graph <http://extbi.cs.aau.dk/data/agriculture>
>>>> ...
>>>>
>>>
>>
>>
>
>



-- 
Med venlig hilsen / Best Regards
Alex Bondo Andersen

------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to