Okay,

may I found the solution by myself. I tried the query now via the isql  
view of the conductor. Then my check query returned the triple count  
as expected. Any reason for this?
(anyway it is working right now ;) )

Cheers,


Bo


Quoting Bo Ferri <z...@smiy.org>:

> Hi,
>
> I'm trying to run a SPARQL update query in my Virtuoso 7 instance that
> should insert some triples to a certain pattern:
>
> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
> PREFIX myonto: <http://example.com/myonto#>
>
> WITH <http://mygraph.example.com>
> INSERT {
>      ?resource rdf:type myonto:MyUpperClass
> }
> WHERE {
>      ?resource rdf:type ?resourceType .
>      ?resourceType rdfs:subClassOf myonto:MyUpperClass
> }
>
> => result: Insert into <http://mygraph.example.com>, 84013 (or less)
> triples -- done
>
> When running a query that should check the insert result, I'm getting
> a triple count that is lower than the one from the insert query:
>
> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
> PREFIX myonto: <http://example.com/myonto#>
>
> SELECT count(DISTINCT(?resource))
> FROM <http://mygraph.example.com>
> WHERE {
>      ?resource rdf:type ?resourceType .
>      ?resourceType rdfs:subClassOf myonto:MyUpperClass .
>      ?resource rdf:type myonto:MyUpperClass
> }
>
> => result: 4014
>
> However, when running the query without the last clause, I'm getting
> the result as I expected:
>
> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
> PREFIX myonto: <http://example.com/myonto#>
>
> SELECT count(DISTINCT(?resource))
> FROM <http://mygraph.example.com>
> WHERE {
>      ?resource rdf:type ?resourceType .
>      ?resourceType rdfs:subClassOf myonto:MyUpperClass .
>      ?resource rdf:type myonto:MyUpperClass
> }
>
> => result: 84013
>
> Any idea on what could be wrong with my workflow? I'm running the
> query from the SPARQL execution view in conductor. Is there maybe a
> kind of limit for inserting triples?
> Thanks a lot in advance for all your help.
>
> Cheers,
>
>
> Bo
>
>
>
> ------------------------------------------------------------------------------
> November Webinars for C, C++, Fortran Developers
> Accelerate application performance with scalable programming models. Explore
> techniques for threading, error checking, porting, and tuning. Get the most
> from the latest Intel processors and coprocessors. See abstracts and register
> http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
> _______________________________________________
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users




------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&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