diff options
Diffstat (limited to 'src/uk/ac/ox/cs/pagoda/query/rollup/QueryGraph.java')
| -rw-r--r-- | src/uk/ac/ox/cs/pagoda/query/rollup/QueryGraph.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/uk/ac/ox/cs/pagoda/query/rollup/QueryGraph.java b/src/uk/ac/ox/cs/pagoda/query/rollup/QueryGraph.java index 26b0c1a..58d7add 100644 --- a/src/uk/ac/ox/cs/pagoda/query/rollup/QueryGraph.java +++ b/src/uk/ac/ox/cs/pagoda/query/rollup/QueryGraph.java | |||
| @@ -304,8 +304,8 @@ class Visitor implements OWLClassExpressionVisitorEx<OWLClassExpression> { | |||
| 304 | 304 | ||
| 305 | @Override | 305 | @Override |
| 306 | public OWLClassExpression visit(OWLObjectHasValue ce) { | 306 | public OWLClassExpression visit(OWLObjectHasValue ce) { |
| 307 | if (ce.getFiller() instanceof VariableIndividual) { | 307 | if (ce.getValue() instanceof VariableIndividual) { |
| 308 | Individual c = (Individual) assignment.get(((VariableIndividual) ce.getFiller()).var); | 308 | Individual c = (Individual) assignment.get(((VariableIndividual) ce.getValue()).var); |
| 309 | OWLIndividual l = factory.getOWLNamedIndividual(IRI.create(c.getIRI())); | 309 | OWLIndividual l = factory.getOWLNamedIndividual(IRI.create(c.getIRI())); |
| 310 | return factory.getOWLObjectHasValue(ce.getProperty(), l); | 310 | return factory.getOWLObjectHasValue(ce.getProperty(), l); |
| 311 | } | 311 | } |
| @@ -356,8 +356,8 @@ class Visitor implements OWLClassExpressionVisitorEx<OWLClassExpression> { | |||
| 356 | 356 | ||
| 357 | @Override | 357 | @Override |
| 358 | public OWLClassExpression visit(OWLDataHasValue ce) { | 358 | public OWLClassExpression visit(OWLDataHasValue ce) { |
| 359 | if (ce.getFiller() instanceof VariableConstant) { | 359 | if (ce.getValue() instanceof VariableConstant) { |
| 360 | Constant c = (Constant) assignment.get(((VariableConstant) ce.getFiller()).var); | 360 | Constant c = (Constant) assignment.get(((VariableConstant) ce.getValue()).var); |
| 361 | OWLLiteral l = factory.getOWLLiteral(c.getLexicalForm(), c.getDatatypeURI()); | 361 | OWLLiteral l = factory.getOWLLiteral(c.getLexicalForm(), c.getDatatypeURI()); |
| 362 | return factory.getOWLDataHasValue(ce.getProperty(), l); | 362 | return factory.getOWLDataHasValue(ce.getProperty(), l); |
| 363 | } | 363 | } |
