Class ModelComparator

Description

This class compares to models. This comparator bases on the labelling algorithm described in <href="http://www.hpl.hp.com/techreports/2003/HPL-2003-142.pdf" >Signing RDF Graphs</href> by Jeremy J. Carroll.

Located in /util/ModelComparator.php (line 21)

Object
   |
   --ModelComparator
Method Summary
Array buildSortArray ($tripleList $tripleList)
boolean compare ($thisModel $thisModel, $thatModel $thatModel)
boolean compareTriples ($tripleList $array1, $tripleList $array2)
Array renameBlanks ($sortedArray $sortedArray)
Methods
buildSortArray (line 65)

Builds a sorted array.

Array buildSortArray ($tripleList $tripleList)
  • $tripleList $tripleList: A List that contains the models triples.
compare (line 31)

Compares two models.

boolean compare ($thisModel $thisModel, $thatModel $thatModel)
  • $thisModel $thisModel: First Model.
  • $thatModel $thatModel: Second Model.
compareTriples (line 144)

Compares the Triples in the lists.

boolean compareTriples ($tripleList $array1, $tripleList $array2)
  • $tripleList $array1: A List that contains the models triples.
  • $tripleList $array2: A List that contains the models triples.
renameBlanks (line 99)

Renames the models Blanknodes.

Array renameBlanks ($sortedArray $sortedArray)
  • $sortedArray $sortedArray: A List that contains the models triples.

Inherited Methods

Inherited From Object

Object::toString()

Documentation generated on Fri, 1 Jun 2007 16:49:53 +0200 by phpDocumentor 1.3.2