Hello Shamimul
Your query is valid. It looks like the configuration of SPARQL endpoint
describes the data set in such a way that the dataset may consist of
default graph but zero named graphs. This makes any GRAPH ?g {...}
graph group template useless and the debugging flag forces the compiler
to signal an error.
Try to run this query with empty "default graph" field, if the web page
contains such a field. If you can't alter the configuration, try call
this query via ODBC, UDBC, IODBC or JDBC, any SQL client will do, such
as isql shipped with Virtuoso.
If you have enough permissions you can also inspect the content of
DB.DBA.SYS_SPARQL_HOST table and check SH_DEFINES there (see http://doc
s.openlinksw.com/virtuoso/rdfdefaultgraph/ for more details)
Best Regards,
Ivan Mikhailov
OpenLink Software
http://virtuoso.openlinksw.com
On Fri, 2016-06-10 at 19:08 -0400, S.M.Shamimul Hasan wrote:
> Greetings,
> 
> I am running the following query on Virtuoso (7.1.0) SPARQL
> endpoint. 
> 
> *********************************************************************
> ***********
> select  (?o1 as ?initialseed), ?begin, ?end, (count(?mid)+1 as
> ?length) 
> where {
> GRAPH ?g
>     {
>     ?begin <http://test.edu/abc/vocab/getInfectedBy> ?o1.
>     ?end <http://test.edu/abc/vocab/getInfectedBy>* ?mid.
>     ?mid <http://test.edu/abc/vocab/getInfectedBy>* ?begin.
>     }
> 
>  {
>     select ?o1, ?o2, ?e
>     where{
>         GRAPH ?g1
>         {
>         ?s <http://test.edu/abc/vocab/dendrogram_infector_pid> ?o1.
>         ?s <http://test.edu/abc/vocab/dendrogram_infectee_pid> ?o2.
>         ?s <http://test.edu/abc/vocab/dendrogram_iteration>
> '0'^^xsd:decimal.
>         ?s <http://test.edu/abc/vocab/dendrogram_exposureday> ?e.
>         ?s1 <http://test.edu/abc/vocab/contactnetwork_pid1> ?o1.
>         ?s1 <http://test.edu/abc/vocab/contactnetwork_pid2> ?o2.
>         ?s1 <http://test.edu/abc/vocab/contactnetwork_acttype1>
> '5'^^xsd:decimal.
>         ?s1 <http://test.edu/abc/vocab/contactnetwork_acttype1>
> '5'^^xsd:decimal
>          }
>     }ORDER BY ASC(?e) LIMIT 1 
>  }
> 
> }GROUP BY ?o1 ?begin ?end
> 
> *********************************************************************
> **************
> It is giving me following error.
> 
> ************************************
> 
> Virtuoso 37000 Error SP031: SPARQL compiler: Variable
> '_::trans_subj_7_1' is used in subexpressions of the query but not
> assigned
> 
> ***********************************
> 
> In the query instead of "GRAPH  ?g" if I use FROM clause with graph
> URI  then query works fine.  However I need generic "GRAPH ?g."
> Please let me know how I can fix it.
> 
> Thank you.
> 
> Regards,
> S.M.Shamimul Hasan
> 
> 
> 
> 
> 
> -------------------------------------------------------------------
> -----------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> patterns at an interface-level. Reveals which users, apps, and
> protocols are 
> consuming the most bandwidth. Provides multi-vendor support for
> NetFlow, 
> J-Flow, sFlow and other flows. Make informed decisions using
> capacity 
> planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659
> 582;e
> _______________________________________________
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users

Reply via email to