Reasoning broken in 5.1.0

Hi,

Reasoning broke for us in 5.1.0.

bash-4.3# stardog query explain -r testSesame "select * where {
> 
>   ?a virksomhet:parent ?b.
> 
> }"
Explaining Query:

select * where {

  ?a virksomhet:parent ?b.

}

The Query Plan:

From all
Distinct [#1]
`─ Projection(?a, ?b) [#1]
   `─ Empty [#1]

bash-4.3# stardog query explain  testSesame "select * where {

  ?a virksomhet:parent ?b.

}"
Explaining Query:

select * where {

  ?a virksomhet:parent ?b.

}

The Query Plan:

From all
Projection(?a, ?b) [#365]
`─ Scan[PSOC](?a, <http://data.einnsyn.no/virksomhetmeta/parent>, ?b) [#365]


Ontology: https://gist.github.com/hmottestad/a388e05b55399fd13f46289886b9b7e2

Cheers,
Håvard

Running optimize on the database seemed to make it work again.