Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Gather

Start      Previous      Next  

This step is performed by the  gather.xsl  transform which can be found in its entirety the  example/xslt  folder. Figure 5 shows the first portion of this XSLT. We will now comment on the highlighted sections. In what follows, we will use [FnHm] to denote Figure n, Highlight m.

...

  • [F8H0] The variable  nidMatches  is the list of all matching person nodes from  Per0.xml  whose  netid s match the nonempty netid ( nid ) of the person for whom we are searching. Note that there may be no matches. This is a normal XPATH predicate expression like that done for organizations.
  • [F8H1] The variable  npMatches  is the list of all matching person nodes with no netid whose name parts match those of the person for whom we are searching. There may be no matches in this case as well.
  • [F8H2] The variable  results  will contain the name part match list  npMatches  when the search subject has no netid. Otherwise it will contain the netid match list nidMatches . Use of the adjust function here deals with the case where a source  NETID  only contains whitespace.
  • [F8H3] The function returns the first URI on the results list or the empty string. If there is more than one possible result then person triples have not been well maintained in VIVO or there are textually different but equivalent names with the same URI.

Start      Previous      Next