/[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 670 - (show annotations)
Thu Jul 3 14:11:12 2008 UTC (12 years, 5 months ago) by alasdair.gray
File size: 1623 byte(s)
Updated rdf2html to cover all skos constructs used in the vocabularies

Added rdf2html into the build system for UCD and removed the place holder file
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 # For cwm and rapper, see notes in configure.ac
7 CWM=@CWM@
8 RAPPER=@RAPPER@
9
10 # TAR may be overridden on the command line
11 TAR=@TAR@
12
13 RDF2HTML=PYTHONPATH=/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/ python ../code/rdf2html.py
14
15 # Version information
16 RELEASE=@PACKAGE_VERSION@
17 RELEASEDATE=@RELEASEDATEN@
18 # Base URI for the vocabularies -- no trailing slash
19 BASEURI=@BASEURI@
20
21 edit=sed -e 's,@RELEASE\@,$(RELEASE),' \
22 -e 's,@RELEASEDATE\@,$(RELEASEDATE),' \
23 -e 's,@BASEURI\@,$(BASEURI),'
24
25 ########################################
26 #
27 # Rules
28
29 %.ttl: %.ttl.in
30 rm -f $@ tmp
31 $(edit) $< >tmp && mv tmp $@
32
33 # Translate Turtle to RDF/XML using rapper. It looks like we could use
34 # $(CWM) --n3 $< --rdf --pipe
35 # but cwm 1.0.0 objects with "This sink cannot accept values with languages",
36 # apparently objecting to the xml:lang attributes in the RDF.
37 %.ttl: %.rdf
38 rm -f $@ tmp
39 $(RAPPER) -o turtle -O $(BASEURI)/UCD $< >tmp && mv tmp $@
40
41 %.html: %.rdf
42 rm -f $@
43 $(RDF2HTML) $< >tmp && mv tmp $@
44
45 ########################################
46 #
47 # Targets
48
49 all: UCD.tar
50
51 UCD.tar: UCD.ttl UCD.rdf UCD.html
52 rm -f $@
53 $(TAR) cf $@ UCD.ttl UCD.rdf UCD.html
54
55 UCD.rdf: UCD-master.ttl
56 $(CWM) $< --think=../code/checkHierarchy.n3 --rdf | $(RAPPER) -i rdfxml -o rdfxml -O $(BASEURI)/UCD - $(BASEURI)/UCD >tmp && mv tmp $@
57
58 clean:
59 rm -f UCD-master.ttl UCD.ttl UCD.rdf UCD.tar tmp

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