Hello,
I have stardog 4.2 and 4.2.3 running. Attached below is a query which works fine on 4.2 and fails on 4.2.3.
When trying to run from console it logs EncodingException.
Here is the query and error logs
select ?datasource (count(DISTINCT ?pointer) as ?count) where
{
{
select ?pointer where {
{
select ?pointer where {
{
select distinct ?substance where {
{
select distinct ?substance where {
?urn smt:modLabel "benzene" .
?substance smt:searchLabel ?urn .
}
}
union
{
select distinct ?substance where {
?substance smt:elementSystem "benzene" .
}
}
}
}
{
select ?propStuff where {
?property skos:prefLabel "solid-state physics"@en .
?propStuff smt:isProperty ?property .
}
}
?subStuff smt:hasComponent*/smt:isSubstance ?substance .
?obs smt:observedStuff ?subStuff ;
smt:observedProperty ?propStuff ;
smt:compiledIn ?pointer
}
}
union{
select ?pointer where {
{
select distinct ?substance where {
{
select distinct ?substance where {
?urn smt:modLabel "benzene" .
?substance smt:searchLabel ?urn .
}
}
union
{
select distinct ?substance where {
?substance smt:elementSystem "benzene" .
}
}
}
}
{
select ?propStuff where {
?property skos:broader*/skos:prefLabel "solid-state physics"@en .
?propStuff smt:isProperty ?property .
}
}
?subStuff smt:hasComponent*/smt:isSubstance ?substance .
?obs smt:observedStuff ?subStuff ;
smt:observedProperty ?propStuff ;
smt:compiledIn ?pointer
filter not exists {?pointer smt:dataSource "SpringerMaterials Interactive"}
}
}
}
}
?pointer smt:dataSource ?datasource.
}
group by ?datasource
HAVING ((?count) != 0)
order by (?count)
Kindly let us know the resolution.
Thank you,
Mayur