File: export_test.c

package info (click to toggle)
liblrdf 0.4.0-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 1,744 kB
  • ctags: 291
  • sloc: sh: 8,194; ansic: 2,103; makefile: 75
file content (25 lines) | stat: -rw-r--r-- 409 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <stdio.h>
#include <stdlib.h>

#include "lrdf.h"

int main(int argc, char*argv[])
{
	const char *rdf_uris[] = {
		"file:ladspa.rdfs",
	       	"file:test-in.n3",
		 NULL
	};

	lrdf_init();
	if (lrdf_read_files(rdf_uris)) {
                fprintf(stderr, "failed to open a file\n");
		exit(1);
        }

	lrdf_export_by_source("file:test-in.n3", "file:test-out.n3");

	lrdf_cleanup();

	return 0;
}