to the main page... about these slides...

Merging results with Skolem functions

ID values can be used to guide the grouping of data:
  WHERE <$> <author> <firstname> $fn </> 
                     <lastname> $ln </> 
            </>
            <title> $t </> 
        </> IN "www.a.b.c/bib.xml"
  CONSTRUCT <person ID=PersonID($fn, $ln)> 
                <firstname ID=FirstnameID($fn, $ln)> $fn </> 
                <lastname ID=LastnameID($fn, $ln)> $ln </> 
                <publicationtitle> $t </> 
            </>

All person elements with the same ID have their contents merged. (In general, this corresponds to unbounded nesting of queries.)