Makefile 3.63 KB
# $Id: Makefile,v 1.22 2004/07/07 15:45:41 connolly Exp $

include XSLTPROC.mak
include GVDOT.mak # $(DOT), $(PS2PDF)

PYTHON=python
CWM=../../2000/10/swap/cwm.py

.SUFFIXES: .rdf .n3

#.n3.rdf:
#	$(PYTHON) $(CWM) --n3 $< --data --bySubject --rdf=br > $@

.rdf.dot:
	$(XSLTPROC) --novalid  rdf2dot.xsl $< >$@

all: ccppReview rdfsFig3 test swa2 rec54 proposal1989

rdfsFig1: rdfsFig1.ps rdfsFig1.svg rdfsFig1.png
rdfsFig1.ps rdfsFig1.svg: rdfsFig1.dot
rdfsFig1.dot: rdfsFig1.rdf rdf2dot.xsl
rdfsFig1.rdf: vennDiagram.n3
	$(PYTHON) $(CWM) --rdf http://www.w3.org/2000/01/rdf-schema --n3 vennDiagram.n3 --think --rdf --base=bogus: --bySubject > $@

rdfsFig2: rdfsFig2.ps rdfsFig2.svg
rdfsFig2.ps rdfsFig2.svg: rdfsFig2.dot
rdfsFig2.dot: rdfsFig2.rdf rdf2dot.xsl
rdfsFig2.rdf: clsHier.n3
	$(PYTHON) $(CWM) -rdf http://www.w3.org/2000/01/rdf-schema -n3 clsHier.n3 -outURI=file:`pwd` -think -rdf -bySubject > $@


rdfsFig3: rdfsFig3.ps rdfsFig3.svg
rdfsFig3.ps rdfsFig3.svg: rdfsFig3.dot
rdfsFig3.dot: rdfsFig3.rdf rdf2dot.xsl
rdfsFig3.rdf: rdfsConstraints.n3 rdfs.n3
	$(PYTHON) $(CWM) -rdf http://www.w3.org/2000/01/rdf-schema -n3 rdfs.n3 rdfsConstraints.n3 -outURI=file:`pwd` -think -rdf -bySubject > $@

#	$(PYTHON) $(CWM) ,tmp.n3 -rdf -bySubject  >$@

ccppReview: ccppReview.ps ccppReview.svg
ccppReview.ps ccppReview.svg: ccppReview.dot
ccppReview.dot: ccppReview.rdf rdf2dot.xsl

ccpp.n3:
	$(PYTHON) $(CWM) --rdf http://www.w3.org/2002/05/20-ccpp --base=bogus: --n3 >$@

ccppReview.rdf: classTree.n3 ccpp.n3
	$(PYTHON) $(CWM) ccpp.n3 classTree.n3 --outURI=file:`pwd` -think -rdf -bySubject > $@



rec54: rec54-img.ps rec54-img.png rec54-img.svg

rec54.rdf: rec54.n3 rdfs.n3
	(echo "<?xml-stylesheet href='/2002/06/rdfs2html' type='application/xml'?>" && $(PYTHON) $(CWM) rec54.n3 rdfs.n3  --think --data  --rdf --bySubject)  >$@

rec54-img.rdf: rec54.n3 rec54-img.n3 auditDiagram.n3 rdfs.n3
	$(PYTHON) $(CWM) rec54-img.n3 rec54.n3 rdfs.n3 auditDiagram.n3 --think --data \
	--base=http://www.w3.org/2001/02pd/rec54 --rdf --bySubject  >$@

rec54-img.dot: rec54-img.rdf rdf2dot.xsl
	$(XSLTPROC) --novalid  rdf2dot.xsl $< >$@

swa2: swa2.ps swa2.png

swa2.rdf: swa2.n3 orgDiagram.n3 rdfs.n3
	$(PYTHON) $(CWM) swa2.n3 rdfs.n3 orgDiagram.n3 -think > ,tmp.n3
	$(PYTHON) $(CWM) ,tmp.n3 -rdf -bySubject  >$@

swa2.dot: swa2.rdf rdf2dot.xsl

bcard: sw-bcard.png sw-bcard.rdf sw-bcard.svg sw-bcard.dot
sw-bcard.rdf: sw-bcard.n3
	$(PYTHON) $(CWM) --n3 $< --think --base=bogus: --bySubject --rdf > $@

# moving to somewhere near http://dm93.org/z2001/ChristmasCardRitual
fam-tree: dm93fam.png dm93fam.rdf dm93fam.svg dm93fam.dot
dm93fam.rdf: dm93fam.n3
	$(PYTHON) $(CWM) --n3 $< --think --bySubject --rdf=br > $@

opksnet: opksnet.png opksnet.rdf opksnet.svg opksnet.dot
opksnet.rdf: opksnet.n3
	$(PYTHON) $(CWM) --n3 $< --think --data --bySubject --rdf=br > $@

SITEMAP=,sitemap.rdf
sitemap: sitemapFig.ps sitemapFig.svg sitemapFig.dot
sitemapFig.rdf: $(SITEMAP)
	$(PYTHON) $(CWM) --rdf $(SITEMAP) --n3 sitemap-style.n3 --think --base=bogus: --bySubject --rdf > $@

test: test-graph1.dot

test-graph1.dot: rdf2dot.xsl test-graph1.rdf
test-graph1.rdf: test-graph1.n3

proposal1989: proposal1989.dot proposal1989.ps

proposal1989.dot: proposal1989.rdf rdf2dot.xsl

proposal1989.rdf: prop43.n3 kpic.n3 rdfs.n3
	$(PYTHON) $(CWM) -n3 prop43.n3 kpic.n3 rdfs.n3 -think > ,tmp.n3
	$(PYTHON) $(CWM) ,tmp.n3 -rdf -bySubject  \
		| perl -pe 's,xmlns="file:/home/connolly/w3ccvs/WWW/2001/02pd/prop43#",xmlns="prop43#",' >$@ #@@/tmp/HACK


ps: swa.ps swad.ps rec22.ps rk43.ps

pdf: swa.pdf swad.pdf rec22.pdf rk43.pdf

svg: swa.svg swad.svg rec22.pdf rk43.pdf

png: swa.png swad.png rec22.png rk43.png

gif: swa.gif swad.gif rec22.gif rk43.gif