Ignoring the missing type RDF error for the page under testing's url.
authorDiane Trout <diane@caltech.edu>
Tue, 27 Nov 2012 22:22:33 +0000 (14:22 -0800)
committerDiane Trout <diane@caltech.edu>
Tue, 27 Nov 2012 22:22:33 +0000 (14:22 -0800)
commitc79ee97e6c1345658e2a48d79081258249268936
treed2efbd4441b00fc1f6ca96fadccd06917e815571
parent74f27f4947b757896c09af3d18cddf0d80a81330
Ignoring the missing type RDF error for the page under testing's url.

When testing the stylesheet gets attached to the pages url. All
the meaningful information about the sample or experiment still
gets added to the right <host>/<category>/<id> pages,
unfortunately that means the page url doesn't have a type which
caused _validate_types to toss an error.

I'd previously fixed it by testing for the error message and
filtering it out from the test code, but that didn't work on
ubuntu 10.04 as the error message changes slightly with the
older version of redland rdf.

This version changes the sparql query to ignore the case
where the predicate is a stylesheet and there's no type.
htsworkflow/frontend/experiments/test_experiments.py
htsworkflow/frontend/samples/test_samples.py
htsworkflow/util/rdfinfer.py