@Test public void testOWLGraphEdgeHashCode() { OWLOntology ont = this.graphManipulator.getOwlGraphWrapper().getSourceOntology(); OWLObjectProperty partOf = this.graphManipulator.getOwlGraphWrapper(). getOWLObjectPropertyByIdentifier("BFO:0000050"); OWLClass source = this.graphManipulator.getOwlGraphWrapper().getOWLClassByIdentifier("FOO:0003"); OWLClass target = this.graphManipulator.getOwlGraphWrapper().getOWLClassByIdentifier("FOO:0001"); OWLGraphEdge edge1 = new OWLGraphEdge(source, target, partOf, Quantifier.SOME, ont); OWLGraphEdge edge2 = new OWLGraphEdge(source, target, partOf, Quantifier.SOME, ont); assertTrue("Two OWLGraphEdges are equal but have different hashcodes.", edge1.equals(edge2) && edge1.hashCode() == edge2.hashCode()); }
public OWLGraphWrapper getOwlGraphWrapper() { return this.owlGraphWrapper; }
OWLGraphManipulator { public OWLGraphWrapper getOwlGraphWrapper() { return this.owlGraphWrapper; } }
OWLGraphManipulator { public OWLGraphWrapper getOwlGraphWrapper() { return this.owlGraphWrapper; } @SuppressWarnings("unused") private  OWLGraphManipulator();  OWLGraphManipulator(OWLOntology ont);  OWLGraphManipulator(OWLGraphWrapper owlGraphWrapper);  OWLGraphManipulator(OWLGraphWrapper owlGraphWrapper, boolean performDefaultModifs); }
OWLGraphManipulator { public OWLGraphWrapper getOwlGraphWrapper() { return this.owlGraphWrapper; } @SuppressWarnings("unused") private  OWLGraphManipulator();  OWLGraphManipulator(OWLOntology ont);  OWLGraphManipulator(OWLGraphWrapper owlGraphWrapper);  OWLGraphManipulator(OWLGraphWrapper owlGraphWrapper, boolean performDefaultModifs); void makeSimpleOntology(); void simplifies(Collection<String> classIdsToRemove, Collection<String> relIds, 
            Collection<String> toRemoveSubgraphRootIds,
            Collection<String> toFilterSubgraphRootIds,   
            Collection<String> subsetNames); int reduceRelations(); int reducePartOfIsARelations(); int removeClassAndPropagateEdges(String classToRemoveId); int mapRelationsToParent(Collection<String> parentRelations); int mapRelationsToParent(Collection<String> parentRelations, 
    		Collection<String> relsExcluded); Set<String> filterSubgraphs(Collection<String> allowedSubgraphRootIds); Set<String> removeSubgraphs(Collection<String> subgraphRootIds, 
            boolean keepSharedClasses); Set<String> removeSubgraphs(Collection<String> subgraphRootIds, 
            boolean keepSharedClasses, Collection<String> allowedSubgraphRootIds); int filterRelations(Collection<String> allowedRels, boolean allowSubRels); void removeUnrelatedRelations(Collection<String> allowedRels); int removeRelations(Collection<String> forbiddenRels, boolean forbidSubRels); int removeRelsToSubsets(Collection<String> subsets); int removeRelsToSubsets(Collection<String> subsets, 
	        Collection<String> classIdsExcluded); int removeDirectEdgesBetween(String sourceId, String targetId); boolean removeEdge(OWLGraphEdge edge); int removeEdges(Collection<OWLGraphEdge> edges); boolean addEdge(OWLGraphEdge edge); int addEdges(Set<OWLGraphEdge> edges); boolean removeClass(OWLClass classToDel); Set<OWLClass> removeClasses(Set<OWLClass> classesToDel); Set<OWLClass> filterClasses(Set<OWLClass> classesToKeep); boolean isASubClassOfEdge(OWLGraphEdge edge); boolean isAPartOfEdge(OWLGraphEdge edge); OWLGraphWrapper getOwlGraphWrapper(); }
OWLGraphManipulator { public OWLGraphWrapper getOwlGraphWrapper() { return this.owlGraphWrapper; } @SuppressWarnings("unused") private  OWLGraphManipulator();  OWLGraphManipulator(OWLOntology ont);  OWLGraphManipulator(OWLGraphWrapper owlGraphWrapper);  OWLGraphManipulator(OWLGraphWrapper owlGraphWrapper, boolean performDefaultModifs); void makeSimpleOntology(); void simplifies(Collection<String> classIdsToRemove, Collection<String> relIds, 
            Collection<String> toRemoveSubgraphRootIds,
            Collection<String> toFilterSubgraphRootIds,   
            Collection<String> subsetNames); int reduceRelations(); int reducePartOfIsARelations(); int removeClassAndPropagateEdges(String classToRemoveId); int mapRelationsToParent(Collection<String> parentRelations); int mapRelationsToParent(Collection<String> parentRelations, 
    		Collection<String> relsExcluded); Set<String> filterSubgraphs(Collection<String> allowedSubgraphRootIds); Set<String> removeSubgraphs(Collection<String> subgraphRootIds, 
            boolean keepSharedClasses); Set<String> removeSubgraphs(Collection<String> subgraphRootIds, 
            boolean keepSharedClasses, Collection<String> allowedSubgraphRootIds); int filterRelations(Collection<String> allowedRels, boolean allowSubRels); void removeUnrelatedRelations(Collection<String> allowedRels); int removeRelations(Collection<String> forbiddenRels, boolean forbidSubRels); int removeRelsToSubsets(Collection<String> subsets); int removeRelsToSubsets(Collection<String> subsets, 
	        Collection<String> classIdsExcluded); int removeDirectEdgesBetween(String sourceId, String targetId); boolean removeEdge(OWLGraphEdge edge); int removeEdges(Collection<OWLGraphEdge> edges); boolean addEdge(OWLGraphEdge edge); int addEdges(Set<OWLGraphEdge> edges); boolean removeClass(OWLClass classToDel); Set<OWLClass> removeClasses(Set<OWLClass> classesToDel); Set<OWLClass> filterClasses(Set<OWLClass> classesToKeep); boolean isASubClassOfEdge(OWLGraphEdge edge); boolean isAPartOfEdge(OWLGraphEdge edge); OWLGraphWrapper getOwlGraphWrapper();  }