@@ -0,0 +1,1597 @@
+package de.tudresden.inf.lat.born.owlapi.processor;%0A%0Aimport org.semanticweb.owlapi.model.OWLOntology;%0A%0A/**%0A * An object of this class is a pair OWL ontology - Bayesian network.%0A * %0A * @author Julian Mendez%0A *%0A */%0Apublic class OntologyAndNetwork %7B%0A%0A%09private final OWLOntology owlOntology;%0A%09private final String bayesianNetwork;%0A%0A%09/**%0A%09 * Constructs a new pair OWL ontology - Bayesian network.%0A%09 */%0A%09public OntologyAndNetwork(OWLOntology owlOntology, String bayesianNetwork) %7B%0A%09%09if (owlOntology == null) %7B%0A%09%09%09throw new IllegalArgumentException(%22Null arguments.%22);%0A%09%09%7D%0A%09%09if (bayesianNetwork == null) %7B%0A%09%09%09throw new IllegalArgumentException(%22Null arguments.%22);%0A%09%09%7D%0A%0A%09%09this.owlOntology = owlOntology;%0A%09%09this.bayesianNetwork = bayesianNetwork;%0A%09%7D%0A%0A%09/**%0A%09 * Returns the OWL ontology;%0A%09 * %0A%09 * @return the OWL ontology%0A%09 */%0A%09public OWLOntology getOntology() %7B%0A%09%09return this.owlOntology;%0A%09%7D%0A%0A%09/**%0A%09 * Returns the Bayesian network.%0A%09 * %0A%09 * @return the Bayesian network%0A%09 */%0A%09public String getBayesianNetwork() %7B%0A%09%09return this.bayesianNetwork;%0A%09%7D%0A%0A%09@Override%0A%09public int hashCode() %7B%0A%09%09return this.owlOntology.hashCode() + 0x1F * this.bayesianNetwork.hashCode();%0A%09%7D%0A%0A%09@Override%0A%09public boolean equals(Object obj) %7B%0A%09%09if (this == obj) %7B%0A%09%09%09return true;%0A%09%09%7D else if (obj instanceof OntologyAndNetwork) %7B%0A%09%09%09OntologyAndNetwork other = (OntologyAndNetwork) obj;%0A%09%09%09return getOntology().equals(other.getOntology()) && getBayesianNetwork().equals(other.getBayesianNetwork());%0A%09%09%7D else %7B%0A%09%09%09return false;%0A%09%09%7D%0A%09%7D%0A%0A%09@Override%0A%09public String toString() %7B%0A%09%09return getBayesianNetwork() + %22%5Cn%5Cn%22 + getOntology();%0A%09%7D%0A%0A%7D%0A

Add class to combine an OWL ontology and a Bayesian network