Polaris error

Dec 29, 2013 at 9:02 AM
1.5.2.0_setup.exe- polaris tool has an older version of dnr, so it gives exception when running a query.
BrightstarDB.Polaris.ViewModel.SparqlQueryException: An error occurred while executing the SPARQL query. ---> System.TypeInitializationException: The type initializer for 'BrightstarDB.RdfFormat' threw an exception. ---> System.IO.FileLoadException: Could not load file or assembly 'dotNetRDF, Version=1.0.2.2880, Culture=neutral, PublicKeyToken=6055ffe4c97cc780' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
   at BrightstarDB.RdfFormat..cctor()
   --- End of inner exception stack trace ---
   at BrightstarDB.Client.BrightstarRestClient.ExecuteQuery(String storeName, String queryExpression, Nullable`1 ifNotModifiedSince, SparqlResultsFormat resultsFormat, RdfFormat graphFormat)
   at BrightstarDB.Polaris.ViewModel.Connection.ExecuteQuery(Store store, String sparqlQueryString, CommitPointViewModel targetCommitPoint)
   --- End of inner exception stack trace ---
   at BrightstarDB.Polaris.ViewModel.Connection.ExecuteQuery(Store store, String sparqlQueryString, CommitPointViewModel targetCommitPoint)
   at BrightstarDB.Polaris.ViewModel.Store.ExecuteSparql(String sparqlQueryString, CommitPointViewModel targetCommitPoint)
   at BrightstarDB.Polaris.ViewModel.SparqlQueryViewModel.RunSparqlQuery(Object o)
Coordinator
Dec 31, 2013 at 3:00 PM
Thanks for the bug report it must have been an error in the build process. I'll check it out and see if I can make a fix for it.
Coordinator
Jan 2, 2014 at 3:27 PM
I've uploaded a 1.5.3 release which has fixed this issue.
Jan 3, 2014 at 10:59 AM
Edited Jan 3, 2014 at 11:46 AM
Another pb in polaris but i think it's related to database engine.
On a scenario with 10 persons executing a query like
SELECT *
where {
        
        <http://www.brightstardb.com/.well-known/genid/34c5d598-2397-488d-a1d4-af967519abe0> a <http://www.example.org/schema/Person>.
}
goes on infinite loop and polaris freezes. I think it should return no solutions.

Also:
CONSTRUCT { <http://www.brightstardb.com/.well-known/genid/34c5d598-2397-488d-a1d4-af967519abe0> a <http://www.example.org/schema/Person>}
where {}
return no results, but
The graph template can contain triples with no variables (known as ground or explicit triples), and these also appear in the output RDF graph returned by the CONSTRUCT query form.
Union does not work properly:
SELECT ?s ?p ?o
where
{
        {
                SELECT ?s ?p ?o
                where {
                        ?s ?p ?o.
                        ?s <http://www.example.org/schema/age> ?age.
                        select distinct ?s
                        where
                        {
                                ?s <http://www.example.org/schema/age> ?age.
                                ?s a <http://www.example.org/schema/Person>.
                        }
                        order by desc(?age)
                        limit 3
                        offset 2
                }
                order by desc(?age)
                
        }
        union
        {
                SELECT ?s ?p ?o
                where {
                        ?s ?p ?o.
                        FILTER regex(str(?s), "http://www.brightstardb.com/.well-known/genid/7b784046-5653-43d4-99dd-60dd6a17cd35", "i") 
                }
        }
}
The second inner query return results, but when used in union only returns results form first query.
Also if changing keyword "UNION" to ".UNION" query goes in infinite loop.
Coordinator
Jan 3, 2014 at 2:23 PM
These look like issues to do with processing the SPARQL query rather than anything to do with Polaris in particular (though it might be that Polaris is not properly handling errors from the query processing). Can you tell me what type of connection you are using (embedded or rest) and if you have tried these queries in code or only in Polaris (if you have tried them in code, what results do you get ?).
Jan 3, 2014 at 2:57 PM
Edited Jan 3, 2014 at 9:21 PM
I only tried them in polaris, so i think it's rest connection.