syntheticPatients/Makefile
author Eric Prud'hommeaux <eric@w3.org>
Thu, 16 Dec 2010 11:08:50 -0800
changeset 35 c46e908fef9b
parent 30 d5cb0312ef53
child 36 1e3b9b02d90e
permissions -rw-r--r--
~ test: += Q8S
~ silence make test except for errors
19
ca9c645e8daf + can use xsltproc instead of saxon
Eric Prud'hommeaux <eric@w3.org>
parents: 12
diff changeset
     1
# $Id$
ca9c645e8daf + can use xsltproc instead of saxon
Eric Prud'hommeaux <eric@w3.org>
parents: 12
diff changeset
     2
ca9c645e8daf + can use xsltproc instead of saxon
Eric Prud'hommeaux <eric@w3.org>
parents: 12
diff changeset
     3
# XSLT ?= xsltprocDocStyle.sh
12
288b84433388 ~ tabbify to 3 to see upcoming diffs more clearly
Eric Prud'hommeaux <eric@w3.org>
parents: 1
diff changeset
     4
XSLT ?= saxonb-xslt -ext:on
20
a78609605d19 + start on q1.rq
Eric Prud'hommeaux <eric@w3.org>
parents: 19
diff changeset
     5
SPARQL ?= SPARQL
0
a7ce735ef19f CREATED
Eric Prud'hommeaux <eric@w3.org>
parents:
diff changeset
     6
a7ce735ef19f CREATED
Eric Prud'hommeaux <eric@w3.org>
parents:
diff changeset
     7
all : \
26
15291b6ad76f + tests/q4
Eric Prud'hommeaux <eric@w3.org>
parents: 25
diff changeset
     8
 AD_PCHR_1-indivo.xml AD_PCHR_1-tmo.trig \
15291b6ad76f + tests/q4
Eric Prud'hommeaux <eric@w3.org>
parents: 25
diff changeset
     9
 AD_PCHR_2-indivo.xml AD_PCHR_2-tmo.trig \
15291b6ad76f + tests/q4
Eric Prud'hommeaux <eric@w3.org>
parents: 25
diff changeset
    10
 AD_PCHR_3-indivo.xml AD_PCHR_3-tmo.trig \
15291b6ad76f + tests/q4
Eric Prud'hommeaux <eric@w3.org>
parents: 25
diff changeset
    11
 AD_PCHR_4-indivo.xml AD_PCHR_4-tmo.trig \
15291b6ad76f + tests/q4
Eric Prud'hommeaux <eric@w3.org>
parents: 25
diff changeset
    12
 AD_PCHR_5-indivo.xml AD_PCHR_5-tmo.trig \
15291b6ad76f + tests/q4
Eric Prud'hommeaux <eric@w3.org>
parents: 25
diff changeset
    13
 AD_PCHR_6-indivo.xml AD_PCHR_6-tmo.trig \
15291b6ad76f + tests/q4
Eric Prud'hommeaux <eric@w3.org>
parents: 25
diff changeset
    14
 AD_PCHR_7-indivo.xml AD_PCHR_7-tmo.trig
12
288b84433388 ~ tabbify to 3 to see upcoming diffs more clearly
Eric Prud'hommeaux <eric@w3.org>
parents: 1
diff changeset
    15
288b84433388 ~ tabbify to 3 to see upcoming diffs more clearly
Eric Prud'hommeaux <eric@w3.org>
parents: 1
diff changeset
    16
old : \
288b84433388 ~ tabbify to 3 to see upcoming diffs more clearly
Eric Prud'hommeaux <eric@w3.org>
parents: 1
diff changeset
    17
 AD_PCHR_1.html AD_PCHR_1.rdf \
288b84433388 ~ tabbify to 3 to see upcoming diffs more clearly
Eric Prud'hommeaux <eric@w3.org>
parents: 1
diff changeset
    18
 AD_PCHR_2.html AD_PCHR_2.rdf \
0
a7ce735ef19f CREATED
Eric Prud'hommeaux <eric@w3.org>
parents:
diff changeset
    19
 AD_PCHR_3.html AD_PCHR_3.rdf \
a7ce735ef19f CREATED
Eric Prud'hommeaux <eric@w3.org>
parents:
diff changeset
    20
 AD_PCHR_4.html AD_PCHR_4.rdf \
a7ce735ef19f CREATED
Eric Prud'hommeaux <eric@w3.org>
parents:
diff changeset
    21
 AD_PCHR_5.html AD_PCHR_5.rdf \
a7ce735ef19f CREATED
Eric Prud'hommeaux <eric@w3.org>
parents:
diff changeset
    22
 AD_PCHR_6.html AD_PCHR_6.rdf \
a7ce735ef19f CREATED
Eric Prud'hommeaux <eric@w3.org>
parents:
diff changeset
    23
 AD_PCHR_7.html AD_PCHR_7.rdf
