de.fau.cs.www8.jadeowlcodec.tboxMerging
Class TripleStoreComparer

java.lang.Object
  extended by de.fau.cs.www8.jadeowlcodec.tboxMerging.TripleStoreComparer

public class TripleStoreComparer
extends java.lang.Object

Author:
Moritz Goeb

Constructor Summary
TripleStoreComparer(AbsTripleStore sender, AbsTripleStore receiver)
           
 
Method Summary
 java.util.Set<Uri.Concept> findEqualConcepts()
          Method to find Concepts, that are equal.
 java.util.Map<java.lang.String,java.util.Set<SimpleTriple>> getDifferenceFromNodes(Uri u)
          Method to filter all unequal properties from two nodes with same Uri
 java.util.Map<java.lang.String,java.util.Set<SimpleTriple>> getDifferenceFromNodes(Uri r, Uri s)
          Method to filter all unequal properties from two nodes
 java.util.Map<java.lang.String,java.util.Set<SimpleTriple>> getEqualsFromNodes(Uri r, Uri s)
          Method to filter all equal properties from two nodes
 java.util.Set<Uri.Concept> newConceptsInSender()
           
 boolean sameNodes(Uri s, Uri r)
          Method to check, whether the 2 corresponding nodes in the TripleStores are equal
 java.util.Set<Uri.Concept> topConcepts(Uri.Concept uri, AbsTripleStore ts)
          Method to get all direct subConcepts of a specific Concept
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TripleStoreComparer

public TripleStoreComparer(AbsTripleStore sender,
                           AbsTripleStore receiver)
Method Detail

newConceptsInSender

public java.util.Set<Uri.Concept> newConceptsInSender()

getEqualsFromNodes

public java.util.Map<java.lang.String,java.util.Set<SimpleTriple>> getEqualsFromNodes(Uri r,
                                                                                      Uri s)
Method to filter all equal properties from two nodes

Parameters:
r - receiver Node
s - sender Node
Returns:
Equivalents

getDifferenceFromNodes

public java.util.Map<java.lang.String,java.util.Set<SimpleTriple>> getDifferenceFromNodes(Uri u)
Method to filter all unequal properties from two nodes with same Uri

Parameters:
u - Uri
Returns:
Differences

getDifferenceFromNodes

public java.util.Map<java.lang.String,java.util.Set<SimpleTriple>> getDifferenceFromNodes(Uri r,
                                                                                          Uri s)
Method to filter all unequal properties from two nodes

Parameters:
r - receiver Node
s - sender Node
Returns:
Differences

sameNodes

public boolean sameNodes(Uri s,
                         Uri r)
Method to check, whether the 2 corresponding nodes in the TripleStores are equal

Parameters:
s - Node in sender TripleStore
r - Node in receiver TripleStore
Returns:
Equality of nodes

findEqualConcepts

public java.util.Set<Uri.Concept> findEqualConcepts()
Method to find Concepts, that are equal. These should not be considered when merging.

Returns:
Set of equal concepts

topConcepts

public java.util.Set<Uri.Concept> topConcepts(Uri.Concept uri,
                                              AbsTripleStore ts)
Method to get all direct subConcepts of a specific Concept

Parameters:
uri - Concept to find subConcepts for; if null the top Concepts will be retuned
ts - TripleStore to be searched
Returns:
direct subConcepts respectively top Concepts


Copyright 2007 Moritz Goeb, Bernhard Schiemann, Ulf Schreiber of Chair of Artificial Intelligence, University of Erlangen-Nuremberg