From: Kathi F. <Kat...@gm...> - 2012-07-13 21:00:32
|
Ian, I think another alternative would be to use the dcterm that is closest and just namespace an attribute on that that gives the added information/specialization that you need. We did this for adding contributor specializations. Kathi On Fri, Jul 13, 2012 at 1:30 PM, Richard Jones <ri...@co...>wrote: > Hi Ian, > > The qualifier approach that DSpace uses (dc.contributor.department for > example) is an idiom based on the DCMI terms, so you can't strictly do > it the way you suggest here, no, because what you've got isn't Dublin > Core. If you take a look at the DCMI spec > (http://dublincore.org/documents/dcmi-terms/) you will see that what > DSpace represents as dc.title.alternative (for example), is actually > correctly referenced as dcterms:alternative (which is a refinement of > dcterms:title), and in SWORD we allow the DC XML to be embedded like > <dcterms:alternative>subtitle</dcterms:alternative>, but only because > that's a legitimate DCMI term. > > Your options are: > > 1/ Ignore all that and do it anyway! Your example is legit XML, even > if the namespace declaration is technically inaccurate, and if you > update the ingester in DSpace to recognise your custom term (you might > also need to update the disseminators to reflect it back over the > sword API) > > 2/ Put your custom field in its own namespace. Same comments about > updating the ingesters as in (1) apply. > > Hope that helps. > > Cheers, > > Richard > > On 13 July 2012 16:38, Wellaway, Ian <I.J...@ex...> wrote: > > Hi, > > > > > > > > In the python protocol for SWORD v2, is it possible to upload metadata > that > > has a qualifier as well as an identifier...Eg. dc.contributor.department. > > > > > > > > At present, I can upload metadata from the DCMI range but this only > allows > > as certain scope of data (such as contributor or title). > > > > > > > > Ideally, I’d like to write this as atom xml along the lines of: > > > > > > > > <?xml version='1.0'?> > > > > <ns0:entry xmlns:ns0='http://www.w3.org/2005/Atom' > > xmlns:ns1='http://purl.org/dc/terms/'> > > > > <ns0:generator uri='http://bitbucket.org/beno/python-sword2' > version='0.1' > > /> > > > > <ns0:updated>2012-07-09T17:06:44.696709</ns0:updated> > > > > <ns1:title>Test import 2</ns1:title> > > > > > > > > <ns1:contributor.department>Test text</ns1:contributor.department > ‘this > > doesn’t work! > > > > > > > > </ns0:entry> > > > > > > > > Any ideas on this? > > > > > > > > Thanks > > > > > > > > Ian > > > > > > > > ------------ > > > > Ian Wellaway > > > > Senior System Support & Development Officer - Academic Systems (Room 911) > > Wednesdays only > > > > & > > > > Technical Developer, Open Exeter - Infrastructure Systems (Room 54) > Monday - > > Tuesday, Thursday - Friday > > > > > > > > Exeter IT > > Laver Building > > University of Exeter > > EX4 4QE > > UK > > > > > > > > tel +44 1392 722852 > > > > > > > > > > > ------------------------------------------------------------------------------ > > 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/ > > _______________________________________________ > > sword-app-tech mailing list > > swo...@li... > > https://lists.sourceforge.net/lists/listinfo/sword-app-tech > > > > > > -- > > Richard Jones, > > Founder, Cottage Labs > t: @richard_d_jones, @cottagelabs > w: http://cottagelabs.com > > > ------------------------------------------------------------------------------ > 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/ > _______________________________________________ > sword-app-tech mailing list > swo...@li... > https://lists.sourceforge.net/lists/listinfo/sword-app-tech > -- Katherine Fletcher, kat...@gm... <kat...@gm...> Twitter: kefletcher <http://www.twitter.com/kefletcher> Blog: kefletcher.blogspot.com <kat...@gm...> |