def main():
    args = argument_parser().parse_args()

    # FIXME: validate against schemas if present!
    graph = BaserockDefinitionsImporter(args.output_location).load_all_morphologies(
        path=args.input_location, limit_architectures=args.architectures)

    #sys.stdout.write(helpers.serialize_to_json_ld(graph).decode('utf8'))
    sys.stdout.write(helpers.serialize_to_rdfxml(graph).decode('utf8'))
Пример #2
0
def main():
    args = argument_parser().parse_args()

    # FIXME: validate against schemas if present!
    graph = BaserockDefinitionsImporter(
        args.output_location).load_all_morphologies(
            path=args.input_location, limit_architectures=args.architectures)

    #sys.stdout.write(helpers.serialize_to_json_ld(graph).decode('utf8'))
    sys.stdout.write(helpers.serialize_to_rdfxml(graph).decode('utf8'))
def main():
    args = argument_parser().parse_args()

    with open(args.input_location, "r") as f:
        manifest = json.load(f)

    graph = GnomeContinuousImporter().parse_manifest(manifest, args.output_location)

    # sys.stdout.write(helpers.serialize_to_json_ld(graph).decode('utf8'))
    sys.stdout.write(helpers.serialize_to_rdfxml(graph).decode("utf8"))
def main():
    args = argument_parser().parse_args()

    with open(args.input_location, 'r') as f:
        manifest = json.load(f)

    graph = GnomeContinuousImporter().parse_manifest(
        manifest, args.output_location)

    #sys.stdout.write(helpers.serialize_to_json_ld(graph).decode('utf8'))
    sys.stdout.write(helpers.serialize_to_rdfxml(graph).decode('utf8'))