# The master in this directory is AOIM-master.ttl.in, which is the # AOIM vocabulary in Turtle syntax (see Notes file for provenance) # # The products from this directory (see the target 'all') are # AOIM.ttl and AOIM.rdf. # For cwm and rapper, see notes in configure.ac CWM=@CWM@ RAPPER=@RAPPER@ 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)/AOIM $< >tmp && mv tmp $@ %.html: %.rdf rm -f $@ $(RDF2HTML) $< >tmp && mv tmp $@ ######################################## # # Targets all: AOIM.tar AOIM.tar: AOIM.ttl AOIM.rdf AOIM.html rm -f $@ $(TAR) cf $@ AOIM.ttl AOIM.rdf AOIM.html AOIM.rdf: AOIM-master.ttl $(CWM) $< --think=../code/checkHierarchy.n3 --rdf | $(RAPPER) -i rdfxml -o rdfxml -O $(BASEURI)/AOIM - $(BASEURI)/AOIM>tmp && mv tmp $@ clean: rm -f AOIM-master.ttl AOIM.ttl AOIM.rdf AOIM.tar tmp