Yes, I checked this a couple of days ago for another reason. REST API getObjectProfile will get the state (and the label)
However the SOAP API call doesn't (even though the underlying profile object is populated) - I raised a JIRA ticket for this. Steve -----Original Message----- From: Asger Askov Blekinge [mailto:a...@statsbiblioteket.dk] Sent: 02 December 2010 16:23 To: Support and info exchange list for Fedora users. Subject: Re: [fcrepo-user] How to access property's value definedobjectProperties? I think they are included in the output from getObjectProfile now. But that is a new feature, from perhaps 3.3 On Thu, 2010-11-25 at 11:50 +0100, Steve Bayliss wrote: > Hi Ludovic > > You can use the getObjectXML method to get the full FOXML, however > that's not very efficient as you'll get the full FOXML including all > history. > > Unfortunately the getObjectProfile method does not return the state > property. However you can use findObjects to get the state. > > An alternative would be to use the Resource Index if you have that > enabled, and for instance search for the pattern using one of: > > TQL: > select $state from <#ri> > where <info:fedora/demo:object> > <info:fedora/fedora-system:def/model#state> $state > > SPO: > <info:fedora/demo:ingest> <info:fedora/fedora-system:def/model#state> > * > > (replacing <info:fedora/demo:ingest with the URI of your object) > > You can find other object properties using this method also. > > Regards > Steve > > > > > > > -----Original Message----- > From: Ludovic Deravet [mailto:ludovicdera...@gmail.com] > Sent: 25 November 2010 10:33 > To: fedora-commons-users@lists.sourceforge.net > Subject: [fcrepo-user] How to access property's value > definedobjectProperties? > > > Hello, > > > I'm searching a way to extract from digital objects properties stored > into the <foxml:objectProperties> segment. > > > <foxml:objectProperties> > <foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="A"/> > <foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE="MyLabel"/> > </foxml:objectProperties> > > > I tried to find a way to easy extract from digital objects the value > from property label, for instance, but couldn't find a way to do it > through the API. > > > Am I missing something here? How can I extract the value of such > property? > > > Thank you. > -- > Ludovic > ---------------------------------------------------------------------------- -- Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Fedora-commons-users mailing list Fedora-commons-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fedora-commons-users ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Fedora-commons-users mailing list Fedora-commons-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fedora-commons-users