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;132659582;e
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users