# The master in this directory is UCD-master.ttl.in, which is the # UCD vocabulary in Turtle syntax (TODO: it would be better if this were # generated more-or-less directly from a version of the standard UCD # vocabulary). # For cwm and rapper, see notes in configure.ac CWM=@CWM@ RAPPER=@RAPPER@ # TAR may be overridden on the command line TAR=@TAR@ RDF2HTML=@PYTHON@ ../code/rdf2html.py # Version information RELEASE=@PACKAGE_VERSION@ RELEASEDATE=@RELEASEDATEN@ # Base URI for the vocabularies -- no trailing slash BASEURI=@BASEURI@ edit=sed -e 's,@RELEASE\@,$(RELEASE),' \ -e 's,@RELEASEDATE\@,$(RELEASEDATE),' \ -e 's,@BASEURI\@,$(BASEURI),' ######################################## # # Rules %.ttl: %.ttl.in rm -f $@ tmp $(edit) $< >tmp && mv tmp $@ # Translate Turtle to RDF/XML using rapper. It looks like we could use # $(CWM) --n3 $< --rdf --pipe # but cwm 1.0.0 objects with "This sink cannot accept values with languages", # apparently objecting to the xml:lang attributes in the RDF. %.ttl: %.rdf rm -f $@ tmp $(RAPPER) -o turtle -O $(BASEURI)/UCD $< >tmp && mv tmp $@ %.html: %.rdf rm -f $@ $(RDF2HTML) $< >tmp && mv tmp $@ ######################################## # # Targets all: UCD.tar UCD.tar: UCD.ttl UCD.rdf UCD.html rm -f $@ $(TAR) cf $@ UCD.ttl UCD.rdf UCD.html UCD.rdf: UCD-master.ttl $(CWM) $< --think=../code/checkHierarchy.n3 --rdf | $(RAPPER) -i rdfxml -o rdfxml-abbrev -O $(BASEURI)/UCD - $(BASEURI)/UCD >tmp && mv tmp $@ clean: rm -f UCD-master.ttl UCD.ttl UCD.rdf UCD.tar tmp