diff options
| author | yzhou <yzhou@krr-linux.cs.ox.ac.uk> | 2015-04-28 17:13:55 +0100 |
|---|---|---|
| committer | yzhou <yzhou@krr-linux.cs.ox.ac.uk> | 2015-04-28 17:13:55 +0100 |
| commit | 4013a9d33d0f1a06b87d12dd0543912c53bba137 (patch) | |
| tree | 717d2ef6f8743031af689b2cd6f94ffc55fd5e70 /src/uk/ac/ox/cs/pagoda/query/rollup/QueryGraph.java | |
| parent | 30b5afef93bdb4f0ee0e7647fb0dd3d9c84e452a (diff) | |
| download | ACQuA-4013a9d33d0f1a06b87d12dd0543912c53bba137.tar.gz ACQuA-4013a9d33d0f1a06b87d12dd0543912c53bba137.zip | |
pass the wine realisation
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 | 10 |
1 files changed, 6 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 11b0c75..26b0c1a 100644 --- a/src/uk/ac/ox/cs/pagoda/query/rollup/QueryGraph.java +++ b/src/uk/ac/ox/cs/pagoda/query/rollup/QueryGraph.java | |||
| @@ -42,6 +42,8 @@ import org.semanticweb.owlapi.model.OWLObjectSomeValuesFrom; | |||
| 42 | import org.semanticweb.owlapi.model.OWLObjectUnionOf; | 42 | import org.semanticweb.owlapi.model.OWLObjectUnionOf; |
| 43 | import org.semanticweb.owlapi.model.OWLOntology; | 43 | import org.semanticweb.owlapi.model.OWLOntology; |
| 44 | 44 | ||
| 45 | import uk.ac.ox.cs.pagoda.util.Namespace; | ||
| 46 | |||
| 45 | public class QueryGraph { | 47 | public class QueryGraph { |
| 46 | 48 | ||
| 47 | Set<Variable> freeVars = new HashSet<Variable>(); | 49 | Set<Variable> freeVars = new HashSet<Variable>(); |
| @@ -63,10 +65,10 @@ public class QueryGraph { | |||
| 63 | 65 | ||
| 64 | for (Atom atom: bodyAtoms) { | 66 | for (Atom atom: bodyAtoms) { |
| 65 | if (atom.getArity() == 1) { | 67 | if (atom.getArity() == 1) { |
| 66 | updateExistentiallyVariables(atom.getArgumentVariable(0)); | 68 | updateExistentiallyVariables(atom.getArgumentVariable(0)); |
| 67 | IRI iri = IRI.create(((AtomicConcept) atom.getDLPredicate()).getIRI()); | 69 | String id = ((AtomicConcept) atom.getDLPredicate()).getIRI(); |
| 68 | if (ontology.containsClassInSignature(iri)) | 70 | if (!id.equals(Namespace.PAGODA_ORIGINAL)) |
| 69 | concepts.add(atom.getArgument(0), factory.getOWLClass(IRI.create(((AtomicConcept) atom.getDLPredicate()).getIRI()))); | 71 | concepts.add(atom.getArgument(0), factory.getOWLClass(IRI.create(id))); |
| 70 | } | 72 | } |
| 71 | else if (atom.getArity() == 2) { | 73 | else if (atom.getArity() == 2) { |
| 72 | updateExistentiallyVariables(atom.getArgumentVariable(0)); | 74 | updateExistentiallyVariables(atom.getArgumentVariable(0)); |
