コード例 #1
0
ファイル: engine.py プロジェクト: anukat2015/pybibframe
    def postprocess():
        #No need to bother with Versa -> RDF translation if we were not asked to generate Turtle
        if any((rdfttl, rdfxml)): rdf.process(model, g, to_ignore=extant_resources, logger=logger)
        if canonical: global_model.add_many([(o,r,t,a) for (rid,(o,r,t,a)) in model])

        if xml is not None:
            microxml.process(model, xmlw, to_ignore=extant_resources, logger=logger)

        model.create_space()
コード例 #2
0
    def postprocess():
        #No need to bother with Versa -> RDF translation if we were not asked to generate Turtle
        if any((rdfttl, rdfxml)):
            rdf.process(model, g, to_ignore=extant_resources, logger=logger)
        if canonical:
            global_model.add_many([(o, r, t, a)
                                   for (rid, (o, r, t, a)) in model])

        if xml is not None:
            microxml.process(model,
                             xmlw,
                             to_ignore=extant_resources,
                             logger=logger)

        model.create_space()
コード例 #3
0
ファイル: marcxml.py プロジェクト: uogbuji/pybibframe
 def postprocess(rec):
     #No need to bother with Versa -> RDF translation if we were not asked to generate Turtle
     if rdfttl is not None: rdf.process(m, g, logger=logger)
     m.create_space()
コード例 #4
0
ファイル: marcxml.py プロジェクト: kefo/pybibframe
 def postprocess(rec):
     #No need to bother with Versa -> RDF translation if we were not asked to generate Turtle
     if any((rdfttl, rdfxml)): rdf.process(m, g, to_ignore=extant_resources, logger=logger)
     m.create_space()