rdf_to_ris_types={ ns.bibo['Article']:{ ns.bibo['Journal']: JOUR } } def SN_ID_Generator(entry, handle): _ns, val = SN_Extractor(entry[SN][0]) __ns, pre = ns_split(_ns) return "urn:%s:%s"%(pre,val) object_constructor_map = { } object_constructor_map[ns.bibo['Journal']] = ( object_constructor_curry( grab_journal_object, lambda entry, handler: SN in entry, SN_ID_Generator, object_constructor_map ), ns.terms['isPartOf'], None) object_constructor_map[ns.foaf['Organization']] = ( object_constructor_curry( grab_organization_object, lambda entry, handler: DP in entry, lambda entry, handler: "urn:org:%s"%entry[DP][0], object_constructor_map ), ns.bibo['distributor'], None)
return bibtex_type return None return rdf_to_bibtex_type_mapper rdf_to_bibtex_map = [ create_map(ns.bibo['Article'], ns.terms['isPartOf'], ns.bibo['Journal'], ARTICLE), create_map(ns.bibo['Article'], ns.terms['isPartOf'], ns.bibo['Proceedings'], INPROCEEDINGS), create_map(ns.bibo['Chapter'], ns.terms['isPartOf'], ns.bibo['Book'], INCOLLECTION), create_map(ns.bibo['Book'], None, None, BOOK), ] object_constructor_map = {} object_constructor_map[ns.bibo['Journal']] = ( object_constructor_curry( grab_journal_object, lambda entry, handler: JOURNAL in entry, easy_id_generator_generator(ns.bibo['issn'], ISSN, lambda value: re.sub("[^0-9-]","", value), 'Journal'), object_constructor_map ), ns.terms['isPartOf'], None) object_constructor_map[ns.bibo['Proceedings']] = ( object_constructor_curry( grab_conference_object, lambda entry, handler: BOOKTITLE in entry, easy_id_generator_generator(ns.bibo['isbn'], ISBN, lambda value: value, 'Proceedings'), object_constructor_map ), ns.terms['isPartOf'], None) object_constructor_map[ns.bibo['Book']] = (