Hi,
I'm running a ingest program. Part of that program involves first ingesting a
title object, then ingesting a volume object, where the volume object uses the
pid of the title object in it's RELS-EXT isAConstituentOf relationship. I'm
finding the title pid using an risearch query looking for a specific label:
http://localhost:8080/fedora/risearch?type=tuples&lang=iTQL&format=TSV&distinct=on&query=select
$object from <#ri> where $object <info:fedora/fedora-system:def/model#label>
'Title Object - bibID:5697712'
If I run the program twice, ingesting the title in 1 batch and the volume in
another, this works. If I do this ri query in the browser after the program
runs it works. However if I try this in one run, ingesting the title, then
running the query right after that ingest to get the title pid for the volume
object, the query returns nothing.
It's as if the RI hasn't completed a transaction when trying in 1 run, so
nothing is returned. Is there a way to force the RI so this risearch works
right after ingest of the title it is looking for?
I could save the title pid in a file or db or global variable rather than look
it up in the risearch, but I'd like to understand what is preventing the search
from working (needs time to register? some kind of transaction?, etc.)
Thanks,
-Eric
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users