blob: 6d5d6f895513bc260f550c93254455773bd0e79b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/*
* SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/>
*
* SPDX-License-Identifier: EPL-2.0
*/
package tools.refinery.store.reasoning;
import tools.refinery.store.adapter.ModelAdapter;
import tools.refinery.store.query.resultset.ResultSet;
import tools.refinery.store.query.dnf.Dnf;
import tools.refinery.store.reasoning.representation.AnyPartialSymbol;
import tools.refinery.store.reasoning.representation.PartialRelation;
import tools.refinery.store.reasoning.representation.PartialSymbol;
public interface ReasoningAdapter extends ModelAdapter {
PartialRelation EXISTS = new PartialRelation("exists", 1);
@Override
ReasoningStoreAdapter getStoreAdapter();
default AnyPartialInterpretation getPartialInterpretation(AnyPartialSymbol partialSymbol) {
// Cast to disambiguate overloads.
var typedPartialSymbol = (PartialSymbol<?, ?>) partialSymbol;
return getPartialInterpretation(typedPartialSymbol);
}
<A, C> PartialInterpretation<A, C> getPartialInterpretation(PartialSymbol<A, C> partialSymbol);
ResultSet<Boolean> getLiftedResultSet(Dnf query);
}
|