a7ce735ef19f CREATED
Eric Prud'hommeaux <eric@w3.org>
parents:
diff changeset
    24
a7ce735ef19f CREATED
Eric Prud'hommeaux <eric@w3.org>
parents:
diff changeset
    25
%.rdf : %.xml Pat2rdf.xsl
a7ce735ef19f CREATED
Eric Prud'hommeaux <eric@w3.org>
parents:
diff changeset
    26
	$(XSLT) $^ > $@
a7ce735ef19f CREATED
Eric Prud'hommeaux <eric@w3.org>
parents:
diff changeset
    27
12
288b84433388 ~ tabbify to 3 to see upcoming diffs more clearly
Eric Prud'hommeaux <eric@w3.org>
parents: 1
diff changeset
    28
%-indivo.xml : %.xml Pat2Indivo2.xsl
288b84433388 ~ tabbify to 3 to see upcoming diffs more clearly
Eric Prud'hommeaux <eric@w3.org>
parents: 1
diff changeset
    29
	$(XSLT) $^ > $@
288b84433388 ~ tabbify to 3 to see upcoming diffs more clearly
Eric Prud'hommeaux <eric@w3.org>
parents: 1
diff changeset
    30
288b84433388 ~ tabbify to 3 to see upcoming diffs more clearly
Eric Prud'hommeaux <eric@w3.org>
parents: 1
diff changeset
    31
%-tmo.trig : %-indivo.xml Indivo2Trig.xsl
1
28e608c0323d + Pat2Indivo
Eric Prud'hommeaux <eric@w3.org>
parents: 0
diff changeset
    32
	$(XSLT) $^ > $@
28e608c0323d + Pat2Indivo
Eric Prud'hommeaux <eric@w3.org>
parents: 0
diff changeset
    33
0
a7ce735ef19f CREATED
Eric Prud'hommeaux <eric@w3.org>
parents:
diff changeset
    34
%.html: %.rdf Patrdf2html.xsl
a7ce735ef19f CREATED
Eric Prud'hommeaux <eric@w3.org>
parents:
diff changeset
    35
	$(XSLT) $^ > $@
a7ce735ef19f CREATED
Eric Prud'hommeaux <eric@w3.org>
parents:
diff changeset
    36
1
28e608c0323d + Pat2Indivo
Eric Prud'hommeaux <eric@w3.org>
parents: 0
diff changeset
    37
xerces2val.class: xerces2val.java
28e608c0323d + Pat2Indivo
Eric Prud'hommeaux <eric@w3.org>
parents: 0
diff changeset
    38
	javac $^
28e608c0323d + Pat2Indivo
Eric Prud'hommeaux <eric@w3.org>
parents: 0
diff changeset
    39
12
288b84433388 ~ tabbify to 3 to see upcoming diffs more clearly
Eric Prud'hommeaux <eric@w3.org>
parents: 1
diff changeset
    40
validate: AD_PCHR_1-indivo.xml indivo-schemas/envelope.xsd 
1
28e608c0323d + Pat2Indivo
Eric Prud'hommeaux <eric@w3.org>
parents: 0
diff changeset
    41
	# java xerces2val document.xsd $<
12
288b84433388 ~ tabbify to 3 to see upcoming diffs more clearly
Eric Prud'hommeaux <eric@w3.org>
parents: 1
diff changeset
    42
	xmllint --noout --schema indivo-schemas/envelope.xsd $<
1
28e608c0323d + Pat2Indivo
Eric Prud'hommeaux <eric@w3.org>
parents: 0
diff changeset
    43
25
ac50f1549d0f + tests for _2 ... _7
Eric Prud'hommeaux <eric@w3.org>
parents: 21
diff changeset
    44
INPUTLIST  :=  AD_PCHR_1 AD_PCHR_2 AD_PCHR_3 AD_PCHR_4 AD_PCHR_5 AD_PCHR_6 AD_PCHR_7
20
a78609605d19 + start on q1.rq
Eric Prud'hommeaux <eric@w3.org>
parents: 19
diff changeset
    45
MBOXES := $(subst AD_PCHR_, mbox_, $(INPUTLIST))
a78609605d19 + start on q1.rq
Eric Prud'hommeaux <eric@w3.org>
parents: 19
diff changeset
    46
Q1S := $(subst AD_PCHR_, q1_, $(INPUTLIST))
26
15291b6ad76f + tests/q4
Eric Prud'hommeaux <eric@w3.org>
parents: 25
diff changeset
    47
Q4S := $(subst AD_PCHR_, q4_, $(INPUTLIST))
29
Eric Prud'hommeaux <eric@w3.org>
parents: 26
diff changeset
    48
Q6S := $(subst AD_PCHR_, q6_, $(INPUTLIST))
30
Eric Prud'hommeaux <eric@w3.org>
parents: 29
diff changeset
    49
Q8S := $(subst AD_PCHR_, q8_, $(INPUTLIST))
12
288b84433388 ~ tabbify to 3 to see upcoming diffs more clearly
Eric Prud'hommeaux <eric@w3.org>
parents: 1
diff changeset
    50
