/[volute]/trunk/projects/vocabularies/src/UCD/Makefile.in
ViewVC logotype

Contents of /trunk/projects/vocabularies/src/UCD/Makefile.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 79 - (show annotations)
Tue Feb 26 17:24:43 2008 UTC (12 years, 9 months ago) by norman.x.gray
File size: 1378 byte(s)
Tweak generation of UCD.rdf so that rapper generates xml:base,
shortening output

1 # The master in this directory is UCD-master.ttl.in, which is the
2 # UCD vocabulary in Turtle syntax (TODO: it would be better if this were
3 # generated more-or-less directly from a version of the standard UCD
4 # vocabulary).
5 #
6 # The products from this directory (see the target 'all') are
7 # UCD.ttl and UCD.rdf.
8
9 # For cwm and rapper, see notes in configure.ac
10 CWM=@CWM@
11 RAPPER=@RAPPER@
12
13 # Version information
14 RELEASE=@PACKAGE_VERSION@
15 RELEASEDATE=@RELEASEDATEN@
16 # Base URI for the vocabularies -- no trailing slash
17 BASEURI=@BASEURI@
18
19 edit=sed -e 's,@RELEASE\@,$(RELEASE),' \
20 -e 's,@RELEASEDATE\@,$(RELEASEDATE),' \
21 -e 's,@BASEURI\@,$(BASEURI),'
22
23 ########################################
24 #
25 # Rules
26
27 %.ttl: %.ttl.in
28 rm -f $@ tmp
29 $(edit) $< >tmp && mv tmp $@
30
31 # Translate Turtle to RDF/XML using rapper. It looks like we could use
32 # $(CWM) --n3 $< --rdf --pipe
33 # but cwm 1.0.0 objects with "This sink cannot accept values with languages",
34 # apparently objecting to the xml:lang attributes in the RDF.
35 %.ttl: %.rdf
36 rm -f $@ tmp
37 $(RAPPER) -o turtle -O $(BASEURI)/UCD $< >tmp && mv tmp $@
38
39 ########################################
40 #
41 # Targets
42
43 all: UCD.ttl UCD.rdf
44
45 UCD.rdf: UCD-master.ttl
46 $(CWM) $< --think=../code/checkHierarchy.n3 --rdf | $(RAPPER) -i rdfxml -o rdfxml -O $(BASEURI)/UCD - $(BASEURI)/UCD >tmp && mv tmp $@
47
48 clean:
49 rm -f UCD-master.ttl UCD.ttl UCD.rdf tmp

msdemlei@ari.uni-heidelberg.de
ViewVC Help
Powered by ViewVC 1.1.26