~jplacerda/zeitgeist/784850

« back to all changes in this revision

Viewing changes to extra/ontology/Makefile.am

  • Committer: Mikkel Kamstrup Erlandsen
  • Date: 2010-04-28 19:11:01 UTC
  • mfrom: (1322.1.103 ontology_definition)
  • Revision ID: kamstrup@hardback-20100428191101-9pmau6vlqmna0fow
Merge lp:~zeitgeist/zeitgeist/ontology_definition. This introduces some slight API breaks on the Python level and maybe the need for a DB version upgrade to reflect new URIs here and there. We will tackle these issues in trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
ontology_trig_DATA = \
 
2
        zg.trig \
 
3
        nie.trig \
 
4
        nfo.trig \
 
5
        ncal.trig \
 
6
        nao.trig \
 
7
        nmo.trig \
 
8
        nmm.trig
 
9
 
 
10
ontology_py_DATA = \
 
11
        $(ontology_trig_DATA:.trig=.py) \
 
12
        zeitgeist.py
 
13
 
 
14
ontology_trigdir = $(datadir)/zeitgeist/ontology
 
15
ontology_pydir = $(datadir)/zeitgeist/ontology
 
16
        
 
17
%.py : %.trig
 
18
        echo -e "#\n# Auto-generated from $<. Do not edit\n#" > $@
 
19
        rapper -i trig -o rdfxml $< | $(top_srcdir)/extra/rdfxml2py >> $@
 
20
 
 
21
zeitgeist.py : $(ontology_trig_DATA)
 
22
        echo -e "#\n# Auto-generated from all .trig files ($^). Do not edit\n#" > $@
 
23
        cat $^ | rapper -i trig -o rdfxml -I ZeitgeistNamespace - | $(top_srcdir)/extra/rdfxml2py >> $@
 
24
 
 
25
CLEANFILES = \
 
26
        $(ontology_py_DATA)
 
27
 
 
28
EXTRA_DIST = \
 
29
        $(ontology_trig_DATA)
 
30