#$(error TMOLIST: $(TMOLIST))
1
28e608c0323d + Pat2Indivo
Eric Prud'hommeaux <eric@w3.org>
parents: 0
diff changeset
    51
20
a78609605d19 + start on q1.rq
Eric Prud'hommeaux <eric@w3.org>
parents: 19
diff changeset
    52
mbox_%: AD_PCHR_%-tmo.trig tests/email_%.srt
35
c46e908fef9b ~ test: += Q8S
Eric Prud'hommeaux <eric@w3.org>
parents: 30
diff changeset
    53
	@$(SPARQL) -qd $(word 1, $^) -e 'PREFIX foaf: <http://xmlns.com/foaf/0.1/> SELECT ?mbox { ?s foaf:mbox ?mbox }' --compare $(word 2, $^) || echo $<\(0\): error !mbox
12
288b84433388 ~ tabbify to 3 to see upcoming diffs more clearly
Eric Prud'hommeaux <eric@w3.org>
parents: 1
diff changeset
    54
20
a78609605d19 + start on q1.rq
Eric Prud'hommeaux <eric@w3.org>
parents: 19
diff changeset
    55
q1_%: AD_PCHR_%-tmo.trig tests/q1.rq tests/q1_%.srt
35
c46e908fef9b ~ test: += Q8S
Eric Prud'hommeaux <eric@w3.org>
parents: 30
diff changeset
    56
	@$(SPARQL) -qg pchr $(word 1, $^) $(word 2, $^) --compare $(word 3, $^) || echo $<:0: error: data\\n$(word 2, $^):0: note: query\\n$(word 3, $^):0: note: expected results
20
a78609605d19 + start on q1.rq
Eric Prud'hommeaux <eric@w3.org>
parents: 19
diff changeset
    57
26
15291b6ad76f + tests/q4
Eric Prud'hommeaux <eric@w3.org>
parents: 25
diff changeset
    58
q4_%: AD_PCHR_%-tmo.trig tests/q4.rq tests/q4_%.srt
35
c46e908fef9b ~ test: += Q8S
Eric Prud'hommeaux <eric@w3.org>
parents: 30
diff changeset
    59
	@$(SPARQL) -qg pchr $(word 1, $^) $(word 2, $^) --compare $(word 3, $^) || echo $<:0: error: data\\n$(word 2, $^):0: note: query\\n$(word 3, $^):0: note: expected results
26
15291b6ad76f + tests/q4
Eric Prud'hommeaux <eric@w3.org>
parents: 25
diff changeset
    60
29
Eric Prud'hommeaux <eric@w3.org>
parents: 26
diff changeset
    61
q6_%: AD_PCHR_%-tmo.trig tests/q6.rq tests/q6_%.srt
35
c46e908fef9b ~ test: += Q8S
Eric Prud'hommeaux <eric@w3.org>
parents: 30
diff changeset
    62
	@$(SPARQL) -qd $(word 1, $^) $(word 2, $^) --compare $(word 3, $^) || echo $<:0: error: data\\n$(word 2, $^):0: note: query\\n$(word 3, $^):0: note: expected results
29
Eric Prud'hommeaux <eric@w3.org>
parents: 26
diff changeset
    63
30
Eric Prud'hommeaux <eric@w3.org>
parents: 29
diff changeset
    64
q8_%: AD_PCHR_%-tmo.trig tests/q8.rq tests/q8_%.srt
35
c46e908fef9b ~ test: += Q8S
Eric Prud'hommeaux <eric@w3.org>
parents: 30
diff changeset
    65
	@$(SPARQL) -qg pchr $(word 1, $^) $(word 2, $^) --compare $(word 3, $^) || echo $<:0: error: data\\n$(word 2, $^):0: note: query\\n$(word 3, $^):0: note: expected results
30
Eric Prud'hommeaux <eric@w3.org>
parents: 29
diff changeset
    66
35
c46e908fef9b ~ test: += Q8S
Eric Prud'hommeaux <eric@w3.org>
parents: 30
diff changeset
    67
test: all $(MBOXES) $(Q1S) $(Q4S) $(Q6S) $(Q8S)
12
288b84433388 ~ tabbify to 3 to see upcoming diffs more clearly
Eric Prud'hommeaux <eric@w3.org>
parents: 1
diff changeset
    68
19
ca9c645e8daf + can use xsltproc instead of saxon
Eric Prud'hommeaux <eric@w3.org>
parents: 12
diff changeset
    69
clean:
ca9c645e8daf + can use xsltproc instead of saxon
Eric Prud'hommeaux <eric@w3.org>
parents: 12
diff changeset
    70
	rm -f *-indivo.xml *-tmo.trig
ca9c645e8daf + can use xsltproc instead of saxon
Eric Prud'hommeaux <eric@w3.org>
parents: 12
diff changeset
    71