You might also try using the REGEX function in a SPARQL query. I'm not sure if Fedora will pass it along to Mulgara or not, but it's worth a shot.
On Fri, Nov 11, 2011 at 8:32 AM, <aj...@virginia.edu> wrote: > It sounds a bit like you're using the RI (an RDF index) to do something > (string-matching) at which a full-text index (like Lucene or Zebra) would be > better. > > If you want to use RDF for this problem, I suggest that you create objects to > represent those upper entities you named (building, collection, section, etc) > and make a graph, e.g. > > objects:myobject1 isMemberOf sections:UkDhU.DCD.Misc.Ch > objects:myobject2 isMemberOf sections:UkDhU.DCD.Misc.Ch > sections:UkDhU.DCD.Misc.Ch isPartOf collections:UkDhU.DCD > collections:UkDhU.DCD isInside buildings:UkDhU > > or using some other suitable RDF predicates. Then your query will not rely on > string-matching, at which RDF stores are not especially good, but on > structure matching, at which RDF stores are very good. In my example a query > to find the object in a building might look something like: > > SELECT > ?object isInside ?building > WHERE { > ?object isMemberOf ?section. > ?section isPartOf ?collection. > ?collection isInside ?building. > } > > or to find how many objects from a collection have been Fedora-ized, you > could use a count query on: > > SELECT > ?object > WHERE { > ?object isMemberOf ?section. > ?section isPartOf ?collection. > } > > and so forth. > > > --- > A. Soroka > Online Library Environment > the University of Virginia Library > > > > > On Nov 11, 2011, at 7:50 AM, HIGGINS R.I. wrote: > >> Hello: >> I am attempting to keep track of which of our real objects have digital >> versions stored in Fedora. The simplest way to do this seemed to be to >> add an entry to the RELS-EXT datastream along the lines of >> >> <hasLocalReferenceNumber >> xmlns="info:fedora/fedora-system:def/relations-external#" >> rdf:resource="UkDhU:DCD.Misc.Ch.3650"></hasLocalReferenceNumber> >> >> For this to be useful, it would be necessary to be able to different >> searches: >> find all starting UkDhU:* (everything in the building) >> find all starting UkDhU:DCD* (everything in the collection) >> find all starting UkDhU:DCD.Misc.Ch.* (everything in the section of the >> collection) >> and so forth - assuming * to be a wild card. >> >> The lack of information on wild card searching of RDF out there implies >> that this is not a feature that is available. Is there a way to do this, >> or is it back to the drawing board ? >> Thank you >> - - - - - >> # Richard Higgins >> # Durham University Library >> # Archives & Special Collections >> # Palace Green >> # Durham >> # DH1 3RN >> # E-Mail: r.i.higg...@durham.ac.uk >> >> >> ------------------------------------------------------------------------------ >> RSA(R) Conference 2012 >> Save $700 by Nov 18 >> Register now >> http://p.sf.net/sfu/rsa-sfdev2dev1 >> _______________________________________________ >> Fedora-commons-users mailing list >> Fedora-commons-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Fedora-commons-users mailing list > Fedora-commons-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/fedora-commons-users > ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Fedora-commons-users mailing list Fedora-commons-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fedora-commons